本文目錄一覽:
- 1、怎麼導入阿里雲簡訊介面的aliyun-java-sdk-dysmsapi.jar
- 2、使用Java開發簡訊平台,如何入門
- 3、阿里雲簡訊 javasdk 需要下哪些
- 4、阿里雲簡訊平台javaapi怎麼使用
- 5、阿里雲調用 API 服務後返回什麼結果
怎麼導入阿里雲簡訊介面的aliyun-java-sdk-dysmsapi.jar
使用阿里的sdk要注意一下JDK的版本是否支持。
發送驗證碼信息並不一定只有阿里去簡訊可以發送。如果您發送的內容中有簽名不是固定一個,也不是你們公司的字型大小名,或商標名,阿里就不允許您使用;而且阿里對內容的要求比較嚴格價格也沒有優勢。
現在大公司的平台系統都集成了簡訊驗證碼、簡訊預警和異常報錯簡訊通知模板,您的這種作法是完全可性的,有關作簡訊預警的簡訊平台,除了您所說的阿里外您也可以考慮一下其他專註作簡訊的公司。
希望我的回答能幫到您。
使用Java開發簡訊平台,如何入門
你好,開發一個項目,不論是簡訊平台還是CRM等系統,和編程語言無關,你要先對這個項目作一個調研出一份可行性分析報告如果可作,你下一步就是進行系統的設計,其實才會進入寫代碼的階段。
巴卜簡訊提醒你,現在已經不再是單打獨鬥的年代了,這麼大的一個工程,是需要團隊合作的,要有前端,有設計師,有後台等人員。
阿里雲簡訊 javasdk 需要下哪些
可以,阿里雲用得比較多是win2008 r2或者centos
前者是window微軟的伺服器版本操作系統,安裝好jdk jre,配置java環境變數和在普通系統配置是一樣。
centos上面,你可以現在apachejdk,然後再用ftp工具傳上去,再進行安裝,後綴是rpm,安裝完成後應該就可以跑java了,當然也可以去配置環境變數(這是為了防止重啟後java環境變數失效)。第二種方法,可以通過yum命令到centos伺服器上再進行安裝,看你選擇哪種
阿里雲簡訊平台javaapi怎麼使用
為了使用簡訊發送API-JAVA SDK,您必須申請阿里雲的訪問密鑰。
阿里雲訪問秘鑰是阿里云為用戶使用 API(非控制台)來訪問其雲資源設計的「安全口令」。您可以用它來簽名 API 請求內容以通過服務端的安全驗證。
該訪問秘鑰成對(AccessKeyId 與 AccessKeySecret)生成和使用。每個阿里雲用戶可以創建多對訪問秘鑰,且可隨時啟用(Active)、禁用(Inactive)或者刪除已經生成的訪問秘鑰對。
您可以通過阿里雲控制台的 秘鑰管理頁面 創建、管理所有的訪問秘鑰對,且保證它處於「啟用」狀態。由於訪問秘鑰是阿里雲對 API 請求進行安全驗證的關鍵因子,請妥善保管你的訪問秘鑰。如果某些秘鑰對出現泄漏風險,建議及時刪除該秘鑰對並生成新的替代秘鑰對。
阿里雲調用 API 服務後返回什麼結果
返回結果
調用 API 服務後返回數據採用統一格式,返回的 HTTP 狀態碼為 2xx,代表調用成功;返回 4xx 或 5xx 的 HTTP 狀態碼代表調用失敗。調用成功返回的數據格式主要有 XML 和 JSON 兩種,外部系統可以在請求時傳入參數來制定返回的數據格式,默認為 XML 格式。本文檔中的返回示例為了便於用戶查看,做了格式化處理,實際返回結果是沒有進行換行、縮進等處理的。
成功結果:
錯誤結果
調用介面出錯後,將不會返回結果數據。調用方可根據每個介面對應的錯誤碼以及下述 2.3.3 的公共錯誤碼來定位錯誤原因。當調用出錯時,HTTP 請求返回一個 4xx 或 5xx 的 HTTP 狀態碼。返回的消息體中是具體的錯誤代碼及錯誤信息。另外還包含一個全局唯一的請求 ID:RequestId 和一個您該次請求訪問的站點 ID:HostId。在調用方找不到錯誤原因時,可以聯繫阿里雲客服,並提供該 HostId 和 RequestId,以便我們儘快幫您解決問題。
公共錯誤碼
錯誤代碼
描述
Http 狀態碼
語義
MissingParameter The input parameter 「Action」 that is mandatory for processing this request is not supplied 400 缺少 Action 欄位
MissingParameter The input parameter 「AccessKeyId」 that is mandatory for processing this request is not supplied 400 缺少 AccessKeyId 欄位
MissingParameter An input parameter 「Signature」 that is mandatory for processing the request is not supplied. 400 缺少 Signature 欄位
MissingParameter The input parameter 「TimeStamp」 that is mandatory for processing this request is not supplied 400 缺少 Timestamp 欄位
MissingParameter The input parameter 「Version」 that is mandatory for processing this request is not supplied 400 缺少 Version 欄位
InvalidParameter The specified parameter 「Action or Version」 is not valid. 400 無效的 Action 值(該 API 不存在)
InvalidAccessKeyId.NotFound The Access Key ID provided does not exist in our records. 400 無效的 AccessKeyId 值(該 key 不存在)
Forbidden.AccessKeyDisabled The Access Key is disabled. 403 該 AccessKey 處于禁用狀態
IncompleteSignature The request signature does not conform to Aliyun standards. 400 無效的 Signature 取值(簽名結果錯誤)
InvalidParamater The specified parameter 「SignatureMethod」 is not valid. 400 無效的 SignatureMethod 取值
InvalidParamater The specified parameter 「SignatureVersion」 is not valid. 400 無效的 SignatureVersion 取值
IllegalTimestamp The input parameter 「Timestamp」 that is mandatory for processing this request is not supplied. 400 無效的 Timestamp 取值(Timestamp 與伺服器時間相差超過了 1 個小時)
SignatureNonceUsed The request signature nonce has been used. 400 無效的 SignatureNonce(該 SignatureNonce 值已被使用過)
InvalidParameter The specified parameter 「Action or Version」 is not valid. 400 無效的 Version 取值
InvalidOwnerId The specified OwnerId is not valid. 400 無效的 OwnerId 取值
InvalidOwnerAccount The specified OwnerAccount is not valid. 400 無效的 OwnerAccount 取值
InvalidOwner OwnerId and OwnerAccount can』t be used at one API access. 400 同時使用了 OwnerId 和 OwnerAccount
Throttling Request was denied due to request throttling. 400 因系統流控拒絕訪問
Throttling Request was denied due to request throttling. 400 該 key 的調用 quota 已用完
InvalidAction Specified action is not valid. 403 該 key 無權調用該 API
UnsupportedHTTPMethod This http method is not supported. 403 用戶使用了不支持的 Http Method(當前 TOP 只支持 post 和 get)
ServiceUnavailable The request has failed due to a temporary failure of the server. 500 服務不可用
UnsupportedParameter The parameter 」」 is not supported. 400 使用了無效的參數
InternalError The request processing has failed due to some unknown error, exception or failure. 500 其他情況
MissingParameter The input parameter OwnerId,OwnerAccount that is mandatory for processing this request is not supplied. 403 調用該介面沒有指定 OwnerId
Forbidden.SubUser The specified action is not available for you。 403 無權調用訂單類介面
UnsupportedParameter The parameter 」」 is not supported. 400 該參數無權使用
Forbidden.InstanceNotFound The specified Instance is not found, so we cann』t get enough information to check permission in RAM. 404 使用了 RAM 授權子賬號進行資源訪問,但是本次訪問涉及到的 Instance 不存在
Forbidden.DiskNotFound The specified Disk is not found, so we cann』t get enough information to check permission in RAM. 404 使用了 RAM 授權子賬號進行資源訪問,但是本次訪問涉及到的 Disk 不存在
Forbidden.SecurityGroupNotFound The specified SecurityGroup is not found, so we cann』t get enough information to check permission in RAM. 404 使用了 RAM 授權子賬號進行資源訪問,但是本次訪問涉及到的 SecurityGroup 不存在
Forbidden.SnapshotNotFound The specified Snapshot is not found, so we cann』t get enough information to check permission in RAM. 404 使用了 RAM 授權子賬號進行資源訪問,但是本次訪問涉及到的 Snapshot 不存在
Forbidden.ImageNotFound The specified Image is not found, so we cann』t get enough information to check permission in RAM. 404 使用了 RAM 授權子賬號進行資源訪問,但是本次訪問涉及到的 Image 不存在
Forbidden.RAM User not authorized to operate the specified resource, or this API doesn』t support RAM. 403 使用了 RAM 授權子賬號進行資源訪問,但是本次操作沒有被正確的授權
Forbidden.NotSupportRAM This action does not support accessed by RAM mode. 403 該介面不允許使用 RAM 方式進行訪問
InsufficientBalance Your account does not have enough balance. 400 餘額不足
IdempotentParameterMismatch Request uses a client token in a previous request but is not identical to that request. 400 使用了一個已經使用過的 ClientToken,但此次請求內容卻又與上一次使用該 Token 的 request 不一樣.
RealNameAuthenticationError Your account has not passed the real-name authentication yet. 403 用戶未進行實名認證
InvalidIdempotenceParameter.Mismatch The specified parameters are different from before 403 冪等參數不匹配
LastTokenProcessing The last token request is processing 403 上一次請求還在處理中
InvalidParameter The specified parameter is not valid 400 參數校驗失敗
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/185616.html