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

PHP DEMO


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


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

?>
巜禁忌7》A片| 一边啃奶头一边躁狂会怎么样| 蜜桃影视| 哪吒闹海2电影| 少妇大屁股白浆流出白浆 | 爱丽丝梦游仙境电影| 俄罗斯姑娘免费看高清电视剧| 潮湿的体温2| 苍老师巅峰电影在线观看| 《我的漂亮老板娘》演员名单| 怀孕期间叫闺蜜来给老公消火| 教室停电 挺进她体内H| 黑瓜网-每日大赛 反差| 做完放里面睡觉醒了继续| 继母后妈的梗| 美女两个球球抖动抓球球视频 | 小雪解开乳罩给老杨摸| 数字人民币是什么意思| 李丽珍爱的精灵| 怎么用一支笔把自己弄出粘液 | 汗汗画画免费阅读在线阅读| 十八岁辣妹高清版免费观看电视剧| 小峡子的味道4| 久久精品亚洲AV无码洋洋| 少女国产免费观看高清电视剧| BOBO浏览器老司机模式改版特..| 董丝旗袍裙跳舞| 《插曲的痛免费观看第二季》| 日韩欧洲亚洲SUV| 欲奴性猛交2无删减| 交换的日子| 美女和男生一起努力的生孩子视频.. | 狗配人的大片视频大全| 《从上司到妻子》动画结局| 男生把小困困放到女生困里视频| 《温柔的老师》电影免费观看| 《喂奶人妻厨房HD》| 穿真空短裙挤公交会被赶走吗| 苍井空| 韩国色情巜肉欲教室2| 人犬兽人在线观看免费完整