Is thinphp used for text message sending? The SMS sending interface is an API larger than Alibaba Cloud! The program is {code...} using thinphp for a text message sending function? The SMS sending interface is an API larger than Alibaba Cloud!
Program is
$ Appkey = "2344130587"; $ secret = "8d91dcf2073ff6da30bddbc"; require THINK_PATH. 'library/Org/Taobao/top/TopClient. php '; require THINK_PATH. 'library/Org/Taobao/top/ResultSet. php '; require THINK_PATH. 'library/Org/Taobao/top/RequestCheckUtil. php '; require THINK_PATH. 'library/Org/Taobao/top/TopLogger. php '; require THINK_PATH. 'library/Org/Taobao/top/request/AlibabaAliqinFcSmsNumSendRequest. php'; include (THINK_PATH. 'library/Org/Taobao/TopSdk. php '); $ c = new \ TopClient; $ c-> format = "json"; $ c-> appkey = $ appkey; $ c-> secretKey = $ secret; $ req = new \ AlibabaAliqinFcSmsNumSendRequest; // $ req-> setExtend ("123456"); $ req-> setSmsType ("normal "); $ req-> setSmsFreeSignName ("SMS test"); $ req-> setSmsParam ('{"code": "123456 "}'); $ req-> setRecNum ("159143333346"); $ req-> setSmsTemplateCode ("SMS_8525079"); $ resp = $ c-> ex Ecute ($ req); dump ($ resp); the output is an object (ResultSet) #8 (2) {["code"] => int (0) ["msg"] => string (28) "cocould not resolve proxy: ddd"} Could you tell me what went wrong?
Reply content:
Is thinphp used for text message sending? The SMS sending interface is an API larger than Alibaba Cloud!
Program is
$ Appkey = "2344130587"; $ secret = "8d91dcf2073ff6da30bddbc"; require THINK_PATH. 'library/Org/Taobao/top/TopClient. php '; require THINK_PATH. 'library/Org/Taobao/top/ResultSet. php '; require THINK_PATH. 'library/Org/Taobao/top/RequestCheckUtil. php '; require THINK_PATH. 'library/Org/Taobao/top/TopLogger. php '; require THINK_PATH. 'library/Org/Taobao/top/request/AlibabaAliqinFcSmsNumSendRequest. php'; include (THINK_PATH. 'library/Org/Taobao/TopSdk. php '); $ c = new \ TopClient; $ c-> format = "json"; $ c-> appkey = $ appkey; $ c-> secretKey = $ secret; $ req = new \ AlibabaAliqinFcSmsNumSendRequest; // $ req-> setExtend ("123456"); $ req-> setSmsType ("normal "); $ req-> setSmsFreeSignName ("SMS test"); $ req-> setSmsParam ('{"code": "123456 "}'); $ req-> setRecNum ("159143333346"); $ req-> setSmsTemplateCode ("SMS_8525079"); $ resp = $ c-> ex Ecute ($ req); dump ($ resp); the output is an object (ResultSet) #8 (2) {["code"] => int (0) ["msg"] => string (28) "cocould not resolve proxy: ddd"} Could you tell me what went wrong?
Looking at the prompt message, the proxy cannot be parsed: ddd. Can I directly use the demo provided on the official website without using tp?
$appkey = "2344130587";$secret = "8d91dcf2073ff6da30bddbc";