Authentication
Creating a personal access token
Obtaining machine user access tokens
Sending authenticated requests
curl -H 'Authorization: YOUR_ACCESS_TOKEN' <https://api.uprightproject/v1/metrics/legend>import requests
url = ‘<https://api.uprightproject.com/v1/metrics/legend’>
headers = {‘Authorization’, ‘Bearer {token}’.format(token=YOUR_ACCESS_TOKEN)}
res = requests.post(url, data=data, headers=headers)
print(json.loads(res.text))import fetch from ‘node-fetch’;
async function run_script() {
const url = `/metrics/legend`;
const options = { headers: {‘Authorization’, `Bearer YOUR_ACCESS_TOKEN`} };
const response = await fetch(url, options); console.log(response.json());
}
await run_script();Last updated
Was this helpful?