根据official documentation,频道资源的响应文档可能包含以下对象:
"statistics": {
"viewCount": unsigned long,
"commentCount": unsigned long,
"subscriberCount": unsigned long,
"hiddenSubscriberCount": boolean,
"videoCount": unsigned long
}
我试图调用API但它返回了:
"statistics": {
"commentCount": "4",
"hiddenSubscriberCount": false,
"subscriberCount": "300151",
"videoCount": "94",
"viewCount": "103656"
}
如您所见,unsigned long
(int)以string
的形式返回。我哪里错了?