Envoi de toot via Lua

Envoi de toot via Lua.

Distribution : Ubuntu 17.04

1/ Installation des librairies de développement.

➜  ~ sudo apt-get install liblua5.1-0-dev luarocks

2/ Installation de module Lua.

➜  ~ sudo luarocks install luafilesystem
➜  ~ sudo luarocks install lua-requests
➜  ~ sudo luarocks install split
➜  ~ sudo luarocks install luasocket
➜  ~ sudo luarocks install luasec
➜  ~ sudo luarocks install date
➜  ~ sudo luarocks install mimetypes

3/ Installation de ‘lua-mastodon‘.

➜  ~ sudo luarocks install lua-mastodon

Lien :
https://github.com/hishamhm/lua-mastodon

4/ Répertoire de travail.

➜  ~ mkdir LUA
➜  ~ cd LUA
➜  LUA

5/ Téléchargement de l’exemple.

➜  LUA git clone https://github.com/hishamhm/lua-mastodon.git
➜  LUA cd lua-mastodon
➜  lua-mastodon git:(master)

6/ Modifier l’exemple avec les bonnes accréditations.

7/ Lancement de l’exemple.

➜  lua-mastodon git:(master) ✗ lua example.lua
No client credentials locally stored yet.
Will try to register app in server...
Successfully registered app - got ID b673e1a82e24ea4f3516814cc389dd864ab47117e2ba55471e5bae9d108b3324
Logging in...
Logged in! :)
Tooting!...
➜  lua-mastodon git:(master) ✗

Comments are closed, but trackbacks and pingbacks are open.