2017-10-04 11:42:52 +00:00
# Google play python API [![Build Status](https://travis-ci.org/NoMore201/googleplay-api.svg?branch=master)](https://travis-ci.org/NoMore201/googleplay-api)
2017-08-27 15:32:05 +00:00
This project contains an unofficial API for google play interactions. The code mainly comes from
2017-10-04 11:42:52 +00:00
[GooglePlayAPI project ](https://github.com/egirault/googleplay-api/ ) which is not
maintained anymore. The code was updated with some important changes:
2017-08-27 15:32:05 +00:00
2017-09-21 09:19:48 +00:00
* ac2dm authentication with checkin and device info upload
* updated search and download calls
* using headers of a Nexus 6P. Add you own device under `device.properties` file
2017-08-27 15:32:05 +00:00
2017-09-21 09:19:48 +00:00
# Usage
Check the test.py module for a simple example.
An important note about login function:
```
2017-10-04 09:32:56 +00:00
def login(self, email=None, password=None, gsfId=None, authSubToken=None)
2017-09-21 09:19:48 +00:00
```
for first time logins, you should only provide email and password.
2017-10-04 09:32:56 +00:00
The module will take care of initalizing the api,upload device information
to the google account you supplied, and retrieving
a Google Service Framework ID (which, from now on, will be the android ID of a device).
2017-09-21 09:19:48 +00:00
2017-10-04 09:32:56 +00:00
For the next logins you **should** save the gsfId and the authSubToken, and provide them as parameters to the login function. If you login again with email and password only, this is the equivalent of re-initalizing your android device with a google account.
2017-09-06 11:02:07 +00:00
2017-10-09 15:28:03 +00:00
# Documentation
2017-09-06 11:02:07 +00:00
2017-10-09 15:28:03 +00:00
For some documentation about the google play API check out the relative folder.