Skip to content

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

Notifications You must be signed in to change notification settings

dvirtz/gpsoauth-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

No releases published

Packages

No packages published