PHP code example of dllpl / google-fast-indexing
1. Go to this page and download the library: Download dllpl/google-fast-indexing library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dllpl / google-fast-indexing example snippets
use Dllpl\Google\FastIndexing;
// (en) path to the .json file of the private key received in the Google account
// (ru) путь до .json файла приватного ключа, полученного в ЛК Google
$fastIndexing = new FastIndexing('service_account.json');
// (en) path to the .txt file containing URLs to be sent for indexing
// (ru) путь до .txt файла, содержащего url-адреса для отправки на индексацию
$result = $fastIndexing->send('urls.txt');
var_dump($result);