你好你好吗?我正在尝试使用 FaxOut API:
http://service.ringcentral.com/faxoutapi/
这就是关于 api 的全部文档。基本上我需要发送一个带有一些数据的 HTTP POST。
这是我的代码,但我无法让它工作,请告诉我是否有我没有看到的东西。
string URLAuth = "https://service.ringcentral.com/faxapi.asp";
WebClient webClient = new WebClient();
var formData = new NameValueCollection();
formData["Username"] = "2487955151";
formData["Password"] = "mypassword";
formData["Recipient"] = "12485974888";
formData["Coverpagetext"] = "Some random text";
formData["Resolution"] = "High";
byte[] responseBytes = webClient.UploadValues(URLAuth, "POST", formData);
string resultAuthTicket = Encoding.UTF8.GetString(responseBytes);
webClient.Dispose();
return resultAuthTicket;
非常感谢!