Eventbrite Event Search

Figure 1. Instantiate Event Search
//user type
$search = eden('eventbrite')->event($_SESSION['ebtoken'])->search();
//personal type
$search = eden('eventbrite')->event('[USER_KEY]', '[APP_SECRET]')->search();
Figure 2. Usage
$search
	->countOnly()				//optional
	->setAddress($address)		//optional
	->setCategory($category)	//optional
	->setCountry($country)		//optional
	->setCity($city)			//optional
	->setDate($date)			//optional
	->setDateCreated($date)		//optional
	->setDateModified($date)	//optional
	->setKeywords($keywords)	//optional
	->setLatitude($latitude)	//optional
	->setLongitude($longitude)	//optional
	->setMax($max)				//optional
	->setOrganizer($organizer)	//optional
	->setPostal($postal)		//optional
	->setRegion($region)		//optional
	->setWithin($within)		//optional
	->setWithinUnit($unit)		//optional
	->sortByCity()				//optional
	->sortByDate()				//optional
	->sortById()				//optional
	->sortByName()				//optional
	->setPage($page)			//optional
	->setSince($since)			//optional
	->setTracking($tracking)	//optional
	->send();
Figure 3. Search Methods
Method Arguments Returns Description
$search->countOnly();
  1. string
Eden_Eventbrite_Event_Search Only return the number of results found
$search->send(); none array Retrieves response
$search->setAddress($address);
  1. string
Eden_Eventbrite_Event_Search Filters by address
$search->setCategory($category);
  1. string|array
Eden_Eventbrite_Event_Search Filters by categories
$search->setCountry($country);
  1. string
Eden_Eventbrite_Event_Search Filters by country
$search->setCity($city);
  1. string
Eden_Eventbrite_Event_Search Filters by city
$search->setDate($date);
  1. string
Eden_Eventbrite_Event_Search Filters by event date. Limit the list of results to a date range, specified by a label or by exact dates. Currently supported labels include: All, Future, Past, Today, Yesterday, Last Week, This Week, Next week, This Month, Next Month and months by name like October. Exact date ranges take the form 2008-04-25 2008-04-27.
$search->setDateCreated($date);
  1. string
Eden_Eventbrite_Event_Search Filters by when the event was created. Limit the list of results to a date range, specified by a label or by exact dates. Currently supported labels include: All, Future, Past, Today, Yesterday, Last Week, This Week, Next week, This Month, Next Month and months by name like October. Exact date ranges take the form 2008-04-25 2008-04-27.
$search->setDateModified($date);
  1. string
Eden_Eventbrite_Event_Search Filters by when the event was modified. Limit the list of results to a date range, specified by a label or by exact dates. Currently supported labels include: All, Future, Past, Today, Yesterday, Last Week, This Week, Next week, This Month, Next Month and months by name like October. Exact date ranges take the form 2008-04-25 2008-04-27.
$search->setKeywords($keywords);
  1. string
Eden_Eventbrite_Event_Search Filters by keywords
$search->setLatitude($latitude);
  1. float
Eden_Eventbrite_Event_Search Filters by latitude
$search->setLongitude($longitude);
  1. float
Eden_Eventbrite_Event_Search Filters by longitude
$search->setMax($max);
  1. int
Eden_Eventbrite_Event_Search Set number of results
$search->setOrganizer($organizer);
  1. string
Eden_Eventbrite_Event_Search Filters by organizer
$search->setPostal($postal);
  1. string|int
Eden_Eventbrite_Event_Search Filters by postal/zip code
$search->setRegion($region);
  1. string
Eden_Eventbrite_Event_Search Filters by region
$search->setWithin($within);
  1. int
Eden_Eventbrite_Event_Search Filters within a specified area
$search->setWithinUnit($unit);
  1. string
Eden_Eventbrite_Event_Search Filters within an area unit
$search->sortByCity(); none Eden_Eventbrite_Event_Search Sort by city
$search->sortByDate(); none Eden_Eventbrite_Event_Search Sort by event date
$search->sortById(); none Eden_Eventbrite_Event_Search Sort by event id
$search->sortByName(); none Eden_Eventbrite_Event_Search Sort by event name
$search->setPage($page);
  1. int
Eden_Eventbrite_Event_Search Set pagination
$search->setSince($since);
  1. int
Eden_Eventbrite_Event_Search Filter by event ids greater than specified
$search->setTracking($tracking);
  1. string
Eden_Eventbrite_Event_Search Sets a tranking link

© 2012 Openovate Labs. All rights reserved.