I need to send cUrl POST "--data-urlencode" parameter to https and i'm using hbcurl lib. I have all others figured out and working. My only doubt is with --data-urlencode
Here is the curl command I need to emulate. Please notice the --data-urlencode parameters which I have highlighted for easier reading and is the only part that's not working for me using hbcurl lib:
curl -X POST
https://api.helloworks.com/v3/workflow_instances \
-H "Authorization: Bearer $JWT" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "workflow_id=abcdefg" \
-
-data-urlencode "white_label_id=zyxwvut" \
--data-urlencode "language=fr-CA" \
--data-urlencode "notify_when_complete=true" \
--data-urlencode "notify=1029384756" \
--data-urlencode "document_delivery=true" \
--data-urlencode "document_delivery_type=link" \
--data-urlencode "delegated_authentication=true" \
--data-urlencode "participants[signer][type]=email" \
--data-urlencode "participants[signer][value]=
te...@example.com" \
--data-urlencode "participants[signer][full_name]=John Doe" \
--data-urlencode "callback_url=
https://www.example.com/callback" \
--data-urlencode "redirect_url=
https://www.example.com/success_page" \
--data-urlencode "merge_fields[requester_address]=123 Main St. San Francisco, CA 94101" \
--data-urlencode "merge_fields[effective_date]=January 1st, 2018" \
--data-urlencode "metadata[tracking_id]=
4803294032" \
--data-urlencode "metadata[account_id]=1234"