A Twitter API wrapper for Lua.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with TheLinx:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
twitter
LICENSE
README.textile

README.textile

ltwitter

ltwitter is a Twitter API wrapper for Lua. It is managed by Linus Sjögren.
The code is licensed under the CC0 license. Basically, public domain.

Dependencies

Here’s a list of stuff ltwitter needs to run:

All these should be automatically installed if you install ltwitter with LuaRocks.
You don’t need JSON4Lua, any module called “json” that has a decode function should work.

Including ltwitter in your script

Example:

require("twitter")
myClient = twitter.client("OAuth consumer key", "OAuth consumer secret")
status = myClient:showStatus{id = 123}
print(status.text)

ltwitter stays very close to the original Twitter API. All arguments passed to a function will be passed on as GET/POST data in the request.
Therefore, to know what arguments you can use for what functions, use the official Twitter documentation.

A list of functions and their respective API resource is in init.lua (lines 20 → 120).