【问题标题】:Android : getting comments on checkin place using foursquare apiAndroid:使用foursquare api获取关于签到地点的评论
【发布时间】:2012-10-29 19:20:16
【问题描述】:

我可以使用https://api.foursquare.com/v2/users/USER_ID/checkins/?oauth_token=ACCESS_TOKEN&v=20121109 检索我的签到地点。

这个 api 返回关于我在 json fromat 上签到地点的所有信息,除了签到地点下的 cmets。结果只显示 cmets 总数,但不显示 cmets。

但我需要 cmets。请帮帮我..

【问题讨论】:

    标签: android comments foursquare checkin


    【解决方案1】:

    您可以使用签入 ID 来检索使用 cmets 签入的完整详细信息: https://api.foursquare.com/v2/checkins/CHECKIN_ID?oauth_token=OAUTH_TOKEN&v=20121109

    API 端点:https://api.foursquare.com/v2/checkins/CHECKIN_ID

    响应包括 cmets:

     comments: {
      count: 1
      items: [
      {
       id: "..."
       createdAt: ...
       user: {
        id: "..."
        firstName: "..."
        lastName: "..."
        relationship: "self"
        photo: {
         prefix: "https://irs2.4sqi.net/img/user/"
         suffix: "..."
        }
       }
       text: "Hello that is a comment"
      }
      ]
     }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多