<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 設置消息模板具體API代碼 ~~~ <?php /** * 設置模板消息行業屬性 * User: wss * Date: 2016/8/10 * Time: 15:37 * * @author 大魔仙 */ $appid = "";//微信平臺獲取到的appid $appsecret = "";//微信平臺獲取到的appsecret //一、用appid和appsecert獲得access token 接口 $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret"; $output = https_request($url); //用于微信接口數據傳輸的萬能函數 $jsoninfo = json_decode($output, true); //生成PHP關聯數組 $access_token = $jsoninfo["access_token"]; //可以輸出看看返回值 var_dump($jsoninfo); //因為獲得access_token是有次數限制的,(具體限制可靠查看官方接口權限),所以最好是在獲取后保存下,一般2小時后失效。 //$access_token="DPkXmi-iVpp4z6e0YeN-QaeSn8prwWXdTfnoDIJ2E218j4-d_h-HepBuSnW3E1SpqI4uKACbTr9tRNUwsgDVe4WQ5Wlw0NI57eQGcgmyeLkUWPeACAKMF"; //定義POST數組 /*$date = array( "industry_id1"=>"1", "industry_id2"=>"4" ); $date_set=json_encode($date); //設置行業 $url_set_industry="https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=$access_token"; //調用微信接口數據傳輸的萬能函數 $output = https_request($url_set_industry,$date_set); $jsoninfo = json_decode($output, true); //生成PHP關聯數組 var_dump($jsoninfo); /** * httpsRequest * 一個用于微信接口數據傳輸的萬能函數,幾乎適應于所有微信接口數據的訪問及提交,其原理是使用curl實現向微信公眾平臺接口http及https協議時的get,post方式。 * * @access public * @param mixed $url 數據來源地址string * @param mixed $data 參數json字符串 * @return json字符串 */ function https_request($url,$data = null) { $curl = curl_init(); // curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); if (!empty($data)) { curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); } curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($curl); curl_close($curl); return $output; } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看