1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! a rust crate for the google play api
//!
//! to get started, get an oauth token, you one by logging in into the
//! [embedded setup page](https://accounts.google.com/EmbeddedSetup), 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:
//! ```bash
//! OAUTH_TOKEN="..." EMAIL="..." cargo run --features binary
//! ```
//!
//! or alternatively, convert it manually using [`OAuthRequest`]
//!
//! after you get an aas token, parse your device props using [`PropsMap::parse_aurora_config`]
//! then construct a [`LongLivedClient`] using [`LongLivedClient::login`] to start sending requests
//!
//! if instead you already have an auth token that was generated from an aas token somewhere else,
//! use [`ShortLivedClient::login`], keeping in mind that auth tokens expire much faster than aas
//! tokens and that this client can't renew them on its own
//!
//! both of them implement the [`Client`] trait, which holds every method, so it needs to be
//! in scope to send requests
pub use ;
pub use ;