App Store Connect API
基于 web版 App Store Connect封装的 API工具:
- 🤖目前仅支持完整的 Testflight自动化 API
- 💪久经考验,生产环境使用长达 1年
快速入门
import { Client, Testflight, Build } from 'appstore-connect-api';
const client = new Client();
await client.login(account, password);
await client.session();
await client.selectTeam(teamId);
const apps = await client.listApps();
const testflight = Testflight.fromClient(client, appId);
const preReleaseVersions = await testflight.getPreReleaseVersions();
const preReleaseBuilds = await testflight.getPreReleaseBuilds(preReleaseVersionId);
const betaReviewDetails = await testflight.getBetaReviewDetails();
const betaLicenceAgreements = await testflight.getBetaLicenceAgreements();
const betaAppLocallizations = await testflight.getBetaAppLocalizations();
const externalBetaGroups = await testflight.getBetaGroups(false);
const builds = await testflight.getBetaGroupBuild(groupId);
await testflight.addBuildsToBetaGroup(groupId, [ buildId_1, buildId_2 ]);
const publicLinkState = await testflight.switchBetaGroupPublicLinkState(groupId, true, 1000, true);
console.log(publicLinkState.attributes.publicLink);
const build = testflight.getBuild(buildId);
const betaBuildLocalizations = await build.getBetaBuildLocalizations();
const buildBetaDetials = await build.getBuildBetaDetails();
await build.submitForBetaReview();