且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OAuth1.0 身份验证显示“无效签名 - 提供的签名不匹配."错误 401

更新时间:2023-11-30 11:15:34

哦,大约一个月后,我终于找到了解决方案.对于 GravityForm API 的身份验证,OAUTH 1.0 并不像您预期​​的那样稳定.相反,您***使用BASIC AUTHENTICATION".像这样:

Oh, after about a month, I finally reached a solution. For authentication of GravityForm APIs, OAUTH 1.0 is not as stable as you may expect. Instead, you'd better use "BASIC AUTHENTICATION" like this:

USERNAME = consumerKey
Password = consumerSecret

然后您可以使用以下解决方案:RestSharp HttpBasicAuthentication - 示例

Then you can use following solution: RestSharp HttpBasicAuthentication - example