首页 > 解决方案 > 使用 jwt 身份验证的蜂房

问题描述

我使用以下内容从 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()

我将如何在 Apiary 中进行设置?我见过的最接近使用身份验证的

标签: pythonapiary.ioapiary

解决方案


推荐阅读