◐ Shell
clean mode source ↗

GitHub - Miqueas/Github-REST-API-Examples: Basic example of the Github REST API in various languages

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:

Nim

Build the Nim example with:

And run:

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.