AppStoreConnectNet
.NET Client Library for Apple's AppStoreConnect API's
Install / Use
/learn @Redth/AppStoreConnectNetREADME
AppStoreConnect.Net
Apple App Store Connect API Client .NET library generated by the OpenAPI Generator CLI tool.
Usage
- Generate an API Key (Instructions from Apple
- Obtain your Key ID, Issuer ID, and Private Key file (.p8)
- You must use the
AppStoreConnectConfigurationtype when creating instances of the Api classes.
// Fill in our Key ID, Issuer ID, and Private Key file contents:
var keyId = "XYZ123ABC";
var issuerId = "11111111-AABB-CCDD-EEFF-123456ABCDEF";
var privateKey = @"
-----BEGIN PRIVATE KEY-----
YOUR-P8-PRIVATE-KEY-FILE-CONTENTS-HERE
-----END PRIVATE KEY-----";
// Must use AppStoreConnectConfiguration
var config = new AppStoreConnect.Client.AppStoreConnectConfiguration(keyId, issuerId, privateKey);
// Create a new instance of the ProfilesApi
var api = new AppStoreConnect.Api.ProfilesApi(config);
// Fetch all profiles for this account
var profiles = await api.ProfilesGetCollectionAsync().ConfigureAwait(false);
// Display all the profiles' Name and Uuid
foreach (var profile in profiles.Data)
{
Console.WriteLine($"{profile.Attributes.Name} ({profile.Attributes.Uuid})");
}
Generating / Updating
-
(Optional) Download a newer
openapi.jsonspec file: https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip and extract it to the root folder of the repo. -
Ensure the open api generator CLI tool is installed:
& npm install @openapitools/openapi-generator-cli -g(requires NPM to be already installed). -
Generate the C# client
& npx @openapitools/openapi-generator-cli generate -i openapi.json -g csharp-netcore -o ./generated -c openapi-config.yaml --skip-validate-spec -
Touch up any build errors (there's a number of duplicated methods/fields that need to be commented out in various files)
Additions
The Directory.Build.props file automatically includes .cs files from the additions folder which is where the AppStoreConnectConfiguration type is defined.
Links
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
