function updateEvent()
{
    $explara = new Explara();
    $event = new Event();
    $event->eventId = 'EKDJHH';
    $event->type = 'ticketing';
    $event->eventType = 'public';
    $event->eventTitle = 'My Demo Event';
    $event->url = 'url-my-demo-4';
    $event->subdomain = 'demosubdomain4';
    $event->category = 'business';
    $event->startDate = '2013-12-30';
    $event->endDate = '2013-12-31';
    $event->startTime = '09:00';
    $event->endTime = '16:00';
    $event->aboutEvent = 'This is the descrption of the event.';
    $event->listingImage = 'http://images2.fanpop.com/image/photos/13900000/The-Rose-of-Love-roses-13967150-1024-768.jpg';
    $event->headerImage = 'http://images2.fanpop.com/image/photos/13900000/The-Rose-of-Love-roses-13967150-1024-768.jpg';
    $event->contactInfo = '*****@*****.**';
    $event->country = 'India';
    $event->state = 'Karnataka';
    $event->city = 'Bangalore';
    $event->postal = '560071';
    $event->address = 'Domlur layout';
    $response = $explara->updateEvent($event);
    echo "<br><pre>";
    print_r($response);
    die;
}
function publisherEvents()
{
    $explara = new Explara();
    $response = $explara->getEventListForPublisher('business,technology');
    echo "<br><pre>";
    print_r($response);
    die;
}
function getAttendee()
{
    $explara = new Explara();
    $response = $explara->getAttendee('EKCACB', 0, 5);
    echo "<br><pre>";
    print_r($response);
    die;
}
Exemple #4
0
function userList()
{
    $explara = new Explara();
    $response = $explara->getBookingList(NULL, NULL);
    //$response
    echo "<br><pre>";
    print_r($response);
    die;
}
function updateDiscount()
{
    $explara = new Explara();
    $event = new Discount();
    $event->eventId = 'EKDJHH';
    $event->ticketId = 'TKCIGJ';
    $event->discountCategory = 'flat';
    $event->discount = 50;
    $event->discountType = 'fixed';
    $event->discountId = 'DKFJ';
    $response = $explara->updateDiscount($event);
    echo "<br><pre>";
    print_r($response);
    die;
}
function updateTicket()
{
    $explara = new Explara();
    $event = new Ticket();
    $event->eventId = 'EKDJHH';
    $event->ticketId = 'TKCIGJ';
    $event->ticketName = 'Registration Pass updated';
    $event->ticketDescription = 'Your Gate Pass updated';
    $event->price = 200;
    $event->currency = 'INR';
    $event->quantity = 50;
    $event->status = 'published';
    $event->minQuantity = 1;
    $event->maxQuantity = 10;
    $event->serviceFee = 1;
    $event->allowCancellation = false;
    $response = $explara->updateTicket($event);
    echo "<br><pre>";
    print_r($response);
    die;
}