Event Attendee Visit OpCode EVA – Add An Attendee Visit For An Event
Event Attendee Visit OpCode EVA – Add An Attendee Visit For An Event
This opcode is used to add a visit record for an existing event in the specified show. The Event to add dates for may be identified by specifying the EventKey, EventCode, or EventDescription. The user to add the visit record for may be identified by specifying the ShowUserKey or the Email Address. Note that dates are to be specified in the following 24-hour format: YYYY-MM-DD HH:MI:SS
Example: 2021-12-31 14:30:00
Calling the API
The API is called via a secure HTTPS request. This HTTPS request may be a GET or POST operation (except for file uploading which requires a multi-part form post). Each request must supply the authentication credentials assigned to the caller by Notified. Only requests with valid credentials will be processed. These credentials identify the caller and provide access only to a specific customer area.
The format of the API call is: https://api.onlinexperiences.com/scripts/Server.nxp?LASCmd=AI:4;F:APIUTILS!50540&APIUserAuthCode={YourAuthCode}&APIUserCredentials={YourCredentials}&OpCodeList={Opcode[OpCode[…]]}&OutputFormat={X|H|T(default)}&ShowKey={ShowKey}&{Additional, opcode-specific parameters in name=value format…}
Specific parameter ordering is unimportant, with the only restriction being that the first parameter MUST BE LASCmd=AI:4;F:APIUTILS!50540. All other parameters may appear in any sequence order.
API Parameter |
Type/Size |
Req. |
Comment |
---|---|---|---|
APIUserAuthCode |
Varchar 80 |
Y |
Your API authorization code as supplied by Notified. |
APIUserCredentials |
Varchar 80 |
Y |
Your API user credentials as supplied by Notified. |
OpCodeList |
Varchar 20 |
Y |
Should include EVA to invoke this function. |
OutputFormat |
Char 1 |
N |
T for text, H for HTTP URL-encoded, or X for XML. Defaults to T. |
ShowKey |
Integer |
Y |
The ShowKey that the Event belongs to. |
EventKey |
Integer |
N |
The event key to add dates to. |
EventCode |
Varchar 255 |
N |
The event code to add dates to. |
EventDescription |
Varchar 355 |
N |
The description of the event to add dates to. |
StaffShowUserKey |
Integer |
N |
ShowUserKey for the user being added as attending the event. |
StaffEMailAddress |
Varchar 255 |
N |
Email address for the user being added as attending the event. |
EventDatesFromDateTime |
Datetime |
N |
Beginning date/time of the visit range. Must be in YYYY-MM-DD HH:MI:SS format. Defaults to now. |
EventDatesToDateTime |
Datetime |
N |
Ending date/time of the visit range. Must be in YYYY-MM-DD HH:MI:SS format. Defaults to EventDatesFromDateTime plus 10 minutes. |
APIUserAuthCode |
varchar 80 |
Y |
Your API authorization code as supplied by Notified. |
This API returns the status message OK and the EventDatesKey upon successful completion.
Text
### APICallResult=0 APICallDiagnostic=OK OpCodesProcessed=1 OpCodesInError=0
## OpCode=EVA Status=0 Message=OK
EventAttendeeKey
123456
EventKey
123456
HTTP URL-encoded
APICallResult=0&APICallDiagnostic=OK&OpCodesProcessed=1& OpCodesInError=0&OpCode=EVA&Status=0&Message=OK&EventAttendeeKey=123456&EventKey=123456
XML
<?xml version="1.0" encoding="utf-8" ?>
<APIResults APICallResult="0" APICallDiagnostic="OK" OpCodesProcessed="1" OpCodesInError=”0” >
<OpCodeResult OpCode="EVA" Status="0" Message="OK" >
<ResultRow>
<EventAttendeeKey>123456</EventAttendeeKey>
<EventKey>123456</EventKey>
</ResultRow>
</OpCodeResults>
</APIResults>
Potential Error Codes
Error |
Message |
Reason |
---|---|---|
101 |
Event Not Found! |
The function could not find a matching event entry based on the values supplied in EventKey, EventCode, and EventDescription. |
102 |
Show User Not Found! |
The function could not find a matching user based on the values supplied in StaffShowUserKey and StaffEMailAddress. |