Skip to main content

Crate gpipipi

Crate gpipipi 

Source
Expand description

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, 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:

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

Modules§

error
proto

Structs§

AuthTokenRequest
a requester for converting aas tokens into auth tokens
Category
a category
CdnUrl
a url for a specific file, with a filename and a sha1 hash
DeviceProperties
the properties for a singular device
DownloadResponse
response for an app, contains the base apk and any additional splits and obbs
LongLivedClient
a logged in google play client that owns an aas token
NextReviewsPage
unique identifier for a next reviews page
NextSearchPage
unique identifier for a next search page
OAuthRequest
a requester for converting oauth tokens into usable aas tokens
PropsMap
a map of parsed aurora store style device properties, each key being the device name “default” may be used by the generic no header name ini section
ReviewsResults
review results for an app, optionally containing an identifier for the next page
SearchResults
search results for a query, optionally containing an identifier for the next page
ShortLivedClient
a logged in google play client that only owns an auth token, one that was generated from an aas token outside of this crate

Enums§

CategoryType
a category type for apps
ReviewsFilter
filter for reviews

Traits§

Client
every request a logged in google play client can send