Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpsoauth-cpp

A C++ client library for Google Play Services OAuth.

Based on Simon Weber's Python library.

Build status

Build Status Build status

Example

#include "gpsoauth/GPSOAuthClient.h"
...
auto response = gpsoauth::GPSOAuthClient::performMasterLogin(email, password, androidId);
auto token = response.at("Token");

response = gpsoauth::GPSOAuthClient::performOAuth(email, token, androidId,
                                        service, app, clientSig);
assert(response.count("Auth") == 1);
assert(response.count("Expiry") == 1);

Build

cmake -B<build_folder> -G<generator> ...
cmake --build <build_folder>

If you don't want to build tests pass -DBUILD_TESTS=OFF to CMake. Otherwise, you should add a valid email and password to test/config.yaml file to run the tests. Then, run the tests with

cd <build_folder>
ctest

Dependencies

gpsoauth-cpp uses Hunter package manager which automatically downloads and builds its dependencies. The library depends on:

The tests depend on:

About

A C++ client library for Google Play Services OAuth.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.