【问题标题】:Foursquare search venues by category, invalid categoryId errorFoursquare按类别搜索场所,无效的categoryId错误
【发布时间】:2012-04-01 05:05:26
【问题描述】:

我正在尝试使用场所/搜索端点为 id=4bf58dd8d48988d1dd941735 的类别获取场所。

场地/搜索?categoryId=4bf58dd8d48988d1dd941735

在此调用后,我收到错误“无效的 categoryId 4bf58dd8d48988d1dd941735”

{
  meta: {
    code: 400
    errorType: "param_error"
    errorDetail: "Invalid categoryId 4bf58dd8d48988d1dd941735"
  }
  response: { }
}

这是否意味着给定类别已从foursquare 中删除,我应该将其从我的应用程序中删除?

【问题讨论】:

    标签: api foursquare


    【解决方案1】:

    venues/categories 端点可以访问有效类别的完整列表。您提供的 ID 没有出现在它的输出中,所以不,这不是有效的类别 ID。

    【讨论】:

    • ..但我的系统中有这个类别并且它有效。无论如何,我会认为这个类别在foursquare方面被删除了。
    • 类别列表不宜长期缓存。您需要将数据库值与 Foursquare 同步,类别可能会发生变化。
    猜你喜欢
    • 2012-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-19
    • 2014-04-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多