Skip to main content

App Store Connect API

Project description

AppleAPI

基于appstore connect api封装功能。 代码是基于OKAppleAPI原码。只是在原代码基础上,新增了部分接口,封装了些自用功能。

安装

pip3 install appleapi

用法

#!/usr/bin/python3
# coding=utf-8

from AppleAPI import AppStore


if __name__ == '__main__':
    # 必填
    issuer_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' 
    # 必填
    key_id = 'XXXXXXXXXX'                       
    # 必填
    key = """
    -----BEGIN PRIVATE KEY-----
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXX
    -----END PRIVATE KEY----- 
    """

    bundle_id = 'com.test.test.a.b'
    name = 'Test'
    email = 'test@test.com'
    developer_name = 'Name'
    country = 'US'
    password = '123'
    appstore_version = '1.0'
    # 可以填写相对此文件的相对路径
    screenshots = {
        'zh-Hans' : {
            "APP_IPHONE_67"             : "C:/Users/Administrator/Desktop/python/iPhone14PM-6.7",
            # "APP_IPHONE_65"           : "iPhone11PM-6.5",
            # "APP_IPHONE_55"           : "iPhone8P-5.5",
            # "APP_IPAD_PRO_3GEN_129"   : "iPadPro-12.9",
            # "APP_IPAD_PRO_129"        : "iPadPro-12.9",
        }
    }   
    devices = {
        'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx设备id' : '设备名称(可选),比如:iphone6s'
    }
    # https://developer.apple.com/documentation/appstoreconnectapi/capabilitytype
    capabilitys = ['ASSOCIATED_DOMAINS'] # APPLE_ID_AUTH
    app = AppStore(issuer_id, key_id, key, save_fold_name=email)
    # 创建Bundle Id
    app.create_bundle_id(bundle_id=bundle_id, bundle_name=name, capabilitys=capabilitys)
    # 添加测试设备
    app.add_devices(devices=devices)
    # 创建证书
    app.create_certificate(is_dev=False, email=email, developer_name=developer_name, password=password, country=country)
    # 创建描述文件
    app.create_profile(is_dev=False,bundle_id=bundle_id, name=name)
    # 上传5图
    app.upload_screenshot(bundle_id=bundle_id, appstore_version=appstore_version, screenshots=screenshots)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appleapi-1.0.9.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

AppleAPI-1.0.9-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file appleapi-1.0.9.tar.gz.

File metadata

  • Download URL: appleapi-1.0.9.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for appleapi-1.0.9.tar.gz
Algorithm Hash digest
SHA256 bb9d94144f9849e2a16fb9e010f2786dad047fcd8e40fe82ff1bcb93d7c2d5f1
MD5 6495ac62b6d925d34b561490403c32e1
BLAKE2b-256 a1d1d75d7f8ec3d43e9ff7655e9a8e5819cdefe85ac05ea2da2d0898ade8baf0

See more details on using hashes here.

File details

Details for the file AppleAPI-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: AppleAPI-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for AppleAPI-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a090b5b25cb459bbebe2b8f036568ec2167bce5883675552a996557ec21c0d33
MD5 8d176309638b2951e553908220fbfc5a
BLAKE2b-256 83ec3d4fc141a2b16922480944ed0f1ddcebeb91c54934f5a045b3d2addc01a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page