to return JSON to me. Is this something doable? (Ideally through a
jsonp implementation)
JDG
unread,
Jul 31, 2009, 7:54:01 PM7/31/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to twitter-deve...@googlegroups.com
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.
-- Internets. Serious business.
JDG
unread,
Jul 31, 2009, 8:00:26 PM7/31/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to twitter-deve...@googlegroups.com
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] || "";