Posting to SecurityTrax is done via raw http post. In order to perform this action you will need the following information:
|
URL |
https://secure.securitytrax.com/site_name/informationrequester.php |
|
Partner ID |
This is the unique ID that SecurityTrax assigns to the partner company. Source ID Provided by the company using SecurityTrax. |
|
Username |
Set by company using SecurityTrax. Provided by them. |
|
Password |
Set by company using SecurityTrax. Provided by them. |
The following is an example of a valid request.
<?xml version='1.0'?> <root> <requests> <request type='GetSystemAuthentication'> <attribute name='Username'>username </attribute> <attribute name='Password'>password</attribute> <attribute name='PartnerID'>id</attribute> </request> <request type="AllAccess-GetAllEmergencyContactsByCustomerID"> <attribute name='CustomerID'>2295</attribute> </request> </requests> </root>
The following is an example of a successful response.
<?xml version="1.0"?>
<root>
<responses>
<response type="GetSystemAuthentication" success="true">
<data>
<message>Authenticated To System</message>
</data>
<system_request>
<request type="GetSystemAuthentication">
<attribute name="Username">username</attribute>
<attribute name="Password">password</attribute>
<attribute name="PartnerID">id</attribute>
</request>
</system_request>
</response>
<response type="AllAccess-GetAllEmergencyContactsByCustomerID" success="true">
<data>
<CustomerEmergencyContactsList>
<CustomerEmergencyContact>
<ID>535</ID>
<CustomerEmergencyContactID>535</CustomerEmergencyContactID>
<Name>John Doe</Name>
<Phone>1112223333</Phone>
<Type>Home</Type>
<Language>en</Language>
<Sort>1</Sort>
</CustomerEmergencyContact>
<CustomerEmergencyContact>
<ID>536</ID>
<CustomerEmergencyContactID>536</CustomerEmergencyContactID>
<Name>Jane Doe</Name>
<Phone>2223334444</Phone>
<Type>Mobile/Cell</Type>
<Language>en</Language>
<Sort>2</Sort>
</CustomerEmergencyContact>
<CustomerEmergencyContact>
<ID>537</ID>
<CustomerEmergencyContactID>537</CustomerEmergencyContactID>
<Name>Mary Doe</Name>
<Phone>3334445555</Phone>
<Type>Work</Type>
<Language/>
<Sort>3</Sort>
</CustomerEmergencyContact>
</CustomerEmergencyContactsList>
</data>
<system_request>
<request type="AllAccess-GetAllEmergencyContactsByCustomerID">
<attribute name="CustomerID">2295</attribute>
</request>
</system_request>
</response>
</responses>
</root>