nirgn975 / google-play-services-oauth

Repository from Github https://github.comnirgn975/google-play-services-oauthRepository from Github https://github.comnirgn975/google-play-services-oauth

Google Play Service OAuth

Continuous Integration codecov

Google Play Services is a proprietary background service and API package for Android devices from Google. Among other things it provides Google Sign-in Android API for single sign-on, authenticating the user inside applications using current credentials.

An unofficial TypeScript client for Google Play Services OAuth.

Installation

npm install --save-dev google-play-services-oauth

Usage

import * from google-play-services-oauth

var GoogleOauth = require("../oauth");

var EMAIL = 'your_google_email';
var PASSWORD = 'your_email_password';
var ANDROID_ID = 'your_android_id'
var SERVICE = 'your_service'
var APP = 'your_android'
var CLIENT_SIG = 'your_client_sig'

var google = new GoogleOauth();
google.login(EMAIL, PASSWORD, ANDROID_ID, function (err, data) {
    if (data) {
        google.oauth(EMAIL, data.masterToken, data.androidId, SERVICE, APP, CLIENT_SIG, function (err, data) {
            console.log(data);
        });
    }
});

Want to help?

Great! Here is how you can install the project on your local machine.

  1. Git clone your fork locally.
  2. npm install inside the new directory.
  3. Start coding..
  4. Make a Pull Request!

About

License:Do What The F*ck You Want To Public License


Languages

Language:TypeScript 100.0%