I didn't want to deal with trying to get oauth/xauth working inside CC (ugh), so I'm using the Twitter search API to pull in all public mentions of my @username; it doesn't log you in to your account on twitter, so you can't post, etc.
Now because Twitter uses JSON, I added a JSON library to my ComputerCraft ROM; it's the big file I named 'json' here. Keep it called json and place it in <serverdir>/mods/ComputerCraft/lua/rom/apis/ (you could also modify it to load the json library from your local CraftOS drive, I'll leave that as an exercise to the reader).
All you have to do is swap out my @username for yours (or any search term) and you should be good to go! Hope you like it
Code:
https://gist.github.com/3314193
README:
Skip steps 1 and 3 if you grab 'json' from the github gist I've attached here; it's already modified for 3.
Quote
-- 0: Make sure to enable HTTP as per http://computercraft...title=HTTP_(API)
-- 1: Grab file from https://github.com/luaforge/json
-- 2: Place in <serverdir>/mods/ComputerCraft/lua/rom/apis/ as 'json'
-- 3: Take out the requires at the top, and the module line
-- 4: Reboot your ComputerCraft computer
-- 1: Grab file from https://github.com/luaforge/json
-- 2: Place in <serverdir>/mods/ComputerCraft/lua/rom/apis/ as 'json'
-- 3: Take out the requires at the top, and the module line
-- 4: Reboot your ComputerCraft computer











