gpipipi
a rust crate for the google play api
usage
you get an oauth token by logging in into the embedded setup page, opening the dev tools and then checking the network tab / application tab for the returned cookie. the token can only be used once, and the resulting aas token doesn't seem to expire
after getting the oauth token, you can convert it with the crate by running it as a binary like so:
TOKEN="..." EMAIL="..."
alternatively you can convert it manually:
let auth_client = new;
let token = auth_client.fetch.await?;
after getting the aas token, you can now log in and start doing requests:
use ;
use TryStreamExt;
// props can come from anywhere, but some are included in this repo
const PROPS: &str = include_str!;
let mut props_map = parse_aurora_config?;
let arm_props = props_map.remove.ok_or?;
let client = login.await?;
let categories = client.categories.await?;
let details = client.details.await?;
let download_urls = client.downloads.await?;
let single_search = client.search.await?;
let single_search2 = client.search.await?;
let mut search_stream = client.search_stream;
while let Some = search_stream.try_next.await?
let reviews = client.reviews.await?;
let reviews_page2 = client
.reviews
.await?;
let mut reviews_stream =
client.reviews_stream;
while let Some = reviews_stream.try_next.await?