streamingcommunity.coupons

Search Results for The Flash

Search Result for "the flash"

namespace Moinax\TvDb; use Moinax\TvDb\Http\CurlClient; class Client { private string $apiKey; private string $token; private CurlClient $http; public function __construct(string $apiKey) { $this->apiKey = $apiKey; $this->authenticate(); $this->http = new CurlClient($this->token); } private function authenticate(): void { $ch = curl_init('https://api4.thetvdb.com/v4/login'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_POSTFIELDS => json_encode([ 'apikey' => $this->apiKey ]) ]); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); if (!isset($data['data']['token'])) { throw new Exception('TVDB authentication failed'); } $this->token = $data['data']['token']; } // 🔎 PENGGANTI getSeriesByName() public function searchSeries(string $name): array { return $this->http->get( 'https://api4.thetvdb.com/v4/search?query=' . urlencode($name) . '&type=series' ); } // 🔎 DETAIL SERIES public function getSeries(int $id): array { return $this->http->get( "https://api4.thetvdb.com/v4/series/$id" ); } }
Fatal error: Uncaught Error: Class "Moinax\TvDb\Client" not found in /home/u913039518/domains/streamingcommunity.coupons/public_html/app/class/class.tvdb.php:16 Stack trace: #0 /home/u913039518/domains/streamingcommunity.coupons/public_html/themes/muvimag_v3/search.php(147): Tvdb->__construct() #1 /home/u913039518/domains/streamingcommunity.coupons/public_html/app/server.php(126): include('/home/u91303951...') #2 /home/u913039518/domains/streamingcommunity.coupons/public_html/index.php(16): require_once('/home/u91303951...') #3 {main} thrown in /home/u913039518/domains/streamingcommunity.coupons/public_html/app/class/class.tvdb.php on line 16