PHP code example of kryptonit3 / couchpotato

1. Go to this page and download the library: Download kryptonit3/couchpotato 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/ */

    

kryptonit3 / couchpotato example snippets


use Kryptonit3\CouchPotato\CouchPotato;

public function addMovie()
{
    $couchpotato = new CouchPotato('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c'); // URL and API Key
    
    return $couchpotato->getMovieAdd([
        'identifier' => 'tt0076759' // IMDB ID
    ]);
}

$couchpotato = new CouchPotato('http://127.0.0.1:5050', 'cf7544f71b6c4efcbb84b49011fc965c', 'my-username', 'my-password');