4adk.com
"\r\n", 'content' = > $ queryData), ); $ context = stream_context_create ( $ headerOptions); $ result = file_get_contents ( LINE_API, FALSE, $ context); $ res = json_decode ( $ result); return $ res;} //exit(); ระบบ ตระกร้าสินค้า 720 970 fordev22 fordev22 2019-09-14 23:58:59 2019-09-15 00:38:14 PHP+MySqli EP. 17 PHP & line notify สำหรับการแจ้งเตือนผ่าน Line
LINE API 101 | LINE มี API อะไรให้ใช้บ้าง? - YouTube
สร้าง Env ชื่อ o-oh-bot และใช้ python3 ในการพัฒนา โดยใช้คำสั่ง $ virtualenv -p python3 o-oh-bot 3.
September 14, 2019 / in PHP+MySqli / PHP+MySqli EP. 17 PHP & line notify สำหรับการแจ้งเตือนผ่าน Line ขั้นตอนการทำ กำ ลงทะเบียนและผูกบัญชี Line กับอีเมลที่ต้องการใช้งาน ลงทะเบียนเพื่อรับ Token ได้ที่ โดย login จากบัญชีที่เราได้ลงทะเบียนไว้ สร้าง Token key โค๊ดการใช้งานตัวอย่าง 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 //แจ้งเตือนผ่านไลน์ define ( 'LINE_API', "); $ token = "ใส่Token ที่copy เอาไว้"; //ใส่Token ที่copy เอาไว้ $ str = "\r\n". 'username = '. $ username. "\r\n". ' password = '. $ password; //ข้อความที่ต้องการส่ง สูงสุด 1000 ตัวอักษร $ res = notify_message ( $ str, $ token); //print_r($res); function notify_message ( $ message, $ token) { $ queryData = array ( 'message' = > $ message); $ queryData = _build_query ( $ queryData, '', '&'); $ headerOptions = array ( '' = > array ( 'method' = > 'POST', 'header' = > "Content-Type: application/x-www-form-urlencoded\r\n". "Authorization: Bearer ". $ token. "Content-Length: ". strlen ( $ queryData).
2 ถ้ามีคนสนใจจะรีบเขียนให้อ่านกันนะครับ – รอติดตามตอนต่อไปครับ…. – ดูแลสุขภาพด้วยนะครับทุกๆท่าน 21, 316 total views, 11 views today
1 จะขอจบไว้เพียงเท่านี้ก่อนครับ แล้วมาพบกันใหม่ใน Ep. 2 กันต่อครับ