POST attendees/update
Update an attendee
URL:
http://mobileroadie.com/api/attendees/update
Formats
XML, JSON, HTML
Requirements
SSL, API Secret, White-Listed IP Address
HTTP Method(s):
POST
URL Parameter(s):
-
key
-
Required
-
POST Parameters:
-
secret
-
Required.
-
-
id
-
Required. Id of existing entry.
-
-
first_name
-
Required. The Attendee's given name.
-
-
last_name
-
Required. The Attendee's family name.
-
-
country
-
Required. Country Code in ISO format.
-
-
company
-
The attendee's Company name.
-
-
twitter
-
The attendee's Twitter name.
-
-
thumbnail
-
Thumbnail image url. Image will automatically be cropped to 36px by 36px with rounded corners.
-
-
category id
-
Not required.
-
Usage Example
<?php $data = array( 'secret' => 'your_secret_key', 'id' => '12345', 'first_name' => 'Mary', 'last_name' => 'Smith', 'country' => 'US',' 'company' => 'ACME, Inc.', 'twitter' => 'twittername', 'thumbnail => 'http://mobileroadie.com/img/default-image.png', 'category_id' => '0' ); $handle = curl_init("https://mobileroadie.com/api/attendees/update/key/4d4ba30d73b77f7"); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); $response = curl_exec($handle); curl_close($handle); ?>
Success Response
<xml> <id>1234567890</id> </xml>
Response when Missing Required Fields
<xml> <error>[FieldName1] is required. [FieldNameX] is required.</error> </xml>
Comments
0 comments
Please sign in to leave a comment.