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 中返回?
基础教程推荐
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何替换eregi() 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
