Reputation: 13
I am making the following request as a userless API call:
https://api.foursquare.com/v2/venues/xxx123yyy/photos?v=20120321&group=venue
but the response I am getting shows a 0 count of items:
"response": {
"photos": {
"count": 0,
"items": []
}
I can go to the same venue from the Foursquare webpage (without being logged in) and see the publicly listed photos there. If I try another venue, I get the expected response with same photo items as visible from web. What could be specific to this venue that is preventing the expected response?
Upvotes: 1
Views: 1662
Reputation: 97
To get Photos using venue ID access Token is required...
If you want all non-friend's public photos https://api.foursquare.com/v2/venues/{Vanue ID which you manage}/photos?group=venue&oauth_token={Your Access Tiken}&v={Current Data in yyyyMMdd format}
If you want all public photos https://api.foursquare.com/v2/venues/{Vanue ID which you manage}/photos?&oauth_token={Your Access Tiken}&v={Current Data in yyyyMMdd format}
Upvotes: 0
Reputation: 1393
I noticed this started happening earlier today, too. The venues/
endpoint appears to want an oauth_token, effectively breaking userless calls.
{"meta":{"code":401,"errorType":"invalid_auth","errorDetail":"Missing oauth_token. See https:\/\/developer.foursquare.com\/docs\/oauth.html for details."},"response":{}}
Upvotes: 1