A .net 8.0 library to request App Store Server API - https://developer.apple.com/documentation/appstoreserverapi.
$ dotnet add package MyTribe.AppStoreServerApiA .net 8.0 library to request App Store Server API.
This library is already working but work is still in progress. Don't hesitate to contribute if you see any possible improvment or fixes.
The library is available on NuGet. You can install it using the following command:
dotnet add package MyTribe.AppStoreServerApi
To get started, you must obtain the following:
A note on the issuer ID: Apple's documentation currently has incorrect instructions on how to obtain this. To get your issuer ID, you must create an API key for App Store Connect (not the App Store Server API). Only after creating your first API key will the issuer ID appear.
var environment = AppleEnvironment.Production;
var privateKey = @"-----BEGIN PRIVATE KEY-----
....
-----END PRIVATE KEY-----";
var keyId = "2X9R4HXF34";
var issuerId = "57246542-96fe-1a63-e053-0824d011072a";
var bundleId = "com.example.testbundleid";
var client = new AppStoreClient(environment, privateKey, keyId, issuerId, bundleId);