问题描述
我已向此网址发出请求:https://www.googleapis.com/youtube/analytics/v1/reports 使用指标:喜欢和不喜欢.
I have made a request to this url: https://www.googleapis.com/youtube/analytics/v1/reports with the metrics: likes and dislikes.
回应的回应:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "likes",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "dislikes",
"columnType": "METRIC",
"dataType": "INTEGER"
}
]
}
我请求的行和实际数据在哪里?在文档中,这是当我从 youtube 请求数据时应该返回的内容:
Where are the rows and the actual data that i requested? In the documentation this is what is supposed to return when i request data from youtube:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": string,
"dataType": string,
"columnType": string
},
... more headers ...
],
"rows": [
[
{value}, {value}, ...
]
]
}
但我没有得到行":[] 数据.是我的帐户没有任何分析还是我做错了什么?
But i get no "rows": [] data. Does my account just not have any analytics or did i do something wrong?
如果我将 alt=json 更改为 alt=csv,我会返回 null.
If i cange the alt=json to alt=csv i get null returned.
推荐答案
来自 docs: '如果没有数据可用于给定的查询,则行元素将从响应中省略.'
From the docs: 'If no data is available for the given query, the rows element will be omitted from the response.'
这篇关于ROWS 没有在 Youtube Analytics API 中返回?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)