使用豆瓣API时报错invalid keyid

由于最近API有变化,需要在请求API的url后面跟一个apikey参数:

如电影列表API为:http://api.douban.com/v2/movie/in_theaters

则需要写成:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10

      https://api.douban.com/v2/movie/imdb/tt0111161?apikey=0df993c66c0c636e29ecbb5344252a4a
电影详情API:http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a

 

豆瓣API官方文档:

https://douban-api-docs.zce.me/

posted @ 2020-03-24 08:36  本人小白  阅读(1495)  评论(2编辑  收藏  举报