Google APIs Client Library for C++
|
A concrete OAuth2TokenRequest for obtaining a new access token from a refresh token. More...
#include "client/auth/oauth2_authorization.h"
Public Member Functions | |
OAuth2RefreshTokenRequest (HttpTransport *transport, const OAuth2ClientSpec *client, OAuth2Credential *credential) | |
Constructs the request. | |
virtual util::Status | Execute () |
Asks the OAuth 2.0 server for a new Access Token from the existing Refresh Token. |
A concrete OAuth2TokenRequest for obtaining a new access token from a refresh token.
OAuth2RefreshTokenRequest | ( | HttpTransport * | transport, |
const OAuth2ClientSpec * | client, | ||
OAuth2Credential * | credential | ||
) |
Constructs the request.
The caller retains ownership to all parameters. The instance will be using these pointers so the caller must keep them valid over the lifetime of the request.
[in] | transport | Transport instance to use. |
[in] | client | Client specification. |
[in] | credential | The credential to update with the response tokens. |
virtual util::Status Execute | ( | ) | [virtual] |
Asks the OAuth 2.0 server for a new Access Token from the existing Refresh Token.
This will update the credential given the constructor on success.
Implements OAuth2TokenRequest.