SOAP API with Ruby on Rails

Anonymous
Not applicable

SOAP API with Ruby on Rails

Hi there, 

Does anyone have any experience integrating Marketo's SOAP API into a Ruby environment? 

I am trying to do a requestCampaign API call triggered from our Ruby app. 

I found this article which gives an XML example -- if anyone has a Ruby example they could share that would be awesome!

http://community.marketo.com/MarketoArticle?id=kA050000000L3NQCA0

Thanks, 

Justin
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: SOAP API with Ruby on Rails

This one is outdated, but may just work for you - https://rubygems.org/gems/marketo
Anonymous
Not applicable

Re: SOAP API with Ruby on Rails

Thanks a lot Raj -- this could be useful. Looks like it is mainly to fetch and synch leads though. Not sure if it will help me with the requestCampaign call but I am also not a dev so may be missing something. 

Anonymous
Not applicable

Re: SOAP API with Ruby on Rails

Justin! Hey, I actually wrote a revised version of the above gem and could provide some methods to handle calls to requestCampaign! Would this be something you might be interested in?
Anonymous
Not applicable

Re: SOAP API with Ruby on Rails

Also, I don't know if you're interested in writing some ruby yourself, but if so I would most definitely suggest checking out Savon (http://savonrb.com/) to handle the soap requests!

Basically what you would do is just check out how the XML request for requestCampaign should be structured and then talk to Savon in way that it knows how to structure the request in the proper way for you!