public class OAuthTokens extends Object
Constructor and Description |
---|
OAuthTokens(String accessToken,
long accessTokenExpiresInSeconds,
String refreshToken)
Contains information about OAuth access tokens received from the Microsoft Account authorization service.
|
OAuthTokens(String accessToken,
long accessTokenExpiresInSeconds,
String refreshToken,
com.fasterxml.jackson.databind.JsonNode node)
Contains information about OAuth access tokens received from the Microsoft Account authorization service.
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken()
Gets the OAuth access token that will be used for authorization in the Bing Ads services.
|
long |
getAccessTokenExpiresInSeconds()
Gets the remaining time before expiration for the corresponding access token in seconds.
|
String |
getRefreshToken()
Gets the OAuth refresh token that can be user to refresh an access token.
|
com.fasterxml.jackson.databind.JsonNode |
getResponseJson()
Gets OAuth additional attribute that got along with access token.
|
public OAuthTokens(String accessToken, long accessTokenExpiresInSeconds, String refreshToken)
accessToken
- OAuth access token that will be used for authorization in the Bing Ads servicesaccessTokenExpiresInSeconds
- expiration time for the corresponding access token in secondsrefreshToken
- OAuth refresh token that can be user to refresh an access tokenpublic OAuthTokens(String accessToken, long accessTokenExpiresInSeconds, String refreshToken, com.fasterxml.jackson.databind.JsonNode node)
accessToken
- OAuth access token that will be used for authorization in the Bing Ads servicesaccessTokenExpiresInSeconds
- expiration time for the corresponding access token in secondsrefreshToken
- OAuth refresh token that can be user to refresh an access tokennode
- Whole json response along with the get access token requestpublic String getAccessToken()
public long getAccessTokenExpiresInSeconds()
public String getRefreshToken()
public com.fasterxml.jackson.databind.JsonNode getResponseJson()
Copyright © 2024. All rights reserved.