2017 © Pedro Peláez
 

library tv-calendar-api

image

c0710204/tv-calendar-api

  • Monday, March 16, 2015
  • by c0710204
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TVCalendarAPIwithPHP

一个用php写的基于TVCalendar网站的美剧日历api
目前最新版:0.2.0, (*1)

更新

相比于0.1.0版本,新版更改了目录结构,使其更为合理。
除了之前已有的日历抓取功能外,新加入了注册、获取全部节目、获取收藏的节目、添加节目到收藏、从收藏删除节目功能。
注意:返回数据的status值可能出现错误!, (*2)

安装

首先,你需要确保自己有一个可以正常使用的web服务器,且已配置好php,并安装好php的cURL库。
然后,将TVCalendarAPI文件夹拷贝到你的web服务器目录下即可。, (*3)

使用

getcalendar.php

你需要使用get方法向服务器传递两个参数:, (*4)

username
password, (*5)

url: http://你的域名/你的目录/TVCalendarAPI/getcalendar.php?username=&password=, (*6)

你将获取到一段json数据,格式如下:, (*7)

{, (*8)

status: ture/false, msg: "none", data: {, (*9)

"date": [, (*10)

{, (*11)

name: "the name of episode",
season: "a digit from 0 to 99",
episode: "a digit from 0 to 99", (*12)

},
{ another... }, (*13)

],
"anotherdate...": [], (*14)

}, (*15)

}, (*16)

The Versions

16/03 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *
  • ext-json *

 

by 顾翔