http://api.douban.com/v2/movie/in_theaters?返回值104
http://api.douban.com/v2/movie/in_theaters? 這個豆瓣電影API是不是已經掛了,不能使用了???
頁面返回數據:
{"msg":"invalid_apikey","code":104,"request":"GET?\/v2\/movie\/in_theaters"}
http://api.douban.com/v2/movie/in_theaters? 這個豆瓣電影API是不是已經掛了,不能使用了???
頁面返回數據:
{"msg":"invalid_apikey","code":104,"request":"GET?\/v2\/movie\/in_theaters"}
2019-05-16
舉報
2019-05-16
在請求API的url后面跟一個apikey參數:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
2019-08-15
// 云函數入口函數
exports.main = async (event, context) => {
? return rp(`http://api.douban.com/v2/movie/in_theaters?
apikey=0df993c66c0c636e29ecbb5344252a4a
&start=${event.start}&count=${event.count}`)
? .then(function (res){
??? console.log(res);
????? return res
? })
? .catch(function (err){
????? console.err(err);
? });
}
2019-08-11
https://douban.uieee.com/v2/movie/in_theaters使用https訪問就行了