so I am trying to post to an API using Coldfusion with an array of emails.
For a quick over view of the API schema,
{
"emails":["foo@bar.com", "bar@foo.com"],
"orgId":1,
"subject":"foobar",
"body":"foobar",
"sender":"foobar@com"
}
Now this is my coldfusion script
<cffunction name="inviteusers" access="public" returntype="any">
<cfset var data = "" />
<cfhttp url="urlserver#UserInvite" method="post" username="#username#" password="#urlpass#" result="data">
<cfhttpparam name="emails" this is array or emails>
<cfhttpparam name="orgID" type="formType" value="1">
<cfhttpparam name="body" type="formType" value="this is the body">
<cfhttpparam name="sender" type="formType" value="hmm@yahoo.com">
</cfhttp>
</cffunction>
The emails is where I am stuck at.. I'm not sure how to approach this problem..
Thank you guys!