PHP code example of xnf4o / megogo

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

    

xnf4o / megogo example snippets


use xnf4o\Megogo\Megogo;

protected $megogo;

$this->megogo = new Megogo();

getVideoInfo($id, $token);

search($text, $limit);

getVideo($token, $sort, $page, $category_id, $genre, $country, $year_min, $year_max);

getDigest();

getCollections();

getConfiguration();

getVideoCollections($token, $id, $sort, $page, $category_id, $genre, $country, $year_min, $year_max);

getStream($id, $token);

register($id)

auth($id)

register($id)