-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTransferServices API accessibility #1
Comments
I can look into it but, I am no longer at landcentral and I don't think they have a maintainer for this library yet. The goal of the library initially was to provide a decent ActiveRecord like API for querying and creating Entities. At the lowest level the library provides an XML builder for creating the SOAP requests and uses Savon to comunicate with the Eloqua SOAP API. I don't remember too clearly what the DataTransferServices implement but I would guess for your uses you could implement a new "api" that could build on top of the existing template builder and authentication layer provided by If you can provide me a few more details on what your trying to accomplish I might be able to help you further but I don't have much time to implement anything myself. |
Thanks James! (This is Michelle). I actually was trying to access the API just using What I'm trying to do simply is get a data extract of a predefined Your library though - especially for formatting the XML - seems like Thanks for any further help or hints on where I should look next!! -Michelle On Sun, Mar 18, 2012 at 3:14 PM, James Lal
Michelle M. Koeth |
Hi Michelle, Yeah this sounds fairly simple, most of the boilerplate is already implemented somewhere in the library. Savon is great but its support for Hash -> XML is too simple for use with eloqua. Look at eloqua/api/service class for examples on how to build a request. This will likely not work but I think it should look something like this: type = Eloqua::Api.remote_type('Sample Data Export', 'DataExport');
xml_body = Eloqua::Api.builder do |xml|
#macro expands out to AssetType tag (assets and entities share same inner signature Type,Name,Id
xml.template!(:object, :asset, type);
end
# savon is going to convert the call from under_scores to CamelCase
# The first argument is the wsdl type
result = Eloqua::Api.request(:data, :get_data_export_url, xml_body) I don't have access to eloqua anymore so you should look at the wsdl for the exact syntax required for the XML request. |
Thanks James! I'll have a chance to work further on this Tuesday - I'll let you know how Cheers
|
Dear Landcentral - It seems this is the ONLY ruby code available for accessing the Eloqua API - Thanks for providing it! Do you have plans to implement the DataTransferServices API soon? I'd be willing to develop out this part of it but I'm not sure how your library works. Please let me know if you'd have time for a collaboration to develop out the DataTransferServices API. Thanks!!
The text was updated successfully, but these errors were encountered: