Foursquare API使用者已停用 [英] Foursquare api consumer disabled

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

问题描述

我最近开始使用foursquare API,但是突然我收到了禁用消费者"错误响应.

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

到目前为止,我一直在做的唯一API调用是浏览一些场所:

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

这些是我要发送的参数:

These are the parameters I am sending:

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

推荐答案

尝试在(如果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天全站免登陆