I use the following to fetch a token from an API:
# fetch the token
res = requests.post(url, data={"email": email, "password": password})
token_json = res.json()
# now can use the api
res = requests.post(authenticated_url, headers={
"Authorization": "Bearer %s" % token_json['access']
}
data = res.json()
How would I set this up in Apiary? The closest I have seen to using authentication is this: