【问题标题】:Unauthorized to access @me/settings未经授权访问@me/settings
【发布时间】:2020-05-27 16:55:03
【问题描述】:

当我尝试通过GETPOSTPATCH 访问/api/users/@me/settings 时,我总是得到{"message": "401: Unauthorized", "code": 0}。当我访问 /api/users/@me 并将 Authorization 标头设置为 Bearer <my-acces-key> 时,我确实收到了 200 OK 响应以及我的数据。我有identifyrpc.api 范围。我必须设置其他范围吗?

【问题讨论】:

    标签: oauth-2.0 httprequest discord bearer-token


    【解决方案1】:

    我必须使用我自己的 Discord 令牌而不是应用程序密钥。查看如何获取它here

    确保不要分享您的 DISCORD 代币!

    【讨论】:

    • 顺便说一句,这可能是针对Terms of Service
    • 我认为作者谈论的是合法的 Oauth2-API,而不是 selfbots。
    【解决方案2】:

    如果您想获得 Oauth-2 令牌,您必须查看此处的官方文档:https://discordapp.com/developers/docs/topics/oauth2
    现在,您可能无法执行 RPC 请求,因为您必须这样做通过向 Discord 提交申请来申请 RPC 访问,他们必须批准。

    【讨论】:

      猜你喜欢
      • 2015-03-05
      • 1970-01-01
      • 1970-01-01
      • 2016-08-12
      • 2014-07-01
      • 2021-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多