Skip to content

Miqueas/Github-REST-API-Examples

Repository files navigation

License

What is this?

A set of basic examples of what you can do with Github's REST API written in different programming languages.

Running/Building

Lua

The Lua example needs some libraries:

# For easy HTTP requests to the API
luarocks install lua-requests
# Fast JSON encoding/decoding
luarocks install rapidjson
# Commandline options and arguments parsing
luarocks install argparse

After you have all these libraries, then run the example:

lua Github.lua

Nim

Build the Nim example with:

nim c -d:ssl Github.nim

And run:

./Github ...

NOTE: On Windows (and probably macOS too) you'll need to download a SSL/TLS Certificate and put it into the folder where you compiled the example. This is due to a Nim bug and that's the temporary fix.

Contributors