【问题标题】:url to access data from foursquare API does not work从foursquare API访问数据的url不起作用
【发布时间】:2017-09-24 02:47:43
【问题描述】:

我想使用给定机构的foursquare ID 通过foursquare API 访问数据。我有以下数据:

client_ip = "AAA"
client_secret = "BBB"
id_place = "4c4192d5d7fad13a8cb807da"

为什么下一个 URL 不访问该特定机构的数据?

https://api.foursquare.com/v2/venues/explore?client_id=AAA&client_secret=BBB/4c4192d5d7fad13a8cb807da

我得到的是以下内容

  {
  "meta": {
    "code": 400,
    "errorType": "invalid_auth",
    "errorDetail": "Missing access credentials. See https://developer.foursquare.com/docs/oauth.html for details.",
    "requestId": "5900bcf84c1f6734f1ee6b02"
  },
  "response": {}
}

【问题讨论】:

    标签: api foursquare


    【解决方案1】:

    您应该通读 venue details 上的 Foursquare 文档。您的请求格式不正确。

    以下请求应为您提供该场地的详细信息:

    https://api.foursquare.com/v2/venues/4c4192d5d7fad13a8cb807da?client_id=AAA&client_secret=BBB&v=20170101

    【讨论】:

    • 这真的很有帮助。它工作得很好。谢谢
    • 感谢@DanielBestardDelgado 如果答案有帮助,请将其标记为正确。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2013-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-05
    相关资源
    最近更新 更多