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 <ghil...@gmail.com> wrote: > 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 <gars...@gmail.com> wrote: > >> >> Hey all, >> >> I'm working on a Javascript library for full API access with Twitter, >> and a current hickup in the system is fetching the oAuth token from >> Javascript. >> >> I'm new to the twitter API, so I'm not sure if I'm missing something, >> but I can't seem to get my API call to: >> >> http://twitter.com/oauth/request_token >> >> to return JSON to me. Is this something doable? (Ideally through a >> jsonp implementation) >> > > > > -- > Internets. Serious business. > -- Internets. Serious business.