I am trying to repeat the following cURL Example using CFHTTP/CFHTTPPARAM but no luck
curl https://your-space.signalwire.com/api/relay/rest/jwt \
-X POST \
-u 'YourProjectID:YourProjectToken' \
-H 'Content-Type: application/json'
I've tried appending the #YourProjectID#:#YourProjectToken# directly to the URL, that didnt work..
Here is my CFHTTP code;
<cfhttp method="post" url="#u#" >
<cfhttpparam type="url" name="#projectID#" value="#APItoken#">
<cfhttpparam type="header" name="Content-Type" value="application/json">
</cfhttp>
ANy suggestions on how to structure this?