API access in ASP
API access in ASP
Here is some simple code to get through to the API in ASP
First - enable the API in your settings!
JC
<%
Set oHttp = CreateObject( "Msxml2.XMLHTTP.3.0")
oHttp.open "GET", "https://" + companyName + ".freeagentcentral.com/contacts", false, thisUsername, thisPwd
oHttp.setRequestHeader "Content-Type", "application/xml"
oHttp.setRequestHeader "Accept", "application/xml"
oHttp.send
Response.Write "<li>" + "Status : " + oHttp.getResponseHeader( "Status")
Response.Write "<li>" + "responseXML : <br />" + oHttp.responseXML.xml
if Err <> 0 then
Response.Write "ERROR : " + cstr( Err) + " [" + Err.description + "]"
end if
Response.Write " Finished"
%>
Here is some simple code to get through to the API in ASP
First - enable the API in your settings!
JC
<%
Set oHttp = CreateObject( "Msxml2.XMLHTTP.3.0")
oHttp.open "GET", "https://" + companyName + ".freeagentcentral.com/contacts", false, thisUsername, thisPwd
oHttp.setRequestHeader "Content-Type", "application/xml"
oHttp.setRequestHeader "Accept", "application/xml"
oHttp.send
Response.Write "<li>" + "Status : " + oHttp.getResponseHeader( "Status")
Response.Write "<li>" + "responseXML : <br />" + oHttp.responseXML.xml
if Err <> 0 then
Response.Write "
end if
Response.Write "
%>
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Loading Profile...



