给你一些上下文我正在构建一个僵尸网络,我需要从这里获取授权标头是链接 https://discordapp.com/api/v6/users/@me
我已经试过了
user = requests.get( "https://discordapp.com/api/v6/users/@me", headers = {"Content-Type": "application/json", "Authorization": token}, ).json()
给你一些上下文我正在构建一个僵尸网络,我需要从这里获取授权标头是链接 https://discordapp.com/api/v6/users/@me
我已经试过了
user = requests.get( "https://discordapp.com/api/v6/users/@me", headers = {"Content-Type": "application/json", "Authorization": token}, ).json()
尝试使用以下方式。
response = requests.get("https://discordapp.com/api/v6/users/@me")
response.headers
您可以在以下链接中找到更多详细信息。