YouTube数据api v3:unsigned long作为unicode字符串返回

时间:2016-06-28 15:22:08

标签: youtube-data-api

根据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的形式返回。我哪里错了?

0 个答案:

没有答案