Youtube api 没有返回行
我的youtube分析API脚本在过去工作得很好,但突然间不再工作了。问题是返回的json不包含行字段Youtube api 没有返回行,youtube-api,Youtube Api,我的youtube分析API脚本在过去工作得很好,但突然间不再工作了。问题是返回的json不包含行字段 { 'columnHeaders': [ { 'name': 'day', 'columnType': 'DIMENSION', 'dataType': 'STRING' }, { 'name': '...', 'columnType': 'METRIC', 'dataType': '...' }, ..
{
'columnHeaders': [
{
'name': 'day',
'columnType': 'DIMENSION', 'dataType': 'STRING'
},
{
'name': '...',
'columnType': 'METRIC', 'dataType': '...'
}, ...
],
'kind': 'youtubeAnalytics#resultTable'
}
谷歌搜索之后,下面的链接与我的问题非常相似
- $20数据$20行$20
https://www.googleapis.com/auth/youtube.readonly
而不是旧的:
https://www.googleapis.com/auth/yt-analytics.readonly
更改作用域后,执行重新身份验证(删除旧凭据)以使新作用域生效
这也在中得到确认。谢谢,但使用
find进行搜索-名称Google.api.Auth.OAuth2.Responses.TokenResponse\*
或find-键入f-exec grep Google.api.Auth.OAuth2.Responses.TokenResponse\*{}\+
找不到任何相关字符串。这是我在C.net编程中使用的名称:“OAuthcredential=GoogleWebAuthorizationBroker.AuthorizationAsync(GoogleClientSecrets.Load(stream).Secrets,new[]{youtubeeanalyticsservice.Scope.Youtube,youtubeeanalyticsservice.Scope.ytanalyticsreadoly},用户,CancellationToken.None,新文件数据存储(“youtubeeanalytics.Auth.Store”)).Result“。您有类似的代码吗?