OAuth2が出来るようになったよ。ブランチの目的からめちゃくちゃズレてるね
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <cocoatweet/exception/tweetDuplicateException.h>
|
||||
#include <cocoatweet/exception/tweetTooLongException.h>
|
||||
#include <cocoatweet/exception/rateLimitException.h>
|
||||
#include <cocoatweet/exception/tokenInvalidException.h>
|
||||
#include "nlohmann/json.hpp"
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
@@ -125,6 +126,8 @@ void HttpPost::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
|
||||
throw CocoaTweet::Exception::TweetNotFoundException(message.get<std::string>().c_str());
|
||||
} else if (error.get<int>() == 32) {
|
||||
throw CocoaTweet::Exception::AuthenticateException(message.get<std::string>().c_str());
|
||||
}else if(error.get<int>() == 89){
|
||||
throw CocoaTweet::Exception::TokenInvalidException(message.get<std::string>().c_str());
|
||||
} else if (error.get<int>() == 187) {
|
||||
throw CocoaTweet::Exception::TweetDuplicateException(message.get<std::string>().c_str());
|
||||
} else if (error.get<int>() == 88 || error.get<int>() == 185) {
|
||||
|
||||
Reference in New Issue
Block a user