To request a phone call through your website, you need to call the Net-Iden
API located at http://soap.netiden.com, or at https://soap.netiden.com if you need
to use an SSL connection.
The input variables described in the previous topic should be included
when calling the API. For example:
http://soap.netiden.com/PlaceCall.netiden?Country=44&
Phone=5553214598&PIN=6697&CallType=1&
Language=English&TransactionID=CART548741224_43&
AID=3945fss5f4fgf454k
697ute13w3w1xvbh4kj&
UID=363ffd6eefv544536973589gvxc578
34134&
IP=192.168.1.1&
BIN=452365
When SSL is needed, you can replace http:// by https://
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_Country="1"
Input_Phone="5553268745"
Input_PIN="6574"
Input_CallType="1"
Input_Language="English"
Input_TransactionID="MyCart544469832"
Input_AID="387DJSFJK3289324N"
Input_UID="3458473NCYNIWUYNI345"
Input_IP=request.servervariables("REMOTE_ADDR")
Input_BIN="452365"
'DEFINES THE REQUEST STRING VARIABLE
txtRequestString = "http://soap.netiden.com/PlaceCall.netiden?"
txtRequestString = txtRequestString & "Country=" & Input_Country & "&"
txtRequestString = txtRequestString & "Phone=" & Input_Phone & "&"
txtRequestString = txtRequestString & "PIN=" & Input_PIN & "&"
txtRequestString = txtRequestString & "CallType=" & Input_CallType & "&"
txtRequestString = txtRequestString & "Language=" & Input_Language & "&"
txtRequestString = txtRequestString & "TransactionID=" & Input_TransactionID & "&"
txtRequestString = txtRequestString & "AID=" & Input_AID & "&"
txtRequestString = txtRequestString & "UID=" & Input_UID & "&"
txtRequestString = txtRequestString & "CallWaiting=" & Input_ WaitResponse
'CALLS THE NETIDEN API
oHttp.open "GET",txtRequestString , false
oHttp.send
xmldom.async =false
xmldom.loadXML (oHttp.responseText)
%> |