Wednesday, September 01, 2010

Twitter via weechat + tircd

I've been accessing twitter through the weechat irc client using tircd. That worked pretty well until twitter switch to OAuth authentication for all twitter API clients.

Helpful hints:

  1. http://code.google.com/p/tircd/ has directions for oauth, but leaves out the fact that a (fake) password is still required, even after setting the username to "oauth". http://code.google.com/p/tircd/issues/detail?id=80&q=oauth
  2. The download version of tircd (0.10, although when run it thinks it's 0.08) doesn't seem to work with oauth. See http://code.google.com/p/tircd/issues/detail?id=84&q=oauth, and then download a forked version from http://github.com/drags/tircd.
  3. weechat expects "/stats" to be run in a window connected to the server. For twitter there wasn't yet one, because the oauth handshake still needed a PIN to be sent. As the tircd homepage suggested, I used "/quote -server twitter stats pin MYPIN", where my weechat config uses "twitter" as the internal server name for tircd configuration.
  4. The twitter oauth PIN seems to have been cached somewhere. I've no idea where, so I'm sure this will bite me eventually.

3 comments:

  1. Thanks for this post, it was exactly the information I needed to get tircd working correctly.

    ReplyDelete
  2. Hey Grant, is this still working for you? I'm trying to get weechat and tircd working and it keeps dying with this: GET https://twitter.com/oauth/request_token failed: 400 Bad Request at /usr/share/perl5/vendor_perl/Net/Twitter/Lite.pm line 212.

    ReplyDelete
  3. It's still working for me. *Shrug*

    ReplyDelete

Contributors

Label Cloud