【问题标题】:Foursquare venue photos API only occasionally working with client_id/client_secret?Foursquare 场地照片 API 仅偶尔使用 client_id/client_secret?
【发布时间】:2012-03-05 00:31:07
【问题描述】:

我发现,如果我使用登录用户而不是 client_id / client_secret,某些场所只会返回照片。这是故意的吗?

curl -i https://api.foursquare.com/v2/venues/4c36476d93db0f47f6cc1d92/photos?client_id=xxx\&client_secret=xxx\&group=venue\&v=20120304

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: no-cache, private, no-store
Content-Type: application/json; charset=utf-8
Date: Mon, 05 Mar 2012 00:28:34 GMT
Expires: Mon, 5 Mar 2012 00:28:34 GMT
Pragma: no-cache
Server: nginx/0.8.52
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
Content-Length: 66
Connection: keep-alive

{"meta":{"code":200},"response":{"photos":{"count":0,"items":[]}}}

curl -i https://api.foursquare.com/v2/venues/4c36476d93db0f47f6cc1d92/photos?group=venue\&v=20120304\&oauth_token=xxx\&v=20120304

HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: no-cache, private, no-store
Content-Type: application/json; charset=utf-8
Date: Mon, 05 Mar 2012 00:29:19 GMT
Expires: Mon, 5 Mar 2012 00:29:19 GMT
Pragma: no-cache
Server: nginx/0.8.52
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 1000
Content-Length: 15311
Connection: keep-alive

{"meta":{"code":200},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"photos":{"count":14,"items":[lots of images here]}}}

我想获取一张照片以作为后台进程与给定地点相关联,而不是绑定到特定用户。此 API 是否仅适用于已登录的用户?

【问题讨论】:

    标签: foursquare


    【解决方案1】:

    似乎在无用户访问 /venues/photos 方面存在错误。该小组正在调查。预期行为是对该端点的无用户访问会返回附加到该场所的所有公共照片。

    【讨论】:

    • 解决后能否更新?目前,我的流量足够低,我只是通过我的 oauth_token 汇集所有这些请求,但我很想在它修复后将其切换回来。
    • 会做 [+ 填充以满足最小评论长度]
    • 此问题的修复将在接下来的几个小时内完成。感谢您的错误报告!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多