zoukankan      html  css  js  c++  java
  • 飞信免费邮件api,飞信界面

    大家都知道飞信是能够免费发送短信的,可是飞信又没有官方的接口,所以无法借用移动的官方接口实现短信的免费发送,可是还是有一些破解的接口能够使用的。

    GET方法:

    提交格式

    http://66.zzuobiao.sinaapp.com/get.php?tel=手机号&pwd=password&aim=对方号码&text=短信内容

    return 当前状态 多余内容为中国移动返回 能够忽略,若没有返回内容或者未返回发送成功,则表示发送失败

    请在发送前确保对方已为飞信好友

    POST方法:

    http://66.zzuobiao.sinaapp.com/post.php

    參数同GET方法:tel=手机号&pwd=password&aim=对方号码&text=短信内容

    使用PHP实现:

    请在发送前确保对方已为飞信好友

    <?php
    header("Content-type: text/html; charset=utf-8");
    //GET方法 
    $ch = curl_init("http://66.zzuobiao.sinaapp.com/post.php?tel=手机号&pwd=password&aim=目标手机号&text=短信内容") ;
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true) ; // 获取数据返回
    curl_setopt($ch, CURLOPT_BINARYTRANSFER, true) ; // 在启用 CURLOPT_RETURNTRANSFER 时候将获取数据返回
    echo $output = curl_exec($ch) ;
     
    echo $output;
    //POST方法
    $url = 'http://66.zzuobiao.sinaapp.com/post.php/' ;
    $fields = array(
                   'tel'=>'' ,
                   'pwd'=>'' ,
                   'aim'=>'',
                   'text'=>'27' ,
                            );
    //$post_data = implode('&',$fields);
     
    //open connection
    $ch = curl_init() ;
    //set the url, number of POST vars, POST data
    curl_setopt($ch, CURLOPT_URL,$url) ;
    curl_setopt($ch, CURLOPT_POST,count($fields)) ; // 启用时会发送一个常规的POST请求,类型为:application/x-www-form-urlencoded,就像表单提交的一样。

    curl_setopt($ch, CURLOPT_POSTFIELDS,$fields); // 在HTTP中的“POST”操作。假设要传送一个文件。须要一个@开头的文件名称 ob_start(); curl_exec($ch); $result = ob_get_contents() ; ob_end_clean(); echo $result; //close connection curl_close($ch) ; ?>



    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    App自动化01-Appium概述
    App绕过SSL Pinning机制抓取Https请求
    手机大厂必备测试技能-GMS 认证
    手机大厂必备测试技能-CTS 兼容测试
    一文搞定web自动化环境常见问题
    Airtest-UI 自动化集大成者
    shell三剑客之sed
    shell三剑客之grep
    二月主题读书整理——元技能系列
    深度学习目标检测综述推荐之 Xiaogang Wang ISBA 2015
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4621760.html
Copyright © 2011-2022 走看看