ForumsDevelopersGet XML
Get XML
Author | Message |
---|---|
rodrigomjuarez |
Hi
How can I get an xml result when I trying to get a token I'm using visual studio 2010 with csharp The following code returns a JSON result var requestUrl = "http://api.toodledo.com/2/account/token.php?userid={0};appid={1};vers=0;device=testing;sig={2}"; requestUrl = string.Format(requestUrl, Userid, Appid, ExpectedMd5); var req = (HttpWebRequest)WebRequest.Create(requestUrl); req.Method = "GET"; req.ContentType = "text/xml; encoding='utf-8'"; Thanks in advance |
Jake Toodledo Founder |
You can pass f=xml to any API call to get XML instead of JSON. I'll make sure this is more clear in the docs.
http://api.toodledo.com/2/account/token.php?f=xml;userid={0};appid={1};vers=0;device=testing;sig={2} |
You cannot reply yet
U Back to topic home
R Post a reply
To participate in these forums, you must be signed in.