<?php declare(strict_types=1);
use Amp\Http\Client\Client;
use AsyncBot\Plugin\Imdb\Plugin;
use AsyncBot\Plugin\Imdb\ValueObject\ApiKey;
use function Amp\Promise\wait;
require_once __DIR__ . '/vendor/autoload.php';
$httpClient = new \AsyncBot\Core\Http\Client(new Client());
// search title by imdb id
var_dump(wait((new Plugin($httpClient, new ApiKey('YOUR_API_KEY')))->getByImdbId('tt3896198')));
// search title by title
var_dump(wait((new Plugin($httpClient, new ApiKey('YOUR_API_KEY')))->searchByTitle('pulp fiction')));
-
Notifications
You must be signed in to change notification settings - Fork 1
License
async-bot/imdb-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published