Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 OAuth 2.0 将 Power Automate(工作流服务)与 SmartSheet 集成
我已成功获得身份验证代码,当我最终尝试获取令牌时,它会抛出消息 - “您无权执行此操作。” 错误代码 1004
我在 Postman 中尝试了相同的结果。
我认为问题在于您通过 Request Header指定了所有 5 个值。仅Content-Type通过 Header 指定——其他四个参数(client_id、client_secret、code和grant_type)应通过查询字符串指定。您收到未授权错误,因为 Smartsheet 正在client_id查询字符串中查找 etc. 的值,但没有在那里找到它。
Content-Type
client_id
client_secret
code
grant_type
例如,下面是 Postman 的屏幕截图,显示Content-Type通过 Headers 进行设置,通过 Params 显示其他四个参数: