A C++ client library for Google Play Services OAuth.
Based on Simon Weber's Python library.
#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);
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
gpsoauth-cpp uses Hunter package manager which automatically downloads and builds its dependencies. The library depends on:
The tests depend on: