33 std::unique_ptr<tenduke::http::HTTPCall> httpCall,
34 const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
35 const std::shared_ptr<tenduke::time::Clock> &clock,
36 const std::shared_ptr<const tenduke::http::HTTPResponseToException> &throwException
47 std::unique_ptr<tenduke::http::HTTPCall> httpCall,
48 const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
49 const std::shared_ptr<tenduke::time::Clock> &clock
68 virtual std::unique_ptr<tenduke::oauth::OAuthTokenResponse>
execute()
const;
73 static std::unique_ptr<OAuthTokenRequest>
create(
74 const std::string &tokenEndpointUrl,
75 const std::map<std::string, std::string> ¶meters,
76 const std::shared_ptr<const tenduke::http::HTTPClient> &httpClient,
77 const std::shared_ptr<const tenduke::json::JSONParser> &jsonParser,
78 const std::shared_ptr<tenduke::time::Clock> &clock
87 virtual std::unique_ptr<tenduke::json::JSONObject>
parseResponseBody(
const std::string &responsePayload)
const;
94 virtual std::unique_ptr<tenduke::oauth::OAuthTokenResponse>
toResponse(
const std::string &responsePayload)
const;
97 const std::unique_ptr<tenduke::http::HTTPCall> httpCall;
98 const std::shared_ptr<const tenduke::json::JSONParser> parseJSON;
99 const std::shared_ptr<const tenduke::time::Clock> clock;
100 const std::shared_ptr<const tenduke::http::HTTPResponseToException> throwException;
virtual std::unique_ptr< tenduke::oauth::OAuthTokenResponse > toResponse(const std::string &responsePayload) const
Converts the response body to OAuthTokenResponse.
Definition OAuthTokenRequest.cpp:81
static std::unique_ptr< OAuthTokenRequest > create(const std::string &tokenEndpointUrl, const std::map< std::string, std::string > ¶meters, const std::shared_ptr< const tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock)
Factory method to create the request.
Definition OAuthTokenRequest.cpp:44
OAuthTokenRequest(std::unique_ptr< tenduke::http::HTTPCall > httpCall, const std::shared_ptr< const tenduke::json::JSONParser > &jsonParser, const std::shared_ptr< tenduke::time::Clock > &clock, const std::shared_ptr< const tenduke::http::HTTPResponseToException > &throwException)
Constructs new instance.
Definition OAuthTokenRequest.cpp:21
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7