defro/waatch-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

defro/waatch-api

Composer 安装命令:

composer require defro/waatch-api

包简介

Waatch API library

README 文档

README

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.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固