Aristotle Token Question

The authorisation doesn’t appear to be being honoured from there, but was shown as an indication of what you’ll need to include in your header in your requests.

When using the api from a programming language you’ll want to use something like the below for python which should return a dictionary with the first 50 datasets in your repository you can see:

import requests

page_size = 50

url = "http://{your_site_here}/api/v4/metadata"
token = "your_token"

headers=dict(Authorization='{}'.format(token))

res = requests.get(url, headers=headers, params=dict(page=1, page_size=page_size))

print(res)

Not sure which specific language you’re trying, but the browser seems to just require you to log in normally to be able to use the API via browsers.

1 Like