Does thinphp send text messages?

Source: Internet
Author: User
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";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.