This API can be used only after you have placed a call through the PlaceCall.Netiden API, and it returns the status of a call.
Input Parameters:
<UID>
Your Net-Iden user ID. This is a mandatory field.
Usage:
<AID>
Your authentication ID. This is a mandatory field.
Usage:
- AID=<Your Authentication ID>
<CallID>
This parameter indicates the ID for the call, and it is passed by the PlaceCall.Netiden API.
<CallKey>
This parameter indicates the Key for the call, and it is passed by the PlaceCall.Netiden API.
ASP 3.0 implementation example:
<%
dim oHttp
dim xmldom
dim txtRequestString
dim result
set oHttp = CreateObject("MSXML2.XMLHTTP")
set xmldom = CreateObject("msxml2.domdocument")
'THIS EXAMPLE SETS THE VARIABLES TO BE USED IN THE REQUEST STRING
Input_AID="387DJSFJK3289324N"
Input_UID="3458473NCYNIWUYNI345"
Input_Callid="25694"
Input_CallKey="893jdfso84j354g54jui32434823h34f5665"
'DEFINES THE REQUEST STRING VARIABLE
txtRequestString = "http://soap.netiden.com/RequestStatus.netiden?"
txtRequestString = txtRequestString & "AID=" & Input_AID & "&"
txtRequestString = txtRequestString & "UID=" & Input_UID & "&"
txtRequestString = txtRequestString & "UID=" & Input_Callid& "&"
txtRequestString = txtRequestString & "UID=" & Input_CallKey
'CALLS THE NETIDEN API
oHttp.open "GET",txtRequestString , false
oHttp.send
xmldom.async =false
xmldom.loadXML (oHttp.responseText)
%>
We recommend that you check this API every 3 seconds, until the status of the call is different than 1 (Call in process):
<script language="javascript" type="text/javascript">setTimeout("location.reload();",3000);</script>
|