lanyhub is a Lua wrapper for the Anyhub API.
If you’re using Arch Linux, you can install the lua-anyhub package from the AUR.
Put the folder anyhub somewhere in your Lua module path.
On Linux/Mac this is usually something like /usr/local/share/lua/5.1/.
On Windows it’s C:\Program Files\Lua\5.1\.
require("anyhub")
result = anyhub.upload("/path/to/file", {username = "awesome_dude", password = "safe_password"})
print(result.url)
For a more overall example, check out examples/wizard.lua
Creative Commons CC0 License: http://creativecommons.org/publicdomain/zero/1.0/
The person who associated a work with this document has dedicated the work
to the Commons by waiving all of his or her rights to the work worldwide
under copyright law and all related or neighboring legal rights he or she
had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work,
you should not imply endorsement by the author.