hownowstephen/php-foursquare

This endpoint will stop returning groups in the future

danilowm opened this issue · 5 comments

[meta] => stdClass Object
(
[code] => 200
[errorType] => deprecated
[errorDetail] => This endpoint will stop returning groups in the future. Please use a current version, see http://bit.ly/lZx3NU.
)

What endpoint are you trying to access?

list($lat, $lng) = $foursquare->GeoLocate('Av. Paulista - São Paulo, SP');
$params = array('ll' => "$lat, $lng");
$response = $foursquare->GetPrivate('venues/search', $params);
$venues = json_decode($response);

print_r( $venues );

Formerly the endpoint would return groups in venue searches, looks like it no longer does, as of June 15th, 2011. https://developer.foursquare.com/docs/changelog.html

now only returns compact venue details:
https://developer.foursquare.com/docs/responses/venue.html

Ok.

About the date of versioning? i need use?
https://developer.foursquare.com/docs/overview.html#versioning

I do this
$params = array('ll' => "$lat, $lng", 'v' => date('Ymd'));
and Work, off course removing some parts of code.

The versioning shouldn't be an issue, that is just in case you want to protect yourself against future API deprecations - as it is, you will get venue objects like normal, just an error letting you know that groups are not supported.