1

通过foursquare API 和文档,我正在尝试从列表中提取场地。

我正在收到一个列表响应,其中包含 listItems,它应该是“此列表中列表项的计数和项”。

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 调用中进行此操作。有人有什么建议吗?

电话是https://api.foursquare.com/v2/users/self/lists

4

0 回答 0