Skip to content

TheLinx/ltwitter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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).

About

A Twitter API wrapper for Lua.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages