I successfully made a connection to version 1 using the below code:
<cfhttp method="post"
url="http://do.convertapi.com/Word2Pdf"
result="convertAttempt"
path="#arguments.path#"
file="#arguments.fileToDestination#"
>
<cfhttpparam type="formfield" name="ApiKey" value="xxxxxxx" >
<cfhttpparam type="file" file="#arguments.path#/#arguments.fileToConvert#" name="File" >
</cfhttp>
Below is the code I am trying to use for version 2. It writes a file to the correct folder, but it's not a readable PDF. I think it has something to do with base64, but not sure. Anyway, hoping there's another ColdFusion user out there to help me out. Then, we hopefully get code samples on the convertAPI site to help others.
<cfhttp method="post"
url="http://v2.convertapi.com/docx/to/pdf?Secret=mysecret"
result="convertAttempt"
path="#arguments.path#"
file="#arguments.fileToDestination#"
>
<cfhttpparam type="file" file="#arguments.path##arguments.fileToConvert#" name="File" >
</cfhttp>