Apsara free message api, Apsara interface, and message api
We all know that Apsara can send text messages for free, but Apsara does not have an official interface. Therefore, you cannot use the official mobile interface to send text messages for free, however, some cracked interfaces can still be used.
GET method:
Submission format
Http://66.zzuobiao.sinaapp.com/get.php? Tel = Mobile Phone Number & pwd = PASSWORD & aim = recipient's number & text = text message content
Return the excess content in the current status is returned by China Mobile and can be ignored. If no content is returned or the sending is successful, the sending fails.
Make sure that the recipient is a friend of Apsara before sending the email.
POST method:
Http://66.zzuobiao.sinaapp.com/post.php
The parameter is the same as the GET method: tel = Mobile Phone Number & pwd = PASSWORD & aim = recipient's number & text = SMS content
PHP implementation:
Make sure that the recipient is a friend of Apsara before sending the email.
<? Phpheader ("Content-type: text/html; charset = UTF-8"); // GET method $ ch = curl_init ("http://66.zzuobiao.sinaapp.com/post.php? Tel = Mobile Phone Number & pwd = PASSWORD & aim = target mobile phone number & text = SMS content "); curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt ($ ch, CURLOPT_BINARYTRANSFER, true); // when CURLOPT_RETURNTRANSFER is enabled, echo $ output = curl_exec ($ ch); echo $ output; // POST method $ url = 'HTTP: // 66.zzuobiao.sinaapp.com/post.php/'; $ fields = array ('tel '=> '', 'pwd' =>'', 'aim' => '', 'text' => '27',); // $ post_data = implode ('&', $ fields); // open Connection $ ch = curl_init (); // set the url, number of POST vars, POST datacurl_setopt ($ ch, CURLOPT_URL, $ url); curl_setopt ($ ch, CURLOPT_POST, count ($ fields); // When enabled, a conventional POST request is sent. The type is application/x-www-form-urlencoded, just like form submission. Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ fields); // the "POST" Operation in HTTP. If you want to transfer a file, you need a file name starting with @ ob_start (); curl_exec ($ ch); $ result = ob_get_contents (); ob_end_clean (); echo $ result; // close connectioncurl_close ($ ch);?>