Four Square Venue Groups

Get venue group details.

Figure 1a. Instantiate Venue Groups
$venuegroups = eden('foursquare')->venuegroups($_SESSION['oauth_token']);
Figure 1b. Usage: Return all venue groups owned by the user.
$venuegroups->getList();
Figure 1c. Usage: Create a venue group.
$venuegroups
	->setVenueId('VENUE_ID')	//optional
    ->addVenueGroups('YOUR VENUE GROUP NAME');
Figure 1d. Usage: Add a venue to a venue group.
$venuegroups->addVenueToGroup('GROUP_ID', 'VENUE_ID');
Figure 1e. Venue Groups Methods
Method Arguments Returns Description
$venuegroups->setVenueId($venueId);
  1. string
Eden_Foursquare_Venuegroups Set venue Id
$venuegroups->setVenueName($venueName);
  1. string
Eden_Foursquare_Venuegroups Set name of the venue
$venuegroups->setTwitter($twitter);
  1. string
Eden_Foursquare_Venuegroups Set twitter account
$venuegroups->setCity($city);
  1. string
Eden_Foursquare_Venuegroups The city name where this venue is.
$venuegroups->setState($state);
  1. string
Eden_Foursquare_Venuegroups The nearest state or province to the venue.
$venuegroups->setZip($zip);
  1. string
Eden_Foursquare_Venuegroups The zip or postal code for the venue.
$venuegroups->setPhone($phone);
  1. string
Eden_Foursquare_Venuegroups The phone number of the venue.
$venuegroups->setDescription($description);
  1. string
Eden_Foursquare_Venuegroups A freeform description of the venue, up to 300 characters.
$venuegroups->setUrl($url);
  1. string
Eden_Foursquare_Venuegroups The url of the homepage of the venue.
$venuegroups->setCategoryId($categoryId);
  1. string
Eden_Foursquare_Venuegroups Set category id
$venuegroups->setEndTime($endTime);
  1. string
Eden_Foursquare_Venuegroups The end of the time range to retrieve stats for
$venuegroups->setFields($fields);
  1. string
Eden_Foursquare_Venuegroups Specifies which fields to return. May be one or more of totalCheckins, newCheckins, uniqueVisitors, sharing, genders, ages, hours.
$venuegroups->addVenueGroups($name);
  1. string
  2. - The name to give the group.
array Create a venue group
$venuegroups->deleteVenueGroups($groupId);
  1. string
  2. - The ID of the venue group to delete.
array Delete a venue group
$venuegroups->getList(); none array Return all venue groups owned by the user.
$venuegroups->getTimeSeries($groupId, $startTime);
  1. string
  2. - The venue group to retrieve series data for.
  3. string
  4. - The start of the time range to retrieve stats for. YYYY-MM-DD
array Get daily venue stats for the venues in a group over a time range.
$venuegroups->addVenueToGroup($groupId, $venueId);
  1. string
  2. - The ID of the venue group to modify
  3. string
  4. - Venue IDs to add to the group
array Add a venue to a venue group.
$venuegroups->getCampaigns($groupId);
  1. string
  2. - The ID of the venue group to access
array Make changes to all venues in a venue group
$venuegroups->editVenue($venueGroupId);
  1. string
  2. - The venue id to edit
array Make changes to a venue
$venuegroups->removeVenue($groupId, $venueId);
  1. string
  2. - The ID of the venue group to modify
array Remove a venue from a venue group.
$venuegroups->updateVenueGroup($groupId, $venueId, $name);
  1. string
  2. - The ID of the venue group to modify
  3. string
  4. - Venue ID that will become the new set of venue IDs for the group.
  5. string
  6. - The new name to give to the group.
array Updates a venue group

© 2012 Openovate Labs. All rights reserved.