Buddy List OpCode A: Add a User to the Buddy List
Buddy List OpCode A: Add a User to the Buddy List
This OpCode is used to add a user to the specified person’s buddy list in the VTS system. If the specified user already exists in the buddy list, no error is generated. The user specifications may be made using either the email address or External ID. When using the email address, either omit or set LookupByExternalID to 0 (zero). When this is set to one (1), the user is located using the External ID.
Calling the API
The API is called via a secure HTTPS request. This HTTPS request may be a GET or POST operation. 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.
Buddy List API:
https://api.onlinexperiences.com/scripts/Server.nxp?LASCmd=AI:4;F:APIUTILS!50520&APIUserAuthCode={YourAuthCode}&APIUserCredentials={YourCredentials}&OpCodeList={Opcode[OpCode[…]]}&OutputFormat={X|H|T(default)}&LookupByExternalUserID={0(default)|1}&{Additional, opcode-specific parameters in name=value format…}
Note: The format of the APAC Data Center is: https://api.apac.onlinexperiences.com.
Specific parameter ordering is unimportant, with the only restriction being that the first parameter MUST BE LASCmd=AI:4;F:APIUTILS!50520 for the Buddy List API and LASCmd=AI:4;F:APIUTILS!50530 for the Show Planner API. All other parameters may appear in any sequence.
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 A to invoke this function. |
OutputFormat | Char 1 | N | T for text, H for HTTP URL-encoded, or X for XML. Defaults to T. |
EMailAddress | Varchar 255 | Y/N | Email address for the person whose buddy list is being accessed. If blank, ExternalID must be used and LookupByExternalID must be set to one (1). |
LookupByExternalUserID | Bit (0/1) | N | Pass one (1) to look up this attachment by the supplied ExternalAttachmentID (your internal identifier). |
ExternalID | Varchar 255 | - | Your internal identifier for this person. This value must be unique for each person. |
BuddyEMailAddress | Varchar 255 | Y/N | Email address for the person who is to be added to the buddy list. If blank, BuddyExternalID must be used and BuddyLookupByExternalID must be set to one (1). |
BuddyLookupByExternalUserID | Bit (0/1) | N | Pass one (1) to look up this person by the supplied BuddyExternalID (your internal identifier). If omitted or zero (0), the BuddyEMailAddress field is used to look up this person. |
BuddyExternalID | Varchar 255 | N | Your internal identifier for this person. This value must be unique for each person. |
Return Outputs
This API does not return any additional results.
Text
### APICallResult=0 APICallDiagnostic=OK OpCodesProcessed=1 OpCodesInError=0
## OpCode=A Status=0 Message=OK
HTTP URL-encoded
APICallResult=0&APICallDiagnostic=OK&OpCodesProcessed=1& OpCodesInError=0& OpCode=A&Status=0&Message=OK
XML
XML
<APIResults APICallResult="0" APICallDiagnostic="OK" OpCodesProcessed="1" OpCodesInError=”0”>
<OpCodeResult OpCode="A" Status="0" Message="OK" >
</OpCodeResult>
</APIResults>
Potential Error Codes
Error |
Message | Reason |
---|---|---|
10 | Buddy User Not Found | The value passed in either BuddyEMailAddress or BuddyExternalUserID does not match with a user in the system. |