ROWS not returning in Youtube Analytics API?(ROWS 没有在 Youtube Analytics API 中返回?)
问题描述
我已向此网址发出请求: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 中返回?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:ROWS 没有在 Youtube Analytics API 中返回?


- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- PHP - if 语句中的倒序 2021-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01