app_store_server_sdk 1.2.10 copy "app_store_server_sdk: ^1.2.10" to clipboard
app_store_server_sdk: ^1.2.10 copied to clipboard

Apple App Store Server SDK for facilitating integrations with App Store Server API

example/main.dart

import 'package:app_store_server_sdk/app_store_server_sdk.dart'; void main() async { String? token; // load existing token if available var appStoreEnvironment = AppStoreEnvironment.sandbox( bundleId: 'app_bundle_id', issuerId: 'issuer_id', keyId: 'private_key_id', privateKey: 'private_key'); var appStoreHttpClient = AppStoreServerHttpClient(appStoreEnvironment, jwt: token, jwtTokenUpdatedCallback: (token) async { // Persist token for later re-use }); var api = AppStoreServerAPI(appStoreHttpClient); try { var statusResponse = await api.getAllSubscriptionStatuses('1000000907113638'); print(statusResponse); var historyResponse = await api.getTransactionHistory('1000000907113638'); print(historyResponse); var refundLookupResponse = await api.getRefundHistory('1000000907113638'); print(refundLookupResponse); } on ApiException catch (e) { print('Error code ${e.error?.errorCode}'); print('Error message ${e.error?.errorMessage}'); } }
15
likes
150
points
959
downloads

Publisher

verified publisheromnimind.tech

Weekly Downloads

Apple App Store Server SDK for facilitating integrations with App Store Server API

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, jose, json_annotation, logging, uuid

More

Packages that depend on app_store_server_sdk