我已经对这个网址的请求:https://www.googleapis.com/youtube/analytics/v1/reports
与指标:likes and dislikes
。
回应:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": "likes",
"columnType": "METRIC",
"dataType": "INTEGER"
},
{
"name": "dislikes",
"columnType": "METRIC",
"dataType": "INTEGER"
}
]
}
我要求的行和实际数据在哪里?在文档中,这是我从youtube请求数据时 应该 返回的内容:
{
"kind": "youtubeAnalytics#resultTable",
"columnHeaders": [
{
"name": string,
"dataType": string,
"columnType": string
},
... more headers ...
],
"rows": [
[
{value}, {value}, ...
]
]
}
但是我没有“行”:[]数据。我的帐户是否没有任何分析功能,或者我做错了什么?
如果我能alt=json
到alt=csv
我得到null
返回。
在docs中:“如果没有数据可用于给定查询,则将在响应中省略rows元素。”
问题内容: 我做了异步。现在我可以使用了。 这是示例代码: 所以这里的问题是回报承诺,因为我可以使用它吗? 编辑 当我等待时,它将按顺序运行;当我删除等待时,它将运行? 问题答案: 通常不与promises一起使用,因为很少有这种需求。如果在状态更新()之后调用的方法依赖于更新的状态(),则它可以通过其他方式(例如,作为参数)访问它。 使用回调并且不返回承诺。由于很少需要这样做,因此创建未使用的承
Sorting and filtering in Nested rows is currently not supported. Overview Quick setup Preparing the data source User interface Overview The Nested Rows plugin extends Handsontable with a new functiona
Overview Setup Example API examples Overview The Trim Rows plugin allows trimming specific rows from the table. Rows being trimmed aren't included in a DataMap (gets by the getData method) and they ar
Overview Setup Additional options Example API examples Overview The Hidden Rows plugin allows hiding specific rows from the table. Rows being hidden are included in a DataMap (gets by the getData meth
考虑一个案子。我的超类构造函数正在抛出RunTimeException,而子类构造函数没有抛出任何东西..那么它将不会在子类中给出任何编译时错误。为什么连RuntimeException都是未检查的异常?? 古扬·沙阿·塔克斯。
问题内容: 如果我运行查询,例如: 即使查询与任何记录都不匹配,它也会始终返回结果吗?还是我需要验证并确保结果返回一行? 问题答案: 是的,因为它是一个聚合并且返回零。除非您添加GROUP BY,否则由于没有组,因此没有结果… 除非您添加GROUP BY,然后没有任何行,否则MAX / SUM等将返回NULL。只有COUNT传回没有结果的数字 编辑,有点晚:SUM会像MAX一样返回NULL 编辑,