File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/notification/try.php
Back
<?php echo phpinfo(); require 'autoload.php'; use Google\Client; function getAccessToken($serviceAccountPath) { $client = new Client(); $client->setAuthConfig($serviceAccountPath); $client->addScope('https://www.googleapis.com/auth/firebase.messaging'); $client->useApplicationDefaultCredentials(); $token = $client->fetchAccessTokenWithAssertion(); return $token['access_token']; } $serviceAccountPath = 'service-account-file.json'; echo getAccessToken($serviceAccountPath); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings