Skip to content

Latest commit

 

History

History
102 lines (67 loc) · 3.36 KB

SubscriptionPricesApi.md

File metadata and controls

102 lines (67 loc) · 3.36 KB

app_store_connect.api.SubscriptionPricesApi

Load the API package

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}

subscriptionPricesCreateInstance

SubscriptionPriceResponse subscriptionPricesCreateInstance(subscriptionPriceCreateRequest)

Example

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');
}

Parameters

Name Type Description Notes
subscriptionPriceCreateRequest SubscriptionPriceCreateRequest SubscriptionPrice representation

Return type

SubscriptionPriceResponse

Authorization

itc-bearer-token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

subscriptionPricesDeleteInstance

subscriptionPricesDeleteInstance(id)

Example

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');
}

Parameters

Name Type Description Notes
id String the id of the requested resource

Return type

void (empty response body)

Authorization

itc-bearer-token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]