| 程序包 | 说明 |
|---|---|
| com.tencent.ads.api | |
| com.tencent.ads.model |
| 限定符和类型 | 方法和说明 |
|---|---|
OauthTokenResponse |
OauthApi.oauthToken(Long clientId,
String clientSecret,
String grantType,
String authorizationCode,
String refreshToken,
String redirectUri)
通过Authorization Code获取Access Token或刷新Access Token
|
| 限定符和类型 | 方法和说明 |
|---|---|
ApiResponse<OauthTokenResponse> |
OauthApi.oauthTokenWithHttpInfo(Long clientId,
String clientSecret,
String grantType,
String authorizationCode,
String refreshToken,
String redirectUri)
通过Authorization Code获取Access Token或刷新Access Token
|
| 限定符和类型 | 方法和说明 |
|---|---|
com.squareup.okhttp.Call |
OauthApi.oauthTokenAsync(Long clientId,
String clientSecret,
String grantType,
String authorizationCode,
String refreshToken,
String redirectUri,
ApiCallback<OauthTokenResponse> callback)
通过Authorization Code获取Access Token或刷新Access Token (asynchronously)
|
| 限定符和类型 | 方法和说明 |
|---|---|
OauthTokenResponse |
OauthTokenResponse.addErrorsItem(ApiErrorStruct errorsItem) |
OauthTokenResponse |
OauthTokenResponse.code(Long code) |
OauthTokenResponse |
OauthTokenResponse.data(OauthTokenResponseData data) |
OauthTokenResponse |
OauthTokenResponse.errors(List<ApiErrorStruct> errors) |
OauthTokenResponse |
OauthTokenResponse.message(String message) |
OauthTokenResponse |
OauthTokenResponse.messageCn(String messageCn) |
Copyright © 2020. All rights reserved.