豆瓣电影接口

/**
* 正在上映电影列表
* @return mixed
*/
public function playing_movie_list(){
s t a r t = ( i s s e t ( start = (isset( start=(isset(_GET[‘start’])) ? intval($_GET [‘start’]) : 0;
KaTeX parse error: Expected '}', got 'EOF' at end of input: …heaters?start={start}&count=9";
r e s = H t t p G e t ( res=HttpGet( res=HttpGet(url);
return $res;
}

/**
 * 电影详情
 * @return mixed
 */
public function movie_info(){
    $id = (isset($_GET['id'])) ? intval($_GET ['id']) : 6311303;
    $url="http://api.douban.com/v2/movie/subject/{$id}";
    $res=HttpGet($url);
    $arr = json_decode($res, true);
    return json([
        'msg' => 'success',
        'code' => 1,
        'data' => $arr
    ]);
}

你可能感兴趣的:(api)