401使用clickatel sms api

时间:2017-03-02 18:04:09

标签: c# clickatell

我只是尝试使用clickatel API发送短信。

我使用了这里的帮助库:https://github.com/clickatell/clickatell-csharp

 var apiClient = new RestClient(new RESTCredentials(ApiKey));                  
                    var result = apiClient.Authenticate();
                    Debug.Write("_apiClient.Authenticate() = " + result.Result);

我得到以下内容:

"Error occured during Clickatell Authenticate. Details: The remote server returned an error: (401) Unauthorized."

我已经多次检查了api密钥,我甚至在他们的门户上重新生成了一个新的。

我错过了什么吗?

1 个答案:

答案 0 :(得分:-1)

我看到你正在使用为旧端点编写的旧Clickatell Csharp库。

您需要使用可在https://www.tensorflow.org/api_docs/python/tf/train/Optimizer

找到的新脚本

希望这可以解决问题。