include "vendor/autoload.php";
$client = new Google_Client();
$client->setAuthConfig(getcwd() . '/xxxxxxxxxxxxxxx.json');
$client->addScope('https://www.googleapis.com/auth/indexing');
$httpClient = $client->authorize();
$endpoint = 'https://indexing.googleapis.com/v3/urlNotifications:publish';
$content = '{
"url": "https://www.r10.net/newthread.php?do=newthread&f=145",
"type": "URL_UPDATED"
}';
$response = $httpClient->post($endpoint, ['body' => $content ]);
print_r($response); Google INDEX API
0
●168
- 11-12-2022, 02:44:11Üyeliği durduruldu