Does anyone have example code of PHP handling webhook data and sending a response? I've poked around developers.marketo.com and not found exactly what I'm looking for.
The process is:
* Marketo flow action sends a lead's First Name to this [handler].
* [Handler] takes the value as a PHP variable and modifies is.
* [Handler] takes the modified value and spits it back out to Marketo
* Marketo changes lead's value to the new one from the [handler].
I'm sure someone has created the handler with credentials and taking a value and spitting it back out. It's a necessary building block for nearly any webhook processing. Could someone share that piece of the code? I'll buy you a drink/coffee at Marketo Summit!
What I have to do with the values is stupidly-simple. I basically just need to capitalize the first name upon lead creation or form submission. I am stuck on doing this through webhooks, though, as a choice.
(I know there are other solutions for this, such as SFDC or a separate app. It's such a minute problem that I'm not willing to pay for anything, and this is a perfect project to set up a simple "take a value from a webhook, edit the value, and send the value back to update a lead" webhook handler.)
Cheers,
Edward UnthankMarketing Operations Manager
Yesler