Hi OpenEMM developers,
I've published a few weeks ago a simple Python client for OpenEMM webservices, using the Suds library, and with some small goodies:
- Properly handles the timeone offset when generating wsse elements
- Properly encodes the Map and MapItem elements, avoiding some issues with AddSubscriber attribute encoding
- Convenience method to encode a standard Python map as Map and MapItem elements
- Convenience local development with the maven setup, or using a local virtual machine
The project is published both for Mercurial (at Bitbucket) https://bitbucket.org/ronoaldo/openemm-python-client and Git (Github) https://github.com/ronoaldo/openemm-python-client.
Please, leave your comments bellow. Don't forget to fork the projects and submit pull request with improvements!
/happy hacking
--
Ronoaldo JLP
OpenEMM Python Client for WebServices 2.0
Moderator: moderator
Re: OpenEMM Python Client for WebServices 2.0
Wow.. awesome job, Ronaldo!!!!!!!
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: OpenEMM Python Client for WebServices 2.0
Hi Ronoaldo,
thanks for sharing your code with the OpenEMM community!
If you like, we can include a link to your code on this page in section "Downloads from Contributors":
http://www.openemm.org/downloads.html
thanks for sharing your code with the OpenEMM community!
If you like, we can include a link to your code on this page in section "Downloads from Contributors":
http://www.openemm.org/downloads.html
OpenEMM Maintainer
Re: OpenEMM Python Client for WebServices 2.0
Hi everyone,
bk007, thanks! Suggestions are welcome!
maschoff yes, it would be great to have the Github/Bitbucket links added to the downloads page. Thanks!
Kind regards,
bk007, thanks! Suggestions are welcome!
maschoff yes, it would be great to have the Github/Bitbucket links added to the downloads page. Thanks!
Kind regards,
-
- Posts: 26
- Joined: Fri Apr 11, 2014 3:56 pm
Re: OpenEMM Python Client for WebServices 2.0
I've just tested this client. It's really good. Thanks.
I'd like to know how to convert Map returned by web service to Python data structure for easy access.
For ex, after getting customerId, we use method GetSubscriber for more info about this subscriber.
Result is a SOAP map data structure. I want to manipulate it easily like customer.firstname, customer.lastname,...
I'd like to know how to convert Map returned by web service to Python data structure for easy access.
For ex, after getting customerId, we use method GetSubscriber for more info about this subscriber.
Result is a SOAP map data structure. I want to manipulate it easily like customer.firstname, customer.lastname,...