首页 > 解决方案 > 如何使用 POST GET 传递 access_token

问题描述

我有一个密钥(访问令牌),我需要将其传递给服务器进行身份验证。不确定如何在 python3 中正确执行此操作。有人可以帮忙吗?这是我的代码:

mytoken='abcdefg123456'

headers='{ not sure what to put here!}

auth = requests.post(url='https://api.bitoasis.net/v1/access_token', headers=headers)

我需要两件事的帮助......在标题中放入什么,我需要在 url 之后包含 data=mytoken 吗?

标签: pythonpython-3.xauthenticationoauth-2.0

解决方案


推荐阅读