I am using ASP.NET and would like to use my own form, but still send the data into a Marketo form to create a new lead. I have got the field names and values that I would like to submit formatted in JSON as shown in the Marketo documentation for create/update a lead - http://developers.marketo.com/documentation/rest/createupdate-leads/
{
"action":"createOnly",
"input":[
{
"email":"kjashaedd-1@klooblept.com",
"firstName":"Kataldar-1",
"postalCode":"04828"
}
]
}
The form will only ever create one lead per form, I have created the form in Marketo and have the form id and everything that I think I need, I just don't know what I need to do in order to submit the values into the Marketo form.
Ideally I would like to use the SOAP or REST api to achieve my goal from the server side rather than using javascript.
I'm not against the server-side form post method and if anyone could help with the server side code needed with regards to that it would also be appreiciated