PHP code example of gbcl / searchbv
1. Go to this page and download the library: Download gbcl/searchbv 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/ */
gbcl / searchbv example snippets
use GBCLStudio\SearchBv;
$AccountsArr = array('_uuid=; SESSDATA=','Content-type: application/json;charset=UTF-8','Mozilla/5.0 (balabala)'); // array(cookie,Content-type,UserAgent)
$queryVideo = array('av1919810', 'BV1xx411c7mu'); // or $queryVideo = 'BV1FD4y1776T';
$searchApi = new GBCLStudio\SearchBv($AccountsArr,$queryVideo);
echo json_encode($searchApi->searchVideo(),480);