【问题标题】:Foursquare venues/explore api not returning data when friendVisits=visited query parameter is set当设置friendVisits=visited查询参数时,Foursquare场所/探索api不返回数据
【发布时间】:2017-07-25 01:58:16
【问题描述】:

在此处指定的场地/探索的foursquare api文档https://developer.foursquare.com/docs/venues/explore中指定如果您包含friendVisits=visited,它将返回您朋友访问过的场地的结果,但是,我总是得到零结果,尽管我知道我的朋友已经在我指定的地点附近的场所登记入住。是不再支持此功能还是存在错误?

【问题讨论】:

    标签: foursquare


    【解决方案1】:

    您需要authorize 您的应用程序并使用access_token 而不是client_idclient_secret

    【讨论】:

    • 感谢您的回复。我正是这样做的。我已获得授权并通过oauth_token=<ACCESS_TOKEN>。我没有使用client_idclient_secret
    • 使用此 API 调用对我来说效果很好:api.foursquare.com/v2/venues/explore?oauth_token=****&v=20151101&near=san francisco, ca&friendVisits=visited&query=bars
    • 查看您的回复后,我使用了查询参数。看起来它仅在您指定query 时才返回结果。我使用的是section,它不返回结果。这是一个限制吗?我在文档中没有看到任何提及。前任。 query=bars 返回结果,但 section=drinks 不返回。
    • 我也注意到了这种行为。这可能是一个错误,但使用 query 而不是 section 应该会返回几乎相同的结果。
    猜你喜欢
    • 2015-10-29
    • 1970-01-01
    • 1970-01-01
    • 2022-08-05
    • 1970-01-01
    • 2015-11-17
    • 2015-06-19
    • 2023-03-20
    • 1970-01-01
    相关资源
    最近更新 更多