用PHP如何发送彩信
<?php $snoopy = Factory::getBaseClass('Snoopy'); $snoopy->_submit_method='POST'; $submit_url = "发送彩信的接口地址"; $submit_vars['topic'] = '彩信主题'; //彩信主题(140个字节,既70个中文字符) $zip_stream = urlencode(base64_encode(file_get_contents('demo.zip'))); $submit_vars['zip_stream'] = $zip_stream; //多媒体字段值 Base64编码的信息流 $snoopy->submit($submit_url,$submit_vars);
注:将要发送的内容打包ZIP,然后做base64编码
zip包:下载