[][src]Struct gpapi::Gpapi

pub struct Gpapi {
    pub username: String,
    pub password: String,
    pub gsf_id: String,
    pub token: String,
    pub client: Box<Client>,
}

Fields

username: Stringpassword: Stringgsf_id: Stringtoken: Stringclient: Box<Client>

Methods

impl Gpapi[src]

pub fn new<S: Into<String>>(username: S, password: S, gsf_id: S) -> Self[src]

pub fn details(
    &self,
    pkg_name: &str
) -> Result<Option<DetailsResponse>, Box<dyn Error>>
[src]

Play Store package detail request (provides more detail than bulk requests).

pub fn bulk_details(
    &self,
    pkg_names: &[&str]
) -> Result<Option<BulkDetailsResponse>, Box<dyn Error>>
[src]

pub fn get_download_url(
    &self,
    pkg_name: &str,
    vc: u64
) -> Result<Option<String>, Box<dyn Error>>
[src]

pub fn app_delivery_data(
    &self,
    pkg_name: &str,
    vc: u64
) -> Result<Option<DeliveryResponse>, Box<dyn Error>>
[src]

pub fn purchase(
    &self,
    pkg_name: &str,
    vc: u64
) -> Result<Option<BuyResponse>, Box<dyn Error>>
[src]

pub fn authenticate(&mut self) -> Result<(), Box<dyn Error>>[src]

pub fn execute_request_v2(
    &self,
    endpoint: &str,
    query: Option<HashMap<&str, &str>>,
    msg: Option<&[u8]>,
    content_type: Option<&str>
) -> Result<ResponseWrapper, Box<dyn Error>>
[src]

Lower level Play Store request, used by APIs but exposed for specialized requests. Returns a ResponseWrapper which depending on the request populates different fields/values.

Trait Implementations

impl Debug for Gpapi[src]

Auto Trait Implementations

impl Send for Gpapi

impl Sync for Gpapi

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T