hocam script dediğiniz google api kütüphanesi zaten gerideki mesajlarda arkadaşlar linkini vermişler
bilgisayarınızda composer yüklü ise CMD ( composer require google/apiclient) yükleyin
yada direk
https://github.com/googleapis/google...lient/releases buradan php sürümünüze uygun olan kütüphaneyi indirin .json dosyanızıda buraya atın
require_once 'vendor/autoload.php'; dahil edin
aşağıdaki kod yapısında
/location/to/key-file.json buraya json yolunuzu belirtin $urls = array( kısmınıda göndermek istediğiniz linkleri yazın
eğer geçersiz bir linki sildirmek isterseniz de
URL_DELETED olarak göndereceksiniz
localhosta kurabilirsiniz oradan da gönderebilirsiniz.
use Google;
use Google_Service_Indexing;
use Google_Service_Indexing_UrlNotification;
try {
$googleClient = new Google\Client();
// Add here location to the JSON key file that you created and downloaded earlier.
$googleClient->setAuthConfig( '/location/to/key-file.json' );
$googleClient->setScopes( Google_Service_Indexing::INDEXING );
$googleClient->setUseBatch( true );
$service = new Google_Service_Indexing( $googleClient );
$batch = $service->createBatch();
$postBody = new Google_Service_Indexing_UrlNotification();
// Use URL_UPDATED for new or updated pages.
// Use URL_DELETED for deleted pages.
$urls = array(
'https://wiretuts.com/connect-playstation-3-controller-to-pc-with-vigem-and-x360ce' => 'URL_UPDATED',
'https://wiretuts.com/connect-playstation-4-controller-to-pc-with-x360ce' => 'URL_UPDATED',
'https://wiretuts.com/enabling-ssh-on-raspberry-pi-os-for-remote-use' => 'URL_UPDATED'
);
foreach($urls as $url => $type)
{
$postBody->setUrl( $url );
$postBody->setType( $type );
$batch->add( $service->urlNotifications->publish( $postBody ) );
}
$results = $batch->execute();
/*
If you want to loop trough the results of the each page, you can do it with
the example below.
foreach($results as $result)
{
echo $result->urlNotificationMetadata->latestUpdate["notifyTime"] . "\n";
echo $result->urlNotificationMetadata->latestUpdate["type"] . "\n";
echo $result->urlNotificationMetadata->latestUpdate["url"] . "\n";
}
*/
}
catch (\Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
Vay be

yardım diye ben buna derim

adamın kök hücresi tşk.ler