/home/desid573/public_html/tollster
Edit: /home/desid573/public_html/tollster/google_service.php (887B)
useApplicationDefaultCredentials();
$client->setScopes(array('https://www.googleapis.com/auth/androidpublisher') );
$package_name = "com.tollster.android"; //Your package name (com.example...)
$subscriptionId = "removeads"; //SKU of your subscription item
//Token returned to the app after the purchase
$token = "12345";
$service = new Google_Service_AndroidPublisher($client);
$results = $service->purchases_subscriptions->get($package_name,$subscriptionId,$token,array());
print_r ($results); //This object has all the data about the subscription
echo "expiration: " . $results->expiryTimeMillis;
exit;
?>