access tokenが取得できるように

This commit is contained in:
keita
2022-04-23 04:55:43 +09:00
parent d43e04506b
commit 560fe707a6
75 changed files with 591 additions and 193 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ void Show::id(const std::string& _id) {
}
CocoaTweet::API::Model::User Show::process(
std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
std::weak_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth) {
CocoaTweet::API::Model::User user;
HttpGet::process(_oauth, [&user](const std::string& _rcv) {
user = CocoaTweet::API::Model::User::parse(_rcv);
+2 -2
View File
@@ -23,10 +23,10 @@ public:
void screenName(const std::string& _screenName);
/// @brief process request for endpoint
/// @param[in] std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth : pointer to oauth object
/// @param[in] std::weak_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth : pointer to oauth object
/// @param[out] CocoaTweet::API::Model::User : request result
CocoaTweet::API::Model::User process(
std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
std::weak_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth);
private:
std::string status_;
+1 -1
View File
@@ -2,7 +2,7 @@
#include <cocoatweet/api/user/show.h>
namespace CocoaTweet::API::Users{
User::User(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth) {
User::User(std::shared_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth) {
oauth_ = _oauth;
}
+3 -3
View File
@@ -2,7 +2,7 @@
#define COCOATWEET_API_USER_USER_H_
#include "cocoatweet/api/interface/groupInterface.h"
#include "cocoatweet/oauth/oauth.h"
#include "cocoatweet/authentication/authenticator.h"
#include <cocoatweet/api/model/user.h>
#include <vector>
#include <utility>
@@ -15,8 +15,8 @@ public:
User() = default;
/// @brief constructor which finally should to be called.
/// @param[in] std::shared_ptr<CocoaTweet::OAuth::OAuth1> : pointer to OAuth object
User(std::shared_ptr<CocoaTweet::OAuth::OAuth1> _oauth);
/// @param[in] std::shared_ptr<CocoaTweet::Authentication::AuthenticatorBase> : pointer to OAuth object
User(std::shared_ptr<CocoaTweet::Authentication::AuthenticatorBase> _oauth);
CocoaTweet::API::Model::User show(const std::string& _screenName) const;