Skip to main content

app-store-server-library-python asyncio API client, based on official version.

Project description

aio-appstoreserverlibrary

app-store-server-library-python asyncio API client, based on official version

Usage

from appstoreserverlibrary.api_client import AppStoreServerAPIClient, APIException
from appstoreserverlibrary.models.Environment import Environment
from appstoreserverlibrary.models.SendTestNotificationResponse import SendTestNotificationResponse

private_key = read_private_key("/path/to/key/SubscriptionKey_ABCDEFGHIJ.p8") # Implemenation will vary

key_id = "ABCDEFGHIJ"
issuer_id = "99b16628-15e4-4668-972b-eeff55eeff55"
bundle_id = "com.example"
environment = Environment.SANDBOX

client = AppStoreServerAPIAsyncClient(private_key, key_id, issuer_id, bundle_id, environment)


async def test_notifi():
    try:    
        response = await client.request_test_notification()
        print(response)
    except APIException as e:
        print(e)

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

aio_appstoreserverlibrary-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file aio_appstoreserverlibrary-0.1.0.tar.gz.

File metadata

File hashes

Hashes for aio_appstoreserverlibrary-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17a38ad3744cfa63fa474640a9187d76fe2a7ea9054c640e6c55d2c6cf17969e
MD5 08aece842e17fa27e7ce64b076a55e0a
BLAKE2b-256 fdafa3881a93d5b8f94e5f42e7dfa57bc2fcc004504becfa10f40b8022168ade

See more details on using hashes here.

File details

Details for the file aio_appstoreserverlibrary-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aio_appstoreserverlibrary-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bbf9665e554bfc9d3002be0973ca7ceabab05e94d3a2693a729d52b108c98c2
MD5 e666da41cef1e968e612692c978a126c
BLAKE2b-256 041454908ce33006d3c654185e178586689adb29703df7c969fc4bee997ce913

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