- 最後登錄
- 2022-5-7
- 在線時間
- 95 小時
- 註冊時間
- 2014-10-7
- 閱讀權限
- 20
- 精華
- 0
- UID
- 14915321
- 帖子
- 189
- 積分
- 118 點
- 潛水值
- 6980 米
| 如果你忘記伊莉的密碼,請在登入時按右邊出現的 '找回密碼'。輸入相關資料後送出,系統就會把密碼寄到你的E-Mail。 本帖最後由 chengpocheng 於 2018-8-30 10:58 AM 編輯
可以使用php_curl
就看LINE notify提供的接口是用POST GET PUT...等
舉例來說- $send_url = "http://example.com";
- $token_post = array(
- "code" => "testCode",
- "client_id" => "testClient",
- "client_secret" =>”testScecret”,
- );
-
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $send_url);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $token_post);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER , 1);
- $response = curl_exec($ch); // 回傳 access_token
- curl_close($ch);
複製代碼 因為我沒看line notify的串接文件,變數token_post裡面的參數要靠你自行去查閱,但根據我的經驗,取得access token的流程差不多就是這樣... |
|