首页 文章

Box.com获得刷新令牌

提问于
浏览
0

我正在尝试编写一个桌面应用程序(.Net)来访问并上传到Box.com . 我使用以下设置创建了一个应用程序:client_id:3qc5 ******************** client_secret:zbKSV7 **************** * redirect_uri:http://127.0.0.1身份验证类型:标准身份验证(3脚OAuth2.0)范围:读写....类别:平台:Windows,Web,桌面Api密钥:3qc5m46 *********** **************重定向网址:"left blank"

然后使用:https://api.box.com/oauth2/authorize?response_type=code&client_id=3qc5m46 ****************** = authenticated获取代码:AZmq ****************

在Postman我有以下内容:Url:https://www.box.com/api/oauth2/token并添加了参数:grant_type:authorization_code client_id:************************ client_secret:**** **********************代码:AZmq ****************

但是我得到400个错误请求:{“error”:“invalid_client”,“error_description”:“客户端凭据无效”}

我究竟做错了什么?谢谢

1 回答

  • 0

    好吧,我发现我需要将redirect_uri添加到post参数中并且它有效

相关问题