public class SubscriptionIndividualApi extends Object
| Constructor and Description |
|---|
SubscriptionIndividualApi() |
SubscriptionIndividualApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
Subscription |
subscriptionsPost(Subscription body,
String contentType)
Add a new subscription
This operation can be used to add a new subscription providing the id of the API and the application.
|
com.squareup.okhttp.Call |
subscriptionsPostAsync(Subscription body,
String contentType,
ApiCallback<Subscription> callback)
Add a new subscription (asynchronously)
This operation can be used to add a new subscription providing the id of the API and the application.
|
ApiResponse<Subscription> |
subscriptionsPostWithHttpInfo(Subscription body,
String contentType)
Add a new subscription
This operation can be used to add a new subscription providing the id of the API and the application.
|
void |
subscriptionsSubscriptionIdDelete(String subscriptionId,
String ifMatch,
String ifUnmodifiedSince)
Remove a subscription
This operation can be used to remove a subscription.
|
com.squareup.okhttp.Call |
subscriptionsSubscriptionIdDeleteAsync(String subscriptionId,
String ifMatch,
String ifUnmodifiedSince,
ApiCallback<Void> callback)
Remove a subscription (asynchronously)
This operation can be used to remove a subscription.
|
ApiResponse<Void> |
subscriptionsSubscriptionIdDeleteWithHttpInfo(String subscriptionId,
String ifMatch,
String ifUnmodifiedSince)
Remove a subscription
This operation can be used to remove a subscription.
|
Subscription |
subscriptionsSubscriptionIdGet(String subscriptionId,
String accept,
String ifNoneMatch,
String ifModifiedSince)
Get details of a subscription
This operation can be used to get details of a single subscription.
|
com.squareup.okhttp.Call |
subscriptionsSubscriptionIdGetAsync(String subscriptionId,
String accept,
String ifNoneMatch,
String ifModifiedSince,
ApiCallback<Subscription> callback)
Get details of a subscription (asynchronously)
This operation can be used to get details of a single subscription.
|
ApiResponse<Subscription> |
subscriptionsSubscriptionIdGetWithHttpInfo(String subscriptionId,
String accept,
String ifNoneMatch,
String ifModifiedSince)
Get details of a subscription
This operation can be used to get details of a single subscription.
|
public SubscriptionIndividualApi()
public SubscriptionIndividualApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Subscription subscriptionsPost(Subscription body, String contentType) throws ApiException
body - Subscription object that should to be added (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Subscription> subscriptionsPostWithHttpInfo(Subscription body, String contentType) throws ApiException
body - Subscription object that should to be added (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsPostAsync(Subscription body, String contentType, ApiCallback<Subscription> callback) throws ApiException
body - Subscription object that should to be added (required)contentType - Media type of the entity in the body. Default is application/json. (required)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 void subscriptionsSubscriptionIdDelete(String subscriptionId, String ifMatch, String ifUnmodifiedSince) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subscriptionsSubscriptionIdDeleteWithHttpInfo(String subscriptionId, String ifMatch, String ifUnmodifiedSince) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsSubscriptionIdDeleteAsync(String subscriptionId, String ifMatch, String ifUnmodifiedSince, ApiCallback<Void> callback) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header (Will be supported in future). (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 Subscription subscriptionsSubscriptionIdGet(String subscriptionId, String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
subscriptionId - Subscription Id (required)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Subscription> subscriptionsSubscriptionIdGetWithHttpInfo(String subscriptionId, String accept, String ifNoneMatch, String ifModifiedSince) throws ApiException
subscriptionId - Subscription Id (required)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subscriptionsSubscriptionIdGetAsync(String subscriptionId, String accept, String ifNoneMatch, String ifModifiedSince, ApiCallback<Subscription> callback) throws ApiException
subscriptionId - Subscription Id (required)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ifModifiedSince - Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future). (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 © 2018 WSO2 Inc. All rights reserved.