豆瓣网址请求不到数据
rp(`http://api.douban.com/v2/movie/in_theaters?start=${event.start}&count=${event.count}`).then(function (res) {console.log(res);return res;}).catch(function (err) {console.log(err);});
rp(`http://api.douban.com/v2/movie/in_theaters?start=${event.start}&count=${event.count}`).then(function (res) {console.log(res);return res;}).catch(function (err) {console.log(err);});
2019-05-31
老师在其它回答里解释过了,如下
由于最近API有变化,需要在请求API的url后面跟一个apikey参数:
电影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
电影详情API:http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a
举报