development
md 19 lines 818 Bytes
Rendered Raw
1 # smbcloud-ascapi-play
2
3 Google Play Developer API (Edits v3) for store-listing work: localized
4 listings, listing images, and release notes on a track release. It is a
5 sibling of `smbcloud-ascapi-aso` and shares nothing with `smbcloud-ascapi-core`:
6 Play uses OAuth2 service-account tokens and its own error envelope.
7
8 ```rust
9 use smbcloud_ascapi_play::{PlayClient, ServiceAccount};
10
11 let account = ServiceAccount::from_json_file("play-service-account.json")?;
12 let client = PlayClient::new(account);
13 let edit = client.insert_edit("com.example.app").await?;
14 let listings = client.list_listings("com.example.app", &edit.id).await?;
15 client.delete_edit("com.example.app", &edit.id).await?;
16 ```
17
18 Every read and write happens inside an edit. Nothing is visible to users until
19 `commit_edit`; `delete_edit` throws the edit away.