Skip to content

mgansler/GPSOAuthPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPSOAuthPHP Library build status

Port of simon-weber/gpsoauth WIP

Installation

Put in your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mgansler/GPSOAuthPHP"
        }
    ],
    "require": {
        "mgansler/GPSOAuthPHP": "dev-master"
    }
}

Usage Example

<?php

$email = '[email protected]';
$passwd = 'secret_passwd';
$android_id = '0123456789abcdef';
$service = 'sj'; // example, take a look at $gpsoauth->performMasterLogin()
$app = 'com.google.android.music'; //example
$client_sig = '38918a453d07199354f8b19af05ec6562ced5788'; // for com.google.android.music

$gpsoauth = new GPSOAuthPHP\GPSOAuthPHP([string $proxy = NULL]);

if($master_token = $gpsoauth->performMasterLogin(string $email, string $passwd, string $android_id)) {
    if($auth = $gpsoauth->performOAuth(string $email, $master_token, $android_id, string $service, string $app, $client_sig, [string $device_country='us', string $operatorCountry='us', string $lang='en', string $sdk_version=17])['Auth']) {
        // Do your stuff with Auth-Token
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages