Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miqueas/github-rest-api-examples
Basic example of the Github REST API in various languages
https://github.com/miqueas/github-rest-api-examples
c-sharp csharp github go golang lua mono nim nim-lang nuget python python-3 python3 rest rest-api ruby vala
Last synced: 22 days ago
JSON representation
Basic example of the Github REST API in various languages
- Host: GitHub
- URL: https://github.com/miqueas/github-rest-api-examples
- Owner: Miqueas
- License: zlib
- Created: 2021-02-11T20:34:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T00:17:28.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T18:23:42.653Z (7 months ago)
- Topics: c-sharp, csharp, github, go, golang, lua, mono, nim, nim-lang, nuget, python, python-3, python3, rest, rest-api, ruby, vala
- Language: Vala
- Homepage:
- Size: 48.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License][LicenseBadge]][LicenseURL]
## 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:
```bash
# For easy GET requests to the API
luarocks install lua-requests
# Fast JSON encoding/decoding
luarocks install rapidjson
# Commandline options, flags and arguments parsing
luarocks install argparse
```After you have all these libraries, then run the example:
```bash
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](https://curl.se/ca/cacert.pem) and put it into the folder where you compiled the example. This is due to a [Nim bug](https://github.com/nim-lang/Nim/issues/782) and that's the temporary fix.
[LicenseBadge]: https://img.shields.io/badge/License-Zlib-brightgreen?style=for-the-badge
[LicenseURL]: https://opensource.org/licenses/Zlib