コード例 #1
0
ファイル: ajax.php プロジェクト: noinlijin/tiebaSign
    curl_setopt($ch, CURLOPT_HEADER, 0);
    //设置header
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    //要求结果为字符串且输出到屏幕上
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
    curl_setopt($ch, CURLOPT_TIMEOUT, 20);
    $data = curl_exec($ch);
    $respond = json_decode($data, true);
    $i++;
    var_dump($respond);
}
//$post_data = array ("email" => "*****@*****.**","plain_password"=>"a88705502");
//ajaxPost($post_data,"http://www.ostry.com.cn/userLogin/loginApi");
$post_data = array("code12" => "860240810812");
//ajaxPost($post_data,"http://testphone.dashi.us/index.php/ScanAppServer/GetInfoBeforeFactory");
//$post_data = array ("deliveryNumber" => "968569838039","arriveInfo"=>"你好");
//ajaxPost($post_data,"http://testphone.dashi.us/index.php/ScanAppServer/ArriveFactory");
$post_data = array("username" => "15198266364", "password" => "a88705502", "sendto" => "18782952393", "message" => "哈哈哈,测试你受的了不");
//ajaxPost($post_data,"http://sms.api.bz/fetion.php");
$post_data = array("1" => "");
/*
while (true) {
  $post_data = 1;
  sleep(1);
  ajaxPost($post_data,"http://www.new1.uestc.edu.cn/specialtopic/10.1/teacher");
}
*/
$post_data = array("janCodes" => "4934761484488");
ajaxPost($post_data, "http://www.muji.net/store/cmdty/detail/prices/");
コード例 #2
0
ファイル: sendMail.php プロジェクト: noinlijin/tiebaSign
            $vars = array("name" => $item["name"], "number" => $i);
            $post_data = array("vars" => json_encode($vars), "to" => $item["email"], "subject" => "Hi " . $item["name"] . ",诚邀你们参与我们的新产品内测", "project" => "sFhVs1", "appid" => "11054", "signature" => "b983f6263874f229b75482011011d4cf");
            $respond = ajaxPost($post_data, "https://api.submail.cn/mail/xsend");
            fwrite($wz, $respond . date('Y-m-d H:i:s') . "\n");
            var_dump($respond . date('Y-m-d H:i:s'));
            $i++;
        }
        break;
    case "fastcat":
        //给快喵用户发邮件
        //        $emaiList = file("fastcatuser.txt"); //读数据
        $emaiList = file("UIchianUserEmail.txt");
        //读数据
        $i = 1;
        foreach ($emaiList as $item) {
            $vars = array("name" => explode("@", $item)[0], "number" => $i);
            $post_data = array("vars" => json_encode($vars), "to" => $item, "project" => "26oL01", "appid" => "11064", "signature" => "c3919ddd1ceba443680d4d49e99deb07");
            $respond = ajaxPost($post_data, "https://api.submail.cn/mail/xsend");
            fwrite($wz, $respond . date('Y-m-d H:i:s') . " " . $item . "\n");
            var_dump($respond . date('Y-m-d H:i:s') . " " . $item . "第" . $i . "个");
            $i++;
        }
        break;
    case "uiChina":
        //给uiChina用户发邮件
        break;
    default:
        //给普通用户发邮件
        break;
}
fclose($wz);