Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.
Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git
Synced Nov 25, 09:15 UTC
feature/subscriptions
| 1 | # Amazon Appstore |
| 2 | |
| 3 | `asc amazon` uses a Login with Amazon Security Profile with App Submission API |
| 4 | access enabled. Save `{"client_id": "...", "client_secret": "..."}` to a file |
| 5 | and point `AMAZON_APPSTORE_CREDENTIALS_JSON_PATH` at it (or pass |
| 6 | `--credentials`). The token is requested with `client_credentials` and scope |
| 7 | `appstore::apps:readwrite`. The secret is never printed. |
| 8 | |
| 9 | ```bash |
| 10 | asc amazon edits get <APP_ID> # the open edit, or null |
| 11 | asc amazon edits create <APP_ID> |
| 12 | asc amazon apks upload <APP_ID> app.apk # replaces (ETag) the edit's only APK |
| 13 | asc amazon apks upload <APP_ID> app.apk --apk-id <APK_ID> # required when the edit has several |
| 14 | asc amazon apks list <APP_ID> |
| 15 | asc amazon targeting get <APP_ID> <APK_ID> |
| 16 | asc amazon targeting set <APP_ID> <APK_ID> --file targeting.json |
| 17 | asc amazon edits validate <APP_ID> |
| 18 | ``` |
| 19 | |
| 20 | Every write honors `--dry-run`. There is no submit: review the edit and submit |
| 21 | it in the Developer Console. Targeting documents are passed through as Amazon |
| 22 | returns them, so read with `get`, change the fields you mean to, then `set`. |