[twitter-dev] Re: oAuth Token & JSON

2009-07-31 Thread JDG
alternatively, you could of course do something like this: var token = {}; var parts = theReturnString.split('&'); for (var part in parts) { var parm = part.split('='); token[parm[0]] = parm[1] || ""; } On Fri, Jul 31, 2009 at 17:54, JDG wrote: > That will never return JSON, per the OAu

[twitter-dev] Re: oAuth Token & JSON

2009-07-31 Thread JDG
That will never return JSON, per the OAuth spec. It will return a token in the HTTP Query String format. If you are using Dojo, you can use dojo.queryToObject to convert it to json. On Fri, Jul 31, 2009 at 14:59, Eric Garside wrote: > > Hey all, > > I'm working on a Javascript library for full A