Marketo Munchkin API Call | Community
Skip to main content
April 1, 2014
Solved

Marketo Munchkin API Call

  • April 1, 2014
  • 4 replies
  • 1687 views
I used this link: http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/ and an associateLead submit through the method they have their and tried it several times. I'm not sure where the problem lies? anybody use this currently and if so, Any tips or should I just go back to doing a post page through jQuery Ajax - and post to my lead/capture url?

I like this munchkin method because it's all javascript based. but it doesn't seem to be working.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
Thanks. I was able to get it to work. I was using API fields and not SOAP API fields from my export. :)

4 replies

April 1, 2014
It took me a whie to make Munchkin API associateLead call work. The toughest part is even if it fails you get back HTTP code 200 OK so it doesn't help debugging.

Here are some things I found out:

* You must create the email hash on the server-side. This is the ruby code I use
email_hash = Digest::SHA1.hexdigest(marketo_config[:private_key] + traits[:email])

* You must have the unhashed email in the properties you send through otherwise it doesn't work
* The email hash is made with the private key in Marketo. This private key you have to create yourself and set in Admin > Integration > Munchkin > API Configuration (box). You also have to enable the API there.
* Make sure your properties are camelCased. such as Email: 

Hope that helps


Accepted solution
April 1, 2014
Thanks. I was able to get it to work. I was using API fields and not SOAP API fields from my export. :)
June 11, 2014
Ecavazos,

I'm not a developer and have been trying to get my external form to submit to MKTO, while maintaining the lead's cookie to still be connected to that data. Since you've clearly gotten yours to work, can I contract you to show me how?

Thanks,

Amanda
aovenden@recombo.com
December 9, 2014
Ah, great! My error was due to not including the unhashed email address. Thanks alot!