Giter VIP home page Giter VIP logo

waatch-api's Introduction

Waatch API

Latest Version Software License Total Downloads

This package can get movie, tv series, streaming provider from waatch.co API.

Get more details on this API on apiary.

Here's a quick example:

$client = new \GuzzleHttp\Client();
$waatch = new \Defro\Waatch\Api($client);
$waatch
    ->setApiKey('YOUR_WAATCH_API_KEY') // on your account profile
    ->setLanguage('fr') // Language ISO-639-1
;

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 (ISO-3166)
    ->getMovie(374720) // The Movie DB ID of "Dunkirk"
;

Filter streaming provider of one movie.

$movie = $waatch
    ->getMovie('tt0093058', 'netflix') // The IMDB ID of "Full Metal Jacket" and Netfix provider
;

TV Show

Get detail info about a TV show.

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

Streaming provider

Get all providers.

$providers = $waatch
    ->getProviders()
;

Get all Movies and TV Shows for a specific provider

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

License

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

waatch-api's People

Contributors

defro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.