Twitter API Widget

Details

Description

This is just a first stab to extending the same methods as Flickr and YouTube widgets into Twitter...
It works for read only right now (search by Tweet text or User tweets)

For Tweeting/status updates, there is a slight problem with the authentication in the OAuth signing directly from Javascript via the OAuth JS library, so, this may be one case of a widget which does require a server-side OAuth proxy to relay access tokens securely (although, I have seen Yahoo! YQL used to authenticate remotely to Twitter, so it may still be possible)

Scott Wilson
added a comment - 06/May/10 08:32 Yes, in general there needs to be a mechanism for Wookie acting as an oAuth proxy - if nothing else you don't want to distribute widgets with their token and secret in plain view.

Scott Wilson
added a comment - 06/May/10 19:15 One solution is for Wookie to manage consumer keys and secrets for widgets (i.e. each Wookie server needs to register each widget it serves) and then have these accessed by oAuth middleware.
I've got bits of a working solution using SignPost, but didn't really want to check it into the core yet.

Ross Gardler
added a comment - 11/Jun/10 09:13 Thanks for the patch.
If this is intended for inclusion in Wookie (and I do hope it is) there needs to be some changes in the code:
all files must contain the appropriate license headers
we need an icon that we are sure we can use (I've not looked at the license for the twitter logo currently used)
do we really need jQuery in this widget? A version is provided by default by Wookie itself.
cssbuttons.css is not license compatible (it's GPL)
I've not actually tried using this yet, but do have a need for a twitter widget and am happy to help maintain this.

This code is (c) and we cannot include it without permission from the author. Looking at the site I'd say that the author is happy for it to be reused but permission is not explicitly granted, hence we will need to contact them. Of course, it may be easier to rewrite that bit of code as it is not exactly rocket science.

Ross Gardler
added a comment - 15/Jun/10 21:49 In addition to the issues in the previous comment a code review shows:
/**
gup
Get URL Parameters
Credit:
http://www.netlobo.com/url_query_string_javascript.html
*/
This code is (c) and we cannot include it without permission from the author. Looking at the site I'd say that the author is happy for it to be reused but permission is not explicitly granted, hence we will need to contact them. Of course, it may be easier to rewrite that bit of code as it is not exactly rocket science.