PHP code example of canihavesomecoffee / thetvdbapi
1. Go to this page and download the library: Download canihavesomecoffee/thetvdbapi 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/ */
canihavesomecoffee / thetvdbapi example snippets
`
$theTVDbAPI = new \CanIHaveSomeCoffee\TheTVDbAPI\TheTVDbAPI();
// Obtain a token. Optionally you can pass a user pin through as well.
$token = $theTVDbAPI->authentication()->login($apiKey);
// Set the token
$theTVDbAPI->setToken($token);