【问题标题】:Foursquare, how to display checkins feed from all users of my website?Foursquare,如何显示我网站所有用户的签到提要?
【发布时间】:2011-08-18 09:19:51
【问题描述】:

因此,我了解我网站的每个用户在允许我的网站访问他们的foursquare 帐户后(在身份验证过程之后)都会拥有一个Auth_key。我的理解是,要显示用户的最新签到,我需要使用该用户的 auth_key 并使用 users/self/checkins 端点来获取特定用户的最新检查点。因此,为了让所有用户获得最新签到,我需要遍历我的每个用户,获取每个 auth_key 并获取提要。

我正在制作我的用户最近签到的提要。因此,它将显示最新的 20 个签到。我可以使用哪个端点来实现这一目标?

【问题讨论】:

标签: php api foursquare


【解决方案1】:

我相信您正在寻找的端点是:https://api.foursquare.com/v2/users/self/checkins?oauth_token=

此外,foursquare api 沙箱可以帮助您进行测试: https://developer.foursquare.com/docs/explore.html#req=users/self/checkins

【讨论】:

    【解决方案2】:

    显然,foursquare API 开发人员正在开发“推送 API”。因此,我们不会向foursquare 发送请求,而是每次在我们网站获得授权的用户登录时,foursquare 都会向我们发送数据。

    https://github.com/foursquare/hackathon/wiki/Foursquare-Push-API

    【讨论】:

      【解决方案3】:

      您实际上可以调用“用户”端点

      https://developer.foursquare.com/docs/users/users.html

      https://api.foursquare.com/v2/users/USER_ID

      这样您就可以获得有关您的foursquare用户的所有公开信息

      但是,如果您可以获得身份验证密钥,请使用场地历史记录调用

      https://developer.foursquare.com/docs/users/venuehistory.html

      https://api.foursquare.com/v2/users/USER_ID/venuehistory

      【讨论】:

      • 反对票是怎么回事:S
      猜你喜欢
      • 1970-01-01
      • 2011-01-15
      • 2020-11-12
      • 2012-05-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多