通过foursquare API和文档,我试图从列表中提取场地。
我正在获取列表响应,其中包含listItems,它被假定为“此列表中的count和列表项的项目。”
API响应的只是计数。
{
id: "510ae78ae4b0607cd8d8504f"
name: "Brunchn'"
description: ""
user: {
id: "157255"
firstName: "Jon"
lastName: "Doe"
gender: "male"
relationship: "self"
photo: {
prefix: "https://irs3.4sqi.net/img/user/"
suffix: "/POOIJDBXTTRPSB0.jpg"
}
}
editable: true
public: true
collaborative: false
url: "https://foursquare.com/jon_doe/list/brunch"
canonicalUrl: "https://foursquare.com/jon_doe/list/brunch"
createdAt: 1359669130
updatedAt: 1364583099
followers: {
count: 0
}
listItems: {
count: 3
}
}
从文档中,如果我得到项目响应,我可以检索场地,但似乎没有连接,或者我从错误的API调用开始。有人有什么建议吗?