Eventbrite Tickets

Figure 1. Instantiate Tickets
//user type
$ticket = eden('eventbrite')->ticket($_SESSION['ebtoken']);
//personal type
$ticket = eden('eventbrite')->ticket('[USER_KEY]', '[APP_SECRET]');
Figure 2. Usage: Create a Ticket
	
$ticket
	->setEvent($id)						//required
	->setName($name)					//required
	->setPrice($price)					//required
	->setQuantity($quantity)			//required
	->setDescription($description)		//optional
	->setDonation()						//optional
	->setEnd($end)						//optional
	->setFee()							//optional
	->setMax($max)						//optional
	->setMin($quantity)					//optional
	->setStart($start)					//optional
	->create();
Figure 3. Usage: Update a Ticket
$ticket
	->setId($ticketId)					//required
	->setName($name)					//required
	->setPrice($price)					//required
	->setQuantity($quantity)			//required
	->setDescription($description)		//optional
	->setDonation()						//optional
	->setEnd($end)						//optional
	->setFee()							//optional
	->setHide($hide)					//optional
	->setMax($max)						//optional
	->setMin($quantity)					//optional
	->setStart($start)					//optional
	->update();
Figure 4. Ticket Methods
Method Arguments Returns Description
$ticket->create(); none array Creates the ticket
$ticket->setDescription($description);
  1. string
Eden_Eventbrite_Ticket Set the description
$ticket->setDonation(); none Eden_Eventbrite_Ticket Accept donations
$ticket->setEnd($end);
  1. string|int
Eden_Eventbrite_Ticket Set the end time
$ticket->setEvent($id);
  1. int
Eden_Eventbrite_Ticket Set event ID
$ticket->setFee(); none Eden_Eventbrite_Ticket Include Eventbrite's fee on top of the ticket fee
$ticket->setHide($hide);
  1. bool
Eden_Eventbrite_Ticket If true, will hide the ticket type
$ticket->setId($ticketId);
  1. int
Eden_Eventbrite_Ticket Set Ticket ID
$ticket->setMax($max);
  1. int
Eden_Eventbrite_Ticket Set the maximum number of tickets per order
$ticket->setMin($quantity);
  1. int
Eden_Eventbrite_Ticket Set the minimum number of tickets per order
$ticket->setName($name);
  1. string
Eden_Eventbrite_Ticket Set ticket name
$ticket->setPrice($price);
  1. float
Eden_Eventbrite_Ticket Set price
$ticket->setQuantity($quantity);
  1. int
Eden_Eventbrite_Ticket Set quantity
$ticket->setStart($start);
  1. int|string
Eden_Eventbrite_Ticket Set the start time
$ticket->update(); none array Updates the ticket

© 2012 Openovate Labs. All rights reserved.