我无法使用 API 断开我的 xero 应用程序

问题描述

这是我的代码 //var token1 = await _tokenStore.GetAccesstokenAsync(Id);

                //accesstoken1 = token1.RefreshToken;
                //var restClient1 = new RestClient("https://identity.xero.com/connect/revocation");
                //var request1 = new RestRequest(Method.POST);
                //string encoded = base64encode(Configuration["Xero:ClientId"] + ":" + Configuration["Xero:ClientSecret"]);
                //request1.AddHeader("Authorization",string.Format("Basic {0}",encoded));
                //request1.AddHeader("Content-Type","application/x-www-form-urlencoded");
                //request1.AddParameter("application/json",accesstoken1,ParameterType.RequestBody);
                //var response1 = restClient1.Execute(request1);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)