Google APIs Client Library for C++
OAuth2TokenRequest Class Reference

The base class for token-related requests made to an OAuth 2.0 server. More...

#include "client/auth/oauth2_authorization.h"

+ Inheritance diagram for OAuth2TokenRequest:

List of all members.

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.
HttpResponsehttp_response () const
 Returns the response from the HTTP request to the OAuth 2.0 server.

Protected Member Functions

HttpRequesthttp_request ()
 Returns the HttpRequest used for the message to the OAuth 2.0 server.

Detailed Description

The base class for token-related requests made to an OAuth 2.0 server.

Deprecated:
Use OAuth2AuthorizatioFlow methods

Constructor & Destructor Documentation

OAuth2TokenRequest ( HttpRequest request) [explicit]

Constructor.

Parameters:
[in]requestTakes ownership
virtual ~OAuth2TokenRequest ( ) [virtual]

Standard destructor.


Member Function Documentation

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.

Returns:
ok if the request was successful, otherwise the cause of failure.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines