Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
ctctsupport edited this page May 4, 2011 · 3 revisions

Get list of Events

<?php
// get the first page of events
$events = $ConstantContact->getEvents(); 

// get the next page of events
$moreEvents = $ConstantContact->getEvents($events['nextLink']);
?>

Get Event details

<?php
// get the first page of events
$events = $ConstantContact->getEvents(); 

// get details for the first event returned
$Event = $ConstantContact->getEventDetails($events['events'][0]);
?>

Get Registrants

<?php
// get the first page of events
$events = $ConstantContact->getEvents(); 

// get details for the first event returned
$registrants = $ConstantContact->getRegistrants($events['events'][0]);
?>

Get Registrant details

<?php
// get the first page of events
$events = $ConstantContact->getEvents(); 

// get registrants for the first event returned
$registrants = $ConstantContact->getRegistrants($events['events'][0]);

// get registrant details
$Registrant = $ConstantContact->getRegistrantDetails($registrants['registrants'][0]);
?>