0.2.7 • Published 6 months ago
@timbo-jimbo/app-store-connect-api-ts v0.2.7
timbo-jimbo/app-store-connect-api-ts
A package that provides typesafe access to the App Store Connect API.
This is for devs who just want to access the App Store Connect API for their internal tools. Just pass in your authentication details and start sending requests.
Install
npm install @timbo-jimbo/app-store-connect-api-ts
App Store Connect API Version
3.7.0
How to use
import createAppStoreConnectApiClient from "@timbo-jimbo/app-store-connect-api-ts"
const { PRIVATE_KEY_ID, ISSUER_ID, PRIVATE_KEY } = process.env //or whereever you store them
const appStoreConnectApi = await createAppStoreConnectApiClient({
issuerId: ISSUER_ID!,
privateKeyId: PRIVATE_KEY_ID!,
privateKey: PRIVATE_KEY!
});
const apps = await appStoreConnectApi.appsGetCollection({
query: {
limit: 1
}
});
How this package was authored
- The code is generated from the official App Store Connnect API OpenAPI Spec found here.
- Hey API is used to generate the code.
- A thin wrapper class was written as an access point to the generated code. It also provides methods for managing the configuration.
- appstore-connect-sdk was used as reference for the authentication logic