我正在为分析 API 编写一个 ruby gem,并在尝试构建检索共享服务的方法时遇到了这个错误:
$ yt_session('https://www.googleapis.com').get("/youtube/analytics/v1/reports?ids=channel==7BCpCq_Vh2V0kVW28GTwGg&dimensions=sharingService&metrics=shares&start-date=2012-10-09&end-date=2012-10-10")
{ "error": { "errors": [ { "domain": "global", "reason": "badRequest", "message": "Invalid query. Query did not conform to the expectations." } ], "code": 400, "message": "Invalid query. Query did not conform to the expectations." }}
当我替换指标和维度时,我没有问题。
我一直在关闭此页面上的文档:YouTube Analytics Docs
谢谢你。