Tag: etsy

Etsy oauth认证c#RestSharp

我正在尝试在他们的文档中给出样本授权请求(或任何需要身份validation的Etsy的api)。 我得到的响应是“oauth_problem = token_rejected”。 我使用了这个SO答案以及benSharper链接到的OAuth基础 。 我看过这个 ,以及其他人。 其中一个使用https://sandbox.https://openapi.etsy.com/v2 ,当我尝试这个时,exception是“底层连接已关闭:无法建立SSL / TLS安全通道的信任关系。 “ 我部署到我的服务器(这是https),仍然是相同的响应。 似乎无法让它发挥作用。 我错过了什么? 这是我的代码: public class AuthorizedRequestHelper { string baseUrl = “https://openapi.etsy.com/v2”; string relativePath = “/oauth/scopes”; string oauth_consumer_key = “xxx”; string consumerSecret = “xxx”; string oauth_token = “xxx”; string oauth_token_secret = “xxx”; public void test() { var restClient = new RestClient(baseUrl); OAuthBase […]