未经授权获取场地详细信息(Foursquare)

Get venue details without auth (Foursquare)

根据 Foursquare 的开发站点,地点详细信息不需要用户授权:

HTTP 方法 GET 需要代理用户号(了解更多) 支持的模式 foursquare、swarm(了解更多)

但是该示例使用了 oauth 令牌,如果您尝试使用您的客户端凭据进行搜索,您会收到 400 响应。

https://api.foursquare.com/v2/venues/4b522afaf964a5200b6d27e3?client_id=MY_CLIENT_ID&client_secret=MY_CLIENT_SECRET&v=20140714

returns:

{"meta":{"code":400,"errorType":"invalid_auth","errorDetail":"Missing access credentials. See https:\/\/developer.foursquare.com\/docs\/oauth.html for details."},"response":{}}

有人知道无需用户登录即可获取场地详细信息的方法吗?

感叹

问题出在我的代码上。我将我的客户 ID 输入了两次。

众所周知,上面的方法有效:)