蜜桃来偷欢免费观看高清电视剧,《大度》韩版免费,禁忌1蜜桃熟了,BOBO浏览器(海外版

PHP DEMO


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


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

?>
老师穿黑色双开真丝旗袍如何穿芭..| 《交换做爰》在线观看| 金银瓶4葡萄熟了| 初中小姐姐脚丫踩在男生困困| 暴躁少女CSGO高清观看方法| 日亚M码是日本的还是中国的 | 成全在线观看免费高清电视剧| 高清无码| 《教授与女学生》伦理| 久久久久精品| HTTPS://WWW.AP...| 《灭火宝贝2》美国版| 女的高潮过后第二次需要多久恢复| 日本大片又大又好看的PPT| 禁忌1蜜桃熟了| 麻花传沈娜娜MV| 女人乱子伦xXX沧州| 摸摸大扔子是讽刺人还是夸人| 9.1国产NBA免费看电影| 妙手房术3真人版| 小雪解开乳罩给老杨摸| 第9节 妈妈女儿齐上阵| 《不戴套瑜伽教练3》| 灭火宝贝2户外版| 美国禁忌2在线观看电视剧| 男人问你舒服吗出于什么心理 | 亚洲日韩AV精品一区二区| 太硬了…轻点…嗯嗯灬小俊| 豪门贵妇猎美录TXT| 水K制服| 《互换人妻HD中字》| 羞答答在线观看免费高清电视剧| 《性旺盛的女人》HD| 《互换人妻HD中字》| 做完0之后屁股里流了一点血| 东野圭吾信| 女人最骚的年龄期是多少岁了| 三个男人躁我奶头好舒服| 一前一后三个人一起的游戏规则 | 青柠影院在线观看高清电视剧荣耀| 李丽珍