Class SellingpartnersApi
- java.lang.Object
-
- software.amazon.spapi.api.replenishment.v2022_11_07.SellingpartnersApi
-
public class SellingpartnersApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SellingpartnersApi.Builder
-
Constructor Summary
Constructors Constructor Description SellingpartnersApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClient
getApiClient()
GetSellingPartnerMetricsResponse
getSellingPartnerMetrics(GetSellingPartnerMetricsRequest body)
Returns aggregated replenishment program metrics for a selling partner.okhttp3.Call
getSellingPartnerMetricsAsync(GetSellingPartnerMetricsRequest body, ApiCallback<GetSellingPartnerMetricsResponse> callback)
(asynchronously) Returns aggregated replenishment program metrics for a selling partner.okhttp3.Call
getSellingPartnerMetricsCall(GetSellingPartnerMetricsRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getSellingPartnerMetricsApiResponse<GetSellingPartnerMetricsResponse>
getSellingPartnerMetricsWithHttpInfo(GetSellingPartnerMetricsRequest body)
Returns aggregated replenishment program metrics for a selling partner.void
setApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
SellingpartnersApi
public SellingpartnersApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getSellingPartnerMetricsCall
public okhttp3.Call getSellingPartnerMetricsCall(GetSellingPartnerMetricsRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, LWAException
Build call for getSellingPartnerMetrics- Parameters:
body
- The request body for the `getSellingPartnerMetrics` operation. (optional)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
-
getSellingPartnerMetrics
public GetSellingPartnerMetricsResponse getSellingPartnerMetrics(GetSellingPartnerMetricsRequest body) throws ApiException, LWAException
Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 request body for the `getSellingPartnerMetrics` operation. (optional)- Returns:
- GetSellingPartnerMetricsResponse
- 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
-
getSellingPartnerMetricsWithHttpInfo
public ApiResponse<GetSellingPartnerMetricsResponse> getSellingPartnerMetricsWithHttpInfo(GetSellingPartnerMetricsRequest body) throws ApiException, LWAException
Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 request body for the `getSellingPartnerMetrics` operation. (optional)- Returns:
- ApiResponse<GetSellingPartnerMetricsResponse>
- 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
-
getSellingPartnerMetricsAsync
public okhttp3.Call getSellingPartnerMetricsAsync(GetSellingPartnerMetricsRequest body, ApiCallback<GetSellingPartnerMetricsResponse> callback) throws ApiException, LWAException
(asynchronously) Returns aggregated replenishment program metrics for a selling partner. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 request body for the `getSellingPartnerMetrics` operation. (optional)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
-
-