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

Latest commit

 

History

History
History
44 lines (36 loc) · 1.57 KB

File metadata and controls

44 lines (36 loc) · 1.57 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

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:

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