https://github.com/ipfans/aio-appstoreserverlibrary
app-store-server-library-python asyncio API client, based on official version
https://github.com/ipfans/aio-appstoreserverlibrary
Last synced: over 1 year ago
JSON representation
app-store-server-library-python asyncio API client, based on official version
- Host: GitHub
- URL: https://github.com/ipfans/aio-appstoreserverlibrary
- Owner: ipfans
- License: mit
- Created: 2024-02-15T04:18:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-15T04:49:13.000Z (over 2 years ago)
- Last Synced: 2025-01-31T10:11:25.233Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aio-appstoreserverlibrary
app-store-server-library-python asyncio API client, based on official version
## Usage
```python
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)
```