Calling Webhooks in Marketo
Hello:
I am trying to use a webhook to call a REST API.
I am having a hard time getting my webhook to work.
I have to pass in a combination of parameters that came from the form and some parameters that I have to pass in that are not in marketo.
Possibly making a mistake in 3 places :
1. Payload template : Is there an example of a payload that I can look at so that I can format it correctly?
Tried this and am not sure it works
{ "PRODUCT": {{myproduct}} ,
"COUNTRY": {{lead.Company Name}},
"COMPANY_NAME": {{lead.Country Name}},
"EMAIL": {{lead.Email Address}}
}
2. Request Token Encoding :
I dont know what this should be
When I use a REST Client I set it to
application/x-/www.-form-urlencoded
3 Getting the response in XML
I am trying to map it to marketo fields I created : which I think will work
Any help on 1 & 2 will be appreciated.
thanks!
Anand