Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Requests to GitHub API with Tentacat

requests-to-github-api-with-tentacat.livemd

Requests to GitHub API with Tentacat

Mix.install([
  {:tentacat, "~> 2.2"}
])

Setup

The access_token will be use to authenticate in the GitHub API,
It can be generated here: https://github.com/settings/tokens

access_token = "your_personal_access_token"
client = Tentacat.Client.new(%{access_token: access_token})

Usage

Tentacat.get("rate_limit", client, %{})
Tentacat.Repositories.repo_get(client, "edgurgel", "tentacat")