Google APIs Client Library for C++
|
The base class for token-related requests made to an OAuth 2.0 server. More...
#include "client/auth/oauth2_authorization.h"
Public Member Functions | |
OAuth2TokenRequest (HttpRequest *request) | |
Constructor. | |
virtual | ~OAuth2TokenRequest () |
Standard destructor. | |
virtual util::Status | Execute ()=0 |
Sends the request to the OAuth 2.0 server and waits until the response comes back and has been processed. | |
HttpResponse * | http_response () const |
Returns the response from the HTTP request to the OAuth 2.0 server. | |
Protected Member Functions | |
HttpRequest * | http_request () |
Returns the HttpRequest used for the message to the OAuth 2.0 server. |
The base class for token-related requests made to an OAuth 2.0 server.
OAuth2TokenRequest | ( | HttpRequest * | request | ) | [explicit] |
Constructor.
[in] | request | Takes ownership |
virtual ~OAuth2TokenRequest | ( | ) | [virtual] |
Standard destructor.
virtual util::Status Execute | ( | ) | [pure virtual] |
Sends the request to the OAuth 2.0 server and waits until the response comes back and has been processed.
Implemented in OAuth2RefreshTokenRequest, OAuth2ExchangeAuthorizationCodeRequest, and OAuth2RevokeTokenRequest.
HttpRequest* http_request | ( | ) | [inline, protected] |
Returns the HttpRequest used for the message to the OAuth 2.0 server.
HttpResponse* http_response | ( | ) | const [inline] |
Returns the response from the HTTP request to the OAuth 2.0 server.