format
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
#include <cocoatweet/authentication/bearer.h>
|
#include <cocoatweet/authentication/bearer.h>
|
||||||
#include <cocoatweet/authentication/plain.h>
|
#include <cocoatweet/authentication/plain.h>
|
||||||
|
|
||||||
|
|
||||||
namespace CocoaTweet::API {
|
namespace CocoaTweet::API {
|
||||||
API::API(CocoaTweet::Authentication::Key _key) {
|
API::API(CocoaTweet::Authentication::Key _key) {
|
||||||
swapKey(_key);
|
swapKey(_key);
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ const CocoaTweet::API::Model::OAuthToken InvalidateToken::process(
|
|||||||
auto oauth = std::make_shared<CocoaTweet::Authentication::OAuth1>(key);
|
auto oauth = std::make_shared<CocoaTweet::Authentication::OAuth1>(key);
|
||||||
CocoaTweet::API::Model::OAuthToken oauthToken;
|
CocoaTweet::API::Model::OAuthToken oauthToken;
|
||||||
HttpPost::process(oauth, [&oauthToken](const std::string& _rcv) {
|
HttpPost::process(oauth, [&oauthToken](const std::string& _rcv) {
|
||||||
std::cout << _rcv << std::endl;
|
std::cout << _rcv << std::endl;
|
||||||
auto j = nlohmann::json::parse(_rcv);
|
auto j = nlohmann::json::parse(_rcv);
|
||||||
oauthToken.oauthToken(j["access_token"]);
|
oauthToken.oauthToken(j["access_token"]);
|
||||||
});
|
});
|
||||||
return oauthToken;
|
return oauthToken;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user