Get your own customer support community
 

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"
    %>
  •  
    happy I’m restful
    Inappropriate?
    1 person likes this idea

    The company implemented this idea.


    User_default_medium