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

PHP DEMO


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


<?php
header("Content-Type:text/html;charset=utf-8");
$apikey = "xxxxxxxxxxx"; //修改为您的apikey(http://www.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 '操作完成没有任何错误';
    }
}

?>
男生手进入是什么感觉| 窝窝视频网| 5YY3.CNV7Y7.CC| 密爱在线观看| 《淫海春潮》电影| 皇上被群臣扒开腿狂C| 在办公室被CAO很爽很高H漫画| 《晚上准备好纸巾》| 和妈妈做了怎么办心理咨询 | 一晚上要了小姑娘三次| 女性私处蹲下拍照有疙瘩| 姐姐片多多免费高清电视剧| 陌陌影视在线观看高清完整版 | 哥伦比亚电视内衣秀| 蜜糖在线观看免费高清电视剧| 蜜桃影视| 动漫《纯洁的修女》在线看 | 尧建云| 满清十大酷刑| 《熟妇的荡欲》免费看| 丰满的儿女小月的身世与背景介绍| 羞羞视频| 草原课文六年级上册| 日韩AV无码一区二区三区| AAAA级毛皮的标准色卡| 美女热舞| 国产免费观看高清电视剧在线观看| 美国式禁忌| 九妹网| 日本在线观看| 妈妈说今晚爸爸不回家| 白色变态蕾丝超薄开档连身袜 | 免费观看已满十八岁电视剧高清版| 坤坤寒进桃子里在线看歌词| 原声舌吻| 暴躁妹妹CSGO高清| 女性扒开大腿内侧小肚子痒| 美国A片巜豪妇荡乳》| B站入口直接进入| 美国禁忌:性炮交| 日本大片PPT免费PPT