Class TokensApi
- java.lang.Object
-
- software.amazon.spapi.api.tokens.v2021_03_01.TokensApi
-
public class TokensApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokensApi.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRestrictedDataTokenResponse
createRestrictedDataToken(CreateRestrictedDataTokenRequest body)
Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify.okhttp3.Call
createRestrictedDataTokenAsync(CreateRestrictedDataTokenRequest body, ApiCallback<CreateRestrictedDataTokenResponse> callback)
(asynchronously) Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify.okhttp3.Call
createRestrictedDataTokenCall(CreateRestrictedDataTokenRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createRestrictedDataTokenApiResponse<CreateRestrictedDataTokenResponse>
createRestrictedDataTokenWithHttpInfo(CreateRestrictedDataTokenRequest body)
Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify.ApiClient
getApiClient()
void
setApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
TokensApi
public TokensApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
createRestrictedDataTokenCall
public okhttp3.Call createRestrictedDataTokenCall(CreateRestrictedDataTokenRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for createRestrictedDataToken- Parameters:
body
- The restricted data token request details. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body objectLWAException
- If calls to fetch LWA access token fails
-
createRestrictedDataToken
public CreateRestrictedDataTokenResponse createRestrictedDataToken(CreateRestrictedDataTokenRequest body) throws ApiException, LWAException
Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The restricted data token request details. (required)- Returns:
- CreateRestrictedDataTokenResponse
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
createRestrictedDataTokenWithHttpInfo
public ApiResponse<CreateRestrictedDataTokenResponse> createRestrictedDataTokenWithHttpInfo(CreateRestrictedDataTokenRequest body) throws ApiException, LWAException
Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The restricted data token request details. (required)- Returns:
- ApiResponse<CreateRestrictedDataTokenResponse>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyLWAException
- If calls to fetch LWA access token fails
-
createRestrictedDataTokenAsync
public okhttp3.Call createRestrictedDataTokenAsync(CreateRestrictedDataTokenRequest body, ApiCallback<CreateRestrictedDataTokenResponse> callback) throws ApiException, LWAException
(asynchronously) Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).- Parameters:
body
- The restricted data token request details. (required)callback
- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException
- If fail to process the API call, e.g. serializing the request body objectLWAException
- If calls to fetch LWA access token fails
-
-