Webhook JSON Post Error

Webhook JSON Post Error

I'm attempting to create a webhook that sends an HTTP request to create a contact using Freshdesk's API (http://developer.freshdesk.com/api/#contacts), which is pretty straightforward.

I've been able to create new contacts on Freshdesk with a Ruby script, but I cannot get it to work with the webhook on Zoho. Below  are the three issues I'm hoping that I'm politely requesting that someone please walk me through simply, without pointing me to yet another Zoho reference page that doesn't answer my question or re-states the issues. This is  most frustrating and is truly our last attempt with Zoho. There is not one example that details how to implement a solution like this on the entire site.

1) Header: How does one Set Content-Type in message header to "application/json"?

2) Authentication: FreshDesk uses Basic Access Authorization.
(https://freshdesk.com/api#authentication). Using basic auth for authentication (it appears Zoho only lets you add param=value pairs)

3) Message Body in JSON Format - The message body of the post request has to be sent in JSON format. In addition, the nested JSON is required. Specifically, the parameters have to be sent in JSON rather than in simple key = value pairs.
  • Sending params as json in the message body and nesting json for the custom_fields required by freshdesk
Bottom line, there's no way I can figure any of this out without talking to someone in support for  Zoho. I don't think email exchange will get us anywhere.

If there was a way I could insert a script via custom function to send the post request with code, that would make this whole thing easier, but Zoho uses deluge scripts, which I'm not sure even support http post requests----and do not have time, nor interest in learning politely.

I'm happy to speak with a Zoho Rep on the phone if it will help expedite things.