Crate gpapi[][src]

Expand description

A library for interacting with the Google Play API, strongly following google play python API patterns.

Getting Started

Interacting with the API starts off with initializing the API and logging in.

use gpapi::Gpapi;

#[tokio::main]
async fn main() {
    let mut gpa = Gpapi::new("en_US", "UTC", "hero2lte");
    gpa.login("someone@gmail.com", "somepass").await;
    // do something
}

From here, you can get package details, get the URL to download a package, or use the library to download it.

let details = gpa.details("com.instagram.android").await;
println!("{:?}", details);

let download_url = gpa.get_download_url("com.instagram.android", None).await;
println!("{:?}", download_url);

gpa.download("com.instagram.android", None, &Path::new("/tmp/testing")).await;

Modules

Structs

The Gpapi object is the sole way to interact with the Play Store API. It abstracts the logic of low-level communication with Google’s Play Store servers.