Four Square Checkins

Get details of a checkin.

Figure 1a. Instantiate Checkins
$checkins = eden('foursquare')->checkins($_SESSION['oauth_token']);
Figure 1b. Usage: Retrieve a List of Recent Checkins from Friends.
$campaign
	->setLocation('[LONGTITUDE]', '[LATITUDE]')		//optional
    ->setLimit('[INTEGER]')							//optional
    ->getRecentCheckins();
Figure 1c. Usage: Checkin to a Place.
$campaign
	->setEventId('[EVENT_ID]')		//optional
    ->setShout('[STRING]')			//optional
    ->checkin('[VENUE_ID]', 'facabook');
Figure 1d. Usage: Comment to a checkin.
$campaign->addComment('[CHECKIN_ID]', 'Your Comment Text Here');
Figure 1e. Users Methods
Method Arguments Returns Description
$checkins->setEventId($eventId);
  1. string
Eden_Foursquare_Checkins The event the user is checking in to.
$checkins->setShout($shout);
  1. string
Eden_Foursquare_Checkins Set shout
$checkins->setLimit($limit);
  1. integer
Eden_Foursquare_Checkins Number of results to return, up to 50.
$checkins->setUrl($url);
  1. string
Eden_Foursquare_Checkins The url of the homepage of the venue.
$checkins->setContentId($contentId);
  1. string
Eden_Foursquare_Checkins Set Content id.
$checkins->checkin($venueId, $broadcast);
  1. string
  2. - The venue where the user is checking in
  3. string
  4. - Who to broadcast this check-in to
array Check in to a place.
$checkins->getRecentCheckins(); none array Returns a list of recent checkins from friends.
$checkins->addComment($checkinId, $text);
  1. string
  2. - The ID of the checkin to add a comment to.
  3. string
  4. - The text of the comment, up to 200 characters.
array Comment on a checkin-in
$checkins->addPost($checkinId, $text);
  1. string
  2. - The ID of the checkin to add a comment to.
  3. string
  4. - The text of the comment, up to 200 characters.
array Post user generated content from an external app to a check-in. This post will be accessible to anyone who can view the details of the check-in.
$checkins->deleteComment($checkinId, $commentId);
  1. string
  2. - The ID of the checkin to remove a comment from.
  3. string
  4. - The id of the comment to remove.
array Remove a comment from a checkin, if the acting user is the author or the owner of the checkin.
$checkins->replyToCheckin($checkinId, $text);
  1. string
  2. - The ID of the checkin to remove a comment from.
  3. string
  4. - The id of the comment to remove.
array Reply to a user about their check-in. This reply will only be visible to the owner of the check-in.

© 2012 Openovate Labs. All rights reserved.