API for Asolytics

For get access token


$http = new GuzzleHttp\Client([
    'verify' => false,
]);

$clientId = 'client id';
$clientSecret = 'client secret';
$username = 'user email';
$password = 'password';

$response = $http->post('https://api.asolytics.com/oauth/token', [
  'form_params' => [
    'grant_type' => 'password',
    'client_id' => $clientId,
    'client_secret' => $clientSecret,
    'username' => $username,
    'password' => $password,
    'scope' => '*',
  ],
]);

$responseData = json_decode((string) $response->getBody(), true);
$accessToken = $responseData['access_token'];

Get application data


$googleId = 'com.tinder';

$response = $http->request('GET', 'https://api.asolytics.com/api/application/{$googleId}', [
  'headers' => [
    'Accept' => 'application/json',
    'Authorization' => 'Bearer '. $accessToken,
  ],
]);

Get list of applications:


$response = $http->request('GET', 'https://api.asolytics.com/api/applications?page=1&per_page=10', [
  'headers' => [
    'Accept' => 'application/json',
    'Authorization' => 'Bearer '. $accessToken,
  ],
]);

Example