Client for Gigya's REST API
- Endpoint call hierarchy:
$gigya->accounts()->tfa()->getCertificate() - List of endpoints:
accounts,accounts->tfa,audit,socialize,comments,gameMechanics,reports,dataStore,identityStorage,saml,saml->idp - Different authentication methods:
standard: add api_key and secret to https web requestsgigya-oauth2: gets an oauth2 token and uses that each timecustom: provide you own token retrieved independently
The simplest way to install the client is with composer and running:
$ composer require graze/gigya-client$gigya = new Gigya($key, $secret);
$response = $gigya->accounts()->getAccountInfo(['uid' => $uid]);
$account = $response->getData();$gigya = new Gigya($key, $secret, $region, $user, ['auth'=>'gigya-oauth2']);
$response = $gigya->accounts()->getAccountInfo(['uid' => $uid]);
$account = $response->getData();$grant = new ManualGrant();
$gigya = new Gigya($key, $secret, $region, null, ['auth' => 'oauth2-custom']);
$gigya->addSubscriber(new OAuth2Subscriber($grant));
$tokenResponse = $gigya->socialize()->getToken([
'grant_type' => 'code',
'authorization_code' => '<xxxxx>',
'redirect_uri' => '<xxxxx>',
], ['auth' => 'credentials']);
$grant->setToken($tokenResponse->getData()->get('access_token'));
$response = $gigya->accounts()->getAccountInfo();
$account = $response->getData();Please see CHANGELOG for more information what has changed recently.
$ make install
$ make testPlease see CONTRIBUTING for details.
If you discover any security related issues, please email security@graze.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.