Foursquare API:获取精选照片集

Foursquare API: get set of featured photos

我正在开发 Android 使用 Foursquare API 的应用程序。为了获取结果,我使用 /venues/explore endpoint. I want to make fancy detail screen with set of photos as Foursquare does(example) So, according to documentation, when I make request for nearby places, I use parameter venuePhotos=1, but always get one photo from the count result of featured photos (example)。这是 API 的错误还是我弄错了:) ?

我正在使用 hurl.it 来监视某些请求的响应。
这是我的 API 请求(我删除了我的客户端 ID 和密码):

GET https://api.foursquare.com/v2/venues/explore?venuePhotos=1&limit=10&radius=500&v=20160215&ll=55.693053,12.584903&client_secret=//&client_id=//

client_id:

client_secret:

极限:10

ll: 55.693053,12.584903

半径:500

v: 20160215

场地照片: 1

而且我在每个场地的常规照片和特色照片的照片计数中总是得到一张照片。响应示例:

{"reasons": {},"venue": {"id": "4c41ae26af052d7fbba97d79","name": "Femmeren - jazz-værtshus","contact": {},"location": {},"categories": [],"verified": false,"stats": {},"price": {},"rating": 8.2,"ratingColor": "73CF42","ratingSignals": 11,"allowMenuUrlEdit": true,"photos": {"count": 1,"groups": []},"hereNow": {},"featuredPhotos": {"count": 1,"items": []}},"tips": [],"referralId": "e-0-4c41ae26af052d7fbba97d79-3"},

感谢您澄清您的问题。 venuePhotos=1 参数将在来自 venues/explore 端点的响应中包含一张照片。如果您需要在场地列表中显示单张照片,这将非常有用。要获取某个地点的更多照片,您需要点击 venues/photos 端点并传递您想要照片来自的 venueId -> https://api.foursquare.com/v2/venues/VENUE_ID/photos