首先它不是this question的副本,因为那不是关于android,而是将项目移动到新服务器。
我已使用此链接检索特定频道的YouTube视频ID
"https://www.googleapis.com/youtube/v3/search?key={MY_KEY}&channelId={MY_CHANNEL_ID}&part=snippet,id&order=date&maxResults={NUMBER_OF_RESULT}";
但是当我尝试从给定的URL读取结果时出现以下错误
{"error":{"errors":[{"domain":"usageLimits","reason":"ipRefererBlocked","message":"There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions.
Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.","extendedHelp":"https://console.developers.google.com"}],
"code":403,"message":"There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions.
Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."}}
我通过删除以前的,重新检查了我的api密钥,多次检查了我的频道ID和api密钥,但是无法识别这里出错了什么。
请帮我解决这个问题,我该怎样做才能解决这个问题?