Four Square Page Updates

Get page update details.

Figure 1a. Instantiate Page Updates
$pageupdates = eden('foursquare')->pageupdates($_SESSION['oauth_token']);
Figure 1b. Usage: Retrieve list of page updates created by the current user.
$pageupdates->getList();
Figure 1c. Usage: Like a Page.
$pageupdates->like('[PAGE_ID]');
Figure 1d. Usage: Delete a Page.
$pageupdates->delete('[PAGE_ID]');
Figure 1e. Page Updates Methods
Method Arguments Returns Description
$pageupdates->setPageId($pageId);
  1. string
Eden_Foursquare_Pageupdates The page to associate the with broadcast.
$pageupdates->setGroupId($groupId);
  1. string
Eden_Foursquare_Pageupdates The venue group from which to broadcast an update.
$pageupdates->setVenueId($venueId);
  1. string
Eden_Foursquare_Pageupdates Venue ID indicated which venues to broadcast from.
$pageupdates->setShout($shout);
  1. string
Eden_Foursquare_Pageupdates Text associated with the broadcast. 160 characters max.
$pageupdates->setCampaignId($campaignId);
  1. string
Eden_Foursquare_Pageupdates An optional special to attach to the broadcast.
$pageupdates->setPhotoId($photoId);
  1. string
Eden_Foursquare_Pageupdates An optional special to attach to the broadcast.
$pageupdates->setBroadcast($broadcast);
  1. string
Eden_Foursquare_Pageupdates Additional places to send the broadcast to. Accepts list of values: facebook - share on facebook twitter - share on twitter private - just create the update without broadcasting to anyone
$pageupdates->addPage(); none array Allows you to add the page's venues.
$pageupdates->getList(); none array Returns a list of page updates created by the current user.
$pageupdates->delete($pageId);
  1. string
  2. - The ID of the update to delete.
array Delete a page update created by the current user.
$pageupdates->like($pageId);
  1. string
  2. - The ID of the update to like.
array Causes the current user to 'like' a page update. If there is a campaign associated with the update, the like will propagate to the special as well.

© 2012 Openovate Labs. All rights reserved.