OpenEMM Python Client for WebServices 2.0

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

OpenEMM Python Client for WebServices 2.0

Postby ronoaldo » Sun Feb 09, 2014 2:32 am

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
ronoaldo
 
Posts: 3
Joined: Thu Apr 18, 2013 3:49 pm
Location: São Paulo, Brasil

Re: OpenEMM Python Client for WebServices 2.0

Postby bk007 » Sun Feb 09, 2014 5:24 pm

Wow.. awesome job, Ronaldo!!!!!!!
bk007
 
Posts: 19
Joined: Sat May 18, 2013 3:29 am

Re: OpenEMM Python Client for WebServices 2.0

Postby maschoff » Sun Feb 09, 2014 6:52 pm

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
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2131
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: OpenEMM Python Client for WebServices 2.0

Postby ronoaldo » Sun Feb 09, 2014 7:00 pm

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,
ronoaldo
 
Posts: 3
Joined: Thu Apr 18, 2013 3:49 pm
Location: São Paulo, Brasil

Re: OpenEMM Python Client for WebServices 2.0

Postby maschoff » Sun Feb 09, 2014 7:09 pm

Done!
OpenEMM Maintainer
maschoff
Site Admin
 
Posts: 2131
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany

Re: OpenEMM Python Client for WebServices 2.0

Postby bhcuong2008 » Thu May 15, 2014 8:24 am

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,...
bhcuong2008
 
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron