So i took the very basic python library and made it better.
here's the link
putting it up on google code now.
Hi entone, that's great. Let us know when it's up.
ok, here it is.
let me know what you guys think.
ok, I updated the Soap library to handle lists of objects in the arguments, this allows you to call the Campaign.Create service.
Should handle all the methods now for all the classes.
That looks great - I've checked it out and run a few tests with it. Great use of the __getattr__() method to dynamically call the API methods...
Would you consider putting it up on GitHub so as to allow better collaboration and allow others to fork the code for themselves? Your version is certainly a lot more powerful than the originally contributed version of the Python wrapper we currently have listed (http://code.google.com/p/campaign-monitor-api-python/).
Let us know either way and we'll add it to our list of wrappers on our API Kits page.
I was also thinking that it might be nice to name it cm-python-wrapper (just so it's clear that it's a Python version).
Hey James, I'm don't have any experience with Git. I would not mind if you put it up there as long as the appropriate credits are given. I may have a chance today to play around with Git, but just respond here if you get a chance to put it up before I do.
Glad to hear you like it. It took several versions to get it to the point it's at now. I'm pretty happy with it as well and think it will work great with my new Django project.
One quick question, is there anyway to create List segments with the api?
I've added the cm-py repository to the campaignmonitor GitHub account and committed your original code there: http://github.com/campaignmonitor/cm-py
Contact CM support (asking to forward on to me) with your GitHub account details and I'll add you as a collaborator.
I've also linked to it from our API Kits page: http://www.campaignmonitor.com/api/kits/#python-sample
In answer to your question, unfortunately it's not currently possible to create segments via the API.
We've added your vote for that feature, but can't say if or when we'll implement it as there are so many feature requests to prioritise.
James, I actually don't really plan on using segments, I just noticed the Campaign.Create requires it, and wanted to make sure I wasn't missing anything.
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that drive real business results.Get started for free