i’m new to foursquare API. I’m trying to make it work wioth my wordpress website (listing directory, like venues) and for each venue I want to display the “hereNow” users along with photos and reviews/tips.
I’ve registered my app and so I have both client id and secret.
for tips/photos I think i cant do without Auth, but I wonder why herenow is missing from my array.
this is the query i’ve used on my php file:
$venue = $fsObjUnAuth->get('/venues/search', array('near' => $city, 'query' => $title ));
where
$fsObjUnAuth = new EpiFoursquare($clientId, $clientSecret);
and city and title are taken from WordPress custom fields.
I got the correct ouput but herenow is missing, here an extract:
["verified"]=>
bool(false)
["stats"]=>
object(stdClass)#20 (3) {
["checkinsCount"]=>
int(1)
["usersCount"]=>
int(1)
["tipCount"]=>
int(0)
}
["likes"]=>
object(stdClass)#21 (2) {
["count"]=>
int(0)
["groups"]=>
array(0) {
}
}
["specials"]=>
array(0) {
}
}
It is supposed to be below Specials but no trace. In the Api Explorer it appears regularly, but on my files not.
Any hint?
thanks!
I’ve fixed this adding the “v=” query at the end of the json url basically it is the date(Ymd) needed in the v2 API. with that, my output shows the hereNow