Authentication

Get started

Oppna uses API keys to allow access to the API. You can register a new Oppna API token at our developer mailenvelope.

Oppna expects for the Basic Auth mechanism and API token to be included in all API requests to the server in a header that looks like the following:

Token: API_TOKEN Authorization: Basic <CREDENTIALS>

To authorize, use this code:

Code Implementation

Ruby

require 'Athletics'

api = Athletics::APIClient.authorize!('API_TOKEN')

Python

API_TOKEN = "API_TOKEN"

header = {
  "Accept": "*/*",
  "Content-Type": "application/json",
  "Authorization": "Basic <CREDENTIALS>"
  "Token": API_TOKEN
}

Curl

JS

Golang

circle-exclamation

Last updated