我正在使用RestSharp连接到远程服务器上IIS中托管的Alloy 7实例,并收到以下错误:
错误:unsupported_grant_type
文档:http://support.alloy-software.com/download/docs/AN7.0.3/AN_API_UserGuide.pdf
这是我的代码:
var client = new RestClient("http://SERVER01");
var request = new RestRequest("api/token", Method.POST);
request.UseDefaultCredentials = true;
IRestResponse response = client.Execute(request);