I have had a sudden change occur in the use of the API that we have been hitting for 12+ months.
We run a simple script to keep our lists in synch with CM, but 3 days ago it started failing with the error:
"Error: type xml is only supported for type post and put"
I am calling lists.list_details() and asking /lists/123456789.xml
The function documentation details using xml|json as valid options.
Has something changed, but the docs have not caught up?
What else could be causing this issue?
Can anyone help please with this? The documentation does state that a GET on xml is ok.
That error isn't one which is produced by our API. In addition to that, all of our client libraries use the json endpoints behind the scenes, so i know that the calling code is also not ours.
So i'd say the error is due to a change on your end. It's hard for me to know what that might be, it could be some other component used by your system which has changed behind the scenes without you knowing. Perhaps an upgrade or a patch.
Hopefully this will help you to know where to start looking.
Well you see this is whats weird, as far as I know nothing code wise has changed, and nothing on the server has changed.
Since I posted this originally, we moved servers from ColdFusion 8 to Rail / Tomcat and the error is the same.
I am in the process of assessing the rewrite to give us a switch between json and xml, so it looks like we may just go down that route anyway.
I am using the http://campaignmonitorapi.riaforge.org/ so will make mods and work with the author.
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