expo-IP CMS User Manual
To use the expo-IP CMS, you need any current browser that supports the current HTML5 standard without errors. This does NOT include the browser: Microsoft INTERNET EXPLORER.Webhook UserUpDate
With this webhook data of an event visitor can be updated.
URL to update user data
https://<messename>.expo-ip.com/api/user/update/[userid]
HTTP HEADER
Key |
Type |
Required |
Option |
X-API-KEY |
string |
yes |
|
POST parameter
Key |
Type |
Required |
Option |
firstname |
string |
no |
|
loadname |
string |
no |
|
|
string |
no |
|
title |
string |
no |
|
salutation |
integer |
no |
1 = Mr. / Mr. 2 = Woman / Mrs. 3 = diverse / other 4 = unknown / unknown |
timezone |
srtring |
no |
https://www.php.net/manual/de/timezones.php |
CustomFieldUser |
array |
no |
|
login_hash |
sting |
no |
|
password |
string |
no |
|
The structure of the CustomFieldUser [Array].
[
id =>
[
value => [string | id]
]
]
Return Values
If API key is incorrect: HTTP/1.1 404 Not Found
If API key is correct in JSON format (example):
{
„success“:“1″,
„resultMessage“:“UpDate erfolgreich“
}
Example:
The data of the user with the UserId 6568 are to be assigned the following values:
firstname= "Max"
lastname= "Muster"
email= "max@muster.de"
salutation = 1 (Mann / Mr.)
timezone = "Europe/Berlin"
Company name in CustomFieldUser [64] = "EXPO-IP GmbH"
Selection field in CustomFieldUser [82] = 1
Sample code for updating user data in PHP:
// MESSENAME durch den tatsächlichen Namen der Messe ersetzen: $userId = 6568; $strTargetURL = 'https://MESSENAME.expo-ip.com/api/user/update/' . $userId; // API Key hier einsetzen $apiKey = 'aaaaXXXXaaaaXXXXaaaaXXXX'; // Die zu sendenden Daten $arrUserdata = [ 'User' => [ 'email' => 'max@muster.de', 'firstname' => 'Max', 'lastname' => 'Muster', 'salutation' => 1, 'title' => 'Dr.', 'timezone' => 'Europe/Berlin', ], 'CustomFieldUser' => [ 64 => [ 'value' => 'EXPO-IP GmbH' ], 82 => [ 'value' => '1' ] ] ]; $ch = curl_init($strTargetURL); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-API-KEY: " . $apiKey)); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($arrUserdata) ); curl_setopt($ch, CURLOPT_VERBOSE, '1'); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); if( ! $result = curl_exec($ch)) { die('Ein Fehler ist aufgetreten: ' . curl_error($ch)); } print 'Antwort vom Server:'; print $result;
The webhook returns a result in JSON format, e.g.
{
„success“:“1″,
„resultMessage“:“UpDate erfolgreich“
}