Sunday, December 23, 2018

Sample ColdFusion code to send GET request to RESTlets

The following is a sample ColdFusion code for sending GET requests to RESTlets:


<cfhttp url="https://rest.netsuite.com/app/site/hosting/restlet.nl?script=21&deploy=1" method="GET" charset="utf-8" result="results" >
              <cfhttpparam type="Header" name="Content-type" value="application/json">
              <cfhttpparam type="Header" name="Authorization" value="NLAuth nlauth_account=3548042, nlauth_email=emonsales@netsuite.com, nlauth_signature=*****, nlauth_role=3">
</cfhttp>
<cfdump var="#results#">

No comments:

Post a Comment