$project_id = '******';//some project id
require_once 'google-api-php-client-2.2.2/vendor/autoload.php';
$client = new Google_Client();
$client->setAuthConfig(__DIR__ . '/service-account.json');
$client->addScope($scope);
$httpClient = $client->authorize();
$project = "wisdmapp-for-learndash";
//Android device Token
$token = "xxxxxx"; // Some device token
// ipad device token
$token = "xxxxxx"; // Some device token
$message = [
"message" => [
"notification" => [
"body" => "This is an FCM notification message!",
"title" => "FCM Message",
],
"token" => $token,
]
];
var_dump($response);