public class SubscriptionsApi extends Object
| Constructor and Description |
|---|
SubscriptionsApi() |
SubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
void |
subscriptionsBlockSubscriptionPost(String subscriptionId,
String blockState,
String ifMatch)
Block a subscription
This operation can be used to block a subscription.
|
com.squareup.okhttp.Call |
subscriptionsBlockSubscriptionPostAsync(String subscriptionId,
String blockState,
String ifMatch,
ApiCallback<Void> callback)
Block a subscription (asynchronously)
This operation can be used to block a subscription.
|
com.squareup.okhttp.Call |
subscriptionsBlockSubscriptionPostCall(String subscriptionId,
String blockState,
String ifMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subscriptionsBlockSubscriptionPost
|
ApiResponse<Void> |
subscriptionsBlockSubscriptionPostWithHttpInfo(String subscriptionId,
String blockState,
String ifMatch)
Block a subscription
This operation can be used to block a subscription.
|
SubscriptionListDTO |
subscriptionsGet(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query)
Get all Subscriptions
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
com.squareup.okhttp.Call |
subscriptionsGetAsync(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query,
ApiCallback<SubscriptionListDTO> callback)
Get all Subscriptions (asynchronously)
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
com.squareup.okhttp.Call |
subscriptionsGetCall(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subscriptionsGet
|
ApiResponse<SubscriptionListDTO> |
subscriptionsGetWithHttpInfo(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query)
Get all Subscriptions
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
void |
subscriptionsUnblockSubscriptionPost(String subscriptionId,
String ifMatch)
Unblock a Subscription
This operation can be used to unblock a subscription specifying the subscription Id.
|
com.squareup.okhttp.Call |
subscriptionsUnblockSubscriptionPostAsync(String subscriptionId,
String ifMatch,
ApiCallback<Void> callback)
Unblock a Subscription (asynchronously)
This operation can be used to unblock a subscription specifying the subscription Id.
|
com.squareup.okhttp.Call |
subscriptionsUnblockSubscriptionPostCall(String subscriptionId,
String ifMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subscriptionsUnblockSubscriptionPost
|
ApiResponse<Void> |
subscriptionsUnblockSubscriptionPostWithHttpInfo(String subscriptionId,
String ifMatch)
Unblock a Subscription
This operation can be used to unblock a subscription specifying the subscription Id.
|
public SubscriptionsApi()
public SubscriptionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call subscriptionsBlockSubscriptionPostCall(String subscriptionId, String blockState, String ifMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void subscriptionsBlockSubscriptionPost(String subscriptionId, String blockState, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subscriptionsBlockSubscriptionPostWithHttpInfo(String subscriptionId, String blockState, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsBlockSubscriptionPostAsync(String subscriptionId, String blockState, String ifMatch, ApiCallback<Void> callback) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call subscriptionsGetCall(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic SubscriptionListDTO subscriptionsGet(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubscriptionListDTO> subscriptionsGetWithHttpInfo(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsGetAsync(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query, ApiCallback<SubscriptionListDTO> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (required)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call subscriptionsUnblockSubscriptionPostCall(String subscriptionId, String ifMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void subscriptionsUnblockSubscriptionPost(String subscriptionId, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subscriptionsUnblockSubscriptionPostWithHttpInfo(String subscriptionId, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsUnblockSubscriptionPostAsync(String subscriptionId, String ifMatch, ApiCallback<Void> callback) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2020 WSO2 Inc. All rights reserved.