古代洞房2国语版免费观看,日本暴力强伦轩视频,图书馆挺进她腿间湿润漫画 ,风流夫人免费观看高清电视剧

PHP DEMO


功能说明:该接口要求提前在云片后台添加模板,提交短信时,系统会自动匹配审核通过的模板,匹配成功任意一个模板即可发送。系统已提供的默认模板添加签名后可以直接使用。


<?php
header("Content-Type:text/html;charset=utf-8");
$apikey = "xxxxxxxxxxx"; //修改为您的apikey(http://jiadezhuangshi.cn)登录官网后获取
$mobile = "xxxxxxxxxxx"; //请用自己的手机号代替
$text="【云片网】您的验证码是1234,5分钟内有效。";
$ch = curl_init();

/* 设置验证方式 */
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept:text/plain;charset=utf-8',
    'Content-Type:application/x-www-form-urlencoded', 'charset=utf-8'));
/* 设置返回结果为流 */
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

/* 设置超时时间*/
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

/* 设置通信方式 */
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

// 取得用户信息
$json_data = get_user($ch,$apikey);
$array = json_decode($json_data,true);
echo '
<pre>';print_r($array);

// 发送短信
$data=array('text'=>$text,'apikey'=>$apikey,'mobile'=>$mobile);
$json_data = send($ch,$data);
$array = json_decode($json_data,true);
echo '
<pre>';print_r($array);

// 发送模板短信
// 需要对value进行编码
$data = array('tpl_id' => '365741', 'tpl_value' => ('#code#').
    '='.urlencode('1234').
    '&'.urlencode('#min#').
    '='.urlencode('5'), 'apikey' => $apikey, 'mobile' => $mobile);
print_r ($data);
$json_data = tpl_send($ch,$data);
$array = json_decode($json_data,true);
echo '
<pre>';print_r($array);

// 发送语音验证码
$data=array('code'=>'9876','apikey'=>$apikey,'mobile'=>$mobile);
$json_data =voice_send($ch,$data);
$array = json_decode($json_data,true);
echo '
<pre>';print_r($array);

 curl_close($ch);


/************************************************************************************/
//获得账户
function get_user($ch,$apikey){
    curl_setopt($ch, CURLOPT_URL, 'https://sms.yunpian.com/v2/user/get.json');
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('apikey' => $apikey)));
    $result = curl_exec($ch);
    $error = curl_error($ch);
    checkErr($result,$error);
    return $result;
}
function send($ch,$data){
    curl_setopt($ch, CURLOPT_URL, 'https://sms.yunpian.com/v2/sms/single_send.json');
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    $result = curl_exec($ch);
    $error = curl_error($ch);
    checkErr($result,$error);
    return $result;
}
function tpl_send($ch,$data){
    curl_setopt($ch, CURLOPT_URL,
        'https://sms.yunpian.com/v2/sms/tpl_single_send.json');
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    $result = curl_exec($ch);
    $error = curl_error($ch);
    checkErr($result,$error);
    return $result;
}
function voice_send($ch,$data){
    curl_setopt($ch, CURLOPT_URL, 'http://voice.yunpian.com/v2/voice/send.json');
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
    $result = curl_exec($ch);
    $error = curl_error($ch);
    checkErr($result,$error);
    return $result;
}
function checkErr($result,$error) {
    if($result === false)
    {
        echo 'Curl error: ' . $error;
    }
    else
    {
        //echo '操作完成没有任何错误';
    }
}

?>
日产MV和欧美MV的外观对比| 男女打扑克| 不戴套瑜伽教练3)| 《魅魔之耻》1~4集免费看| 麻花星空传剧原创MV在线| 麻花星空传剧原创MV在线| 善良的公与媳HD中文| 单亲妈妈用性缓解孩子压力| 乐乐的放荡日记 笔趣阁在线阅读 小乖(糙汉文)TXT笔趣阁免费.. | 兜兜动漫| 女生暴露隐私| 头像女下半部位视频大全| 爸爸的大DJ小说| 《一滴都不许漏》何泽城林荫| 妈妈的闺蜜| 偷吃爸爸擎天柱1-100集| HTTPS://WWW.PPT...| 美国禁忌少妇6| 《医务室的小秘密》动漫第一季免..| 《交换做爰》在线观看| 《共享弟夫》动漫在线观看免费 | 他的大手在秘密花园游走漫画| 三个男人躁我奶头好舒服| 轮流和两个男人一起很容易染病吗| 小寡妇在线观看免费播放电视剧 | 老赵在货车把儿媳妇送到了| T字裤衩珍珠卡在缝里要紧吗| 同学的母亲中字ID| 他掀开裙子舌头伸进去添在线视频 | 日本《暴力强伦轩》| 老公拿狗给我配| 真实双人插画的视频| 老公说我越来越骚的心理| 美国人免费观看高清电视剧的软件 | 《性爽2》电影| 她开始慢慢迎合刘小刚是什么歌| 儿媳妇免费播放全部电视剧| 静海天气预报| 老卫抱着淑蓉进房间导演是谁| 9l制作厂麻花| 《交换做爰》在线观看