Foursquare场地照片API只偶尔使用client_id / client_secret?

时间:2012-03-05 00:31:08

标签: foursquare

我发现如果我使用已签名的用户而不是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是否仅适用于已登录的用户?

1 个答案:

答案 0 :(得分:0)

看起来无用户访问/场所/照片存在错误。该团队正在调查。预期的行为是该终端的无用户访问返回附加到该场所的所有公共照片。