New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

defro/waatch-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

defro/waatch-api

Waatch API library

Source
Packagist
Version
v1.0.1
Version published
Total downloads
5
Maintainers
1
Created
Source

Waatch API

Latest Version Software License Total Downloads

This package can get movie, tv series, streaming provider from waatch.co. Here's a quick example:

$client = new \GuzzleHttp\Client();
$waatch = new Defro\Waatch\Api($client);
$images = $waatch
    ->setApiKey('YOUR_WAATCH_API_KEY')
    ->setLanguage('fr') // Language ISO
;

Movie

Get detail info about the movie.

$movie = $waatch
    ->getMovie(857) // The Movie DB ID of Saving Private Ryan
;

Set country ISO code to filter streaming providers of this country.

$movie = $waatch
    ->setCountry('fr') // All streaming providers in France
    ->getMovie(374720) // The Movie DB ID of "Dunkirk"
;

TV Show

Get detail info about a TV show.

$movie = $waatch
    ->getTvShow(1668) // The Movie DB ID of "Friends"
;

Streaming provider

Get all providers.

$movie = $waatch
    ->getProviders()
;

Get all Movies and TV Shows for a specific provider

$movie = $waatch
    ->getProvider('itun') // iTunes reference ID
;

License

The MIT License (MIT). Please see license file for more information.

Keywords

api

FAQs

Package last updated on 14 Sep 2019

Related posts