eventGet
public static EventGetStructure eventGet(string token,string eventid)
Get the details of an Event.
Section
Event Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
string eventidThe event ID you want to use to fetch your event.

Returns
EventGetStructureReturns EventGetStructure.


Examples
download example code
xmlrpc_eventGet.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10. $eventID='484';
  11. $retVal = $client->eventGet($token, $eventID);
  12.  
  13.     echo $retVal['sequence'] . "] Event Name: " . $retVal['eventname'] . "(" . $retVal['eventid'] . ")";
  14.     echo "Status".$retVal['status'];
  15.     echo "Venue".$retVal['venue'];
  16.     echo "Location".$retVal['location'];
  17.     echo "Contact".$retVal['contactname']. "Email:".$retVal['contactemail'] "Phone:".$retVal['contactphone'] "Organization:".$retVal['contactorganization'];
  18.     echo "URL: ".$retVal['eventurl'];
  19.  echo"Dates List:";
  20. foreach($retVal['dates'] as $rec) {
  21.     echo"Date ID" . $rec['eventdateid'] "Start:".$rec['startdate'] "End:" . $rec['enddate'];
  22. }
  23.  echo"Tickets List:";
  24. foreach($retVal['tickets'] as $rec) {
  25.     echo"Ticket ID". $rec['id'] . "Label:" . $rec['label'] . "Price:" . $rec['price'];
  26.     echo"Order". $rec['order'] . "Ticket Type:" . $rec['ticketType'] . "Detail:" . $rec['detail'];
  27.     echo"Qty". $rec['qty'] . "Qty Max:" . $rec['qtyMax'] . "Qty Min:" . $rec['qtyMin'];
  28.     echo"Sales Start Type". $rec['startType'] . "Sales Start Exact:" . $rec['startExact'] . "Sales Start Relative:" . $rec['startRelative'];
  29.     echo"Sales End Type". $rec['endType'] . "Sales End Exact:" . $rec['endExact'] . "Sales End Relative:" . $rec['endRelative'];
  30.     echo"Sales Status". $rec['saleStatus'] . "Absorb Fees:" . $rec['absorb'] . "Sold:" . $rec['sold'] . "Attendee Count:" . $rec['attendeeCount'];
  31. }
  32.  
  33. ?>