I was able to successfully call the EventSpot API function to fetch info on a registrant for an event that I published, but the structure of the return data does not seem consistent with your documentation on the individual event registrant function (http://developer.constantcontact.com/docs/eventspot-apis/registrants-resource.html). I customized your PHP library since you haven't added code for the EventSpot API functions yet: // 'eventspot_registrant' => 'eventspot/events/%s/registrants/%s'
$baseUrl = Config::get('endpoints.base_url') . sprintf(Config::get('endpoints.eventspot_registrant'), $event_id, $registrant_id);
$url = $this->buildUrl($baseUrl);
$response = parent::getRestClient()->get($url, parent::getHeaders($accessToken)); The response I got is the following (Xs used to mark out sensitive data). I am mainly looking to fetch the promo code used by a registrant with their purchase. Is there a way to get this? And am I doing something wrong in terms of how I am calling the function? I used the following call: https://api.constantcontact.com/v2/eventspot/events/{eventId}/registrants/{registrantId}?api_key=XXXXXXXX array(4) {
["id"]=>
string(79) "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
["sections"]=>
array(1) {
[0]=>
array(2) {
["label"]=>
string(20) "Personal Information"
["fields"]=>
array(3) {
[0]=>
array(4) {
["type"]=>
string(12) "single_value"
["name"]=>
string(10) "NAME_FIRST"
["label"]=>
string(11) "First Name:"
["value"]=>
string(10) "XXXX"
}
[1]=>
array(4) {
["type"]=>
string(12) "single_value"
["name"]=>
string(9) "NAME_LAST"
["label"]=>
string(10) "Last Name:"
["value"]=>
string(9) "XXXXXXX"
}
[2]=>
array(4) {
["type"]=>
string(12) "single_value"
["name"]=>
string(13) "EMAIL_ADDRESS"
["label"]=>
string(14) "Email Address:"
["value"]=>
string(27) "XXXXXXXX@XXXXXXXX.com"
}
}
}
}
["ticket_id"]=>
string(9) "XXXXXXXX"
["registration_date"]=>
string(24) "2014-08-20T23:35:13.975Z"
}
... View more