Foursquare api 消费者禁用 [英] Foursquare api consumer disabled

查看:23
本文介绍了Foursquare api 消费者禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始使用foursquare API,但突然收到Consumer disabled"错误响应.

I recently started using the foursquare API, but suddenly I get "Consumer disabled" error responses.

到目前为止,我一直在做的唯一 API 调用是浏览一些场所:https://api.foursquare.com/v2/venues/search?ll=51.222816,3.224778&query=Friet&radius=200&limit=10&categoryId4d4b7105d754a06374d81259&client_id=app_id&client_secret=app_secret&v=20161116

So far, the only API call I've been doing is one to browse some venues: https://api.foursquare.com/v2/venues/search?ll=51.222816,3.224778&query=Friet&radius=200&limit=10&categoryId=4d4b7105d754a06374d81259&client_id=app_id&client_secret=app_secret&v=20161116

这些是我发送的参数:

ll:51.222816,3.224778
query:Friet
radius:200
limit:10
categoryId:4d4b7105d754a06374d81259
client_id:app_id
client_secret:app_secret
v:20161116

起初一切顺利,然后我开始处理其他部分,现在我回到了 Foursquare 并得到以下响应(带有 403 http 状态代码):

At first everything went well, then I started working on some other part and now I'm back to foursquare and getting the following response (with 403 http status code):

{
  "meta": {
    "code": 403,
    "errorType": "not_authorized",
    "errorDetail": "Consumer disabled."
  },
  "response": {}
}

我已经搜索了我的电子邮件,但我没有收到任何关于为什么会发生这种情况的警告或通知.有人有这方面的经验吗?

I've searched my emails, but I didn't recieve any warnings or notifications on why this might be happening. Anyone had any experience with this?

一件可能很重要的事情:由于我正在开发中并且没有该项目的站点,但我无法在应用程序设置中提供隐私政策网址.因为还没有.

One thing that may be of importance: Since I'm in development and there is no site for the project yet I can not provide a privacy policy url in the app settings. Because there is none, yet.

编辑:这是我的客户端 ID:1VXNUT53J2OMMTMKA4E3UBKYLQQCI1GC3CRCCBPSQK1BWQFG

Edit: this is my client ID: 1VXNUT53J2OMMTMKA4E3UBKYLQQCI1GC3CRCCBPSQK1BWQFG

推荐答案

尝试在 (https://foursquare.com/developers/app/CLIENT_ID/reset)

如果 API 密钥存在可疑行为,则可能会发生该错误 - 但您会先收到一封电子邮件.

That error could happen if there's suspicious behavior on an API key - but you would've gotten an email first.

更新:我看到这个键被标记为disabled.我重新启用了所以现在应该可以工作了.我将查看日志并尝试弄清楚这是如何/为什么发生的.

Update: I see this key flagged as disabled. I re-enabled so should be working now. I'll run through the logs and try to figure out how/why this happened.

这篇关于Foursquare api 消费者禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆