Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rage-against-the-pixel/app-store-connect-api

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rage-against-the-pixel/app-store-connect-api

A TypeScript package for communicating with Apple App Store Connect API

  • 3.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

app-store-connect-api

A TypeScript package for communicating with Apple App Store Connect API

  • Automatically generated API client using the latest OpenAPI specification from Apple.
  • Fully typed models and methods for every endpoint.
  • Designed for use in a Node.js server environment.

Installation

npm install @rage-against-the-pixel/app-store-connect-api

Authentication

To authenticate with the API you will need to create a API keys for App Store Connect API.

Download and save the private key .p8 file to a save, secure location. The contents of this file is your privateKey. The privateKeyId and issuerId are both listed on the same page where you create your private key.

Example

import { AppStoreConnectClient, AppStoreConnectOptions } from 'app-store-connect-api';

async function main() {
    const options: AppStoreConnectOptions = {
        issuerId: '<ISSUER_ID>',
        privateKeyId: '<PRIVATE_KEY_ID>',
        privateKey: '<PRIVATE_KEY>',
    };
    const client = new AppStoreConnectClient(options);
    const { data: response, error } = await client.api.appsGetCollection({
        query: {
            limit: 10
        }
    });
    if (error) {
        console.error('Error fetching apps:', error);
    } else {
        const apps = response.data.map(app => ({
            id: app.id,
            name: app.attributes.name,
            bundleId: app.attributes.bundleId
        }));
        console.log('Apps:', apps);
    }
}

main();

Keywords

FAQs

Package last updated on 13 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc