import 'package:app_store_connect/api.dart';
All URIs are relative to https://api.appstoreconnect.apple.com
Method | HTTP request | Description |
---|---|---|
subscriptionPricesCreateInstance | POST /v1/subscriptionPrices | |
subscriptionPricesDeleteInstance | DELETE /v1/subscriptionPrices/{id} |
SubscriptionPriceResponse subscriptionPricesCreateInstance(subscriptionPriceCreateRequest)
import 'package:app_store_connect/api.dart';
// TODO Configure HTTP basic authorization: itc-bearer-token
//defaultApiClient.getAuthentication<HttpBasicAuth>('itc-bearer-token').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('itc-bearer-token').password = 'YOUR_PASSWORD';
final api = AppStoreConnect().getSubscriptionPricesApi();
final SubscriptionPriceCreateRequest subscriptionPriceCreateRequest = ; // SubscriptionPriceCreateRequest | SubscriptionPrice representation
try {
final response = api.subscriptionPricesCreateInstance(subscriptionPriceCreateRequest);
print(response);
} catch on DioError (e) {
print('Exception when calling SubscriptionPricesApi->subscriptionPricesCreateInstance: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
subscriptionPriceCreateRequest | SubscriptionPriceCreateRequest | SubscriptionPrice representation |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
subscriptionPricesDeleteInstance(id)
import 'package:app_store_connect/api.dart';
// TODO Configure HTTP basic authorization: itc-bearer-token
//defaultApiClient.getAuthentication<HttpBasicAuth>('itc-bearer-token').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('itc-bearer-token').password = 'YOUR_PASSWORD';
final api = AppStoreConnect().getSubscriptionPricesApi();
final String id = id_example; // String | the id of the requested resource
try {
api.subscriptionPricesDeleteInstance(id);
} catch on DioError (e) {
print('Exception when calling SubscriptionPricesApi->subscriptionPricesDeleteInstance: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | the id of the requested resource |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]