lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I used it in my project [1] and it seems to work fine. The only detail is that the multipart.Request method errors if you pass
it a non-string or table value (see helpers.lua, line 83). It should do a tostring() on the value if it's not a string or table.

/usr/bin/lua: ...r/lib64/lua/luarocks/share/lua/5.1/OAuth/helpers.lua:94: attempt to call global 'error' (a nil value)
stack traceback:
    ...r/lib64/lua/luarocks/share/lua/5.1/OAuth/helpers.lua:94: in function 'encode'
    ...r/lib64/lua/luarocks/share/lua/5.1/OAuth/helpers.lua:108: in function 'Request'


[1] https://github.com/darkstalker/LuaTwit/commit/45af847ed0a49e178d4e909d4d6c453d32f30523


On Wed, Sep 25, 2013 at 12:45 PM, Ignacio Burgueño <iburgueno@gmail.com> wrote:
Hi.

Hot on the heels of the last release, I'd like to announce version 0.0.5 of LuaOAuth

https://github.com/ignacio/LuaOAuth

LuaOAuth is a client library for OAuth 1.0 enabled servers. It is compatible with Lua 5.1 and LuaNode.
This release adds support for requests with "multipart/form-data" encoding. So, for instance, you can use this version to post pictures of cats to Twitter.

Once the new version hits the LuaRocks repository, you can install it doing:

luarocks install oauth

In the meantime, you can do:

luarocks install https://raw.github.com/ignacio/LuaOAuth/master/rockspec/oauth-0.0.5-1.rockspec

Regards,
Ignacio