{"id":241,"date":"2021-03-27T10:52:53","date_gmt":"2021-03-27T03:52:53","guid":{"rendered":"https:\/\/www.rmuti.ac.th\/user\/suthep\/?p=241"},"modified":"2023-07-18T12:37:06","modified_gmt":"2023-07-18T05:37:06","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-line-notify-api-%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%81%e0%b8%87%e0%b8%b2","status":"publish","type":"post","link":"https:\/\/www.rmuti.ac.th\/user\/suthep\/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-line-notify-api-%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%81%e0%b8%87%e0%b8%b2\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49 Line Notify API \u0e02\u0e2d\u0e07\u0e41\u0e1c\u0e19\u0e01\u0e07\u0e32\u0e19"},"content":{"rendered":"\n<p>\u0e08\u0e32\u0e01\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20171130161849\/http:\/\/clpark.rmuti.ac.th\/suthep\/ideas\/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%88%e0%b9%89%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b7%e0%b8%ad%e0%b8%99%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-line-notify\">\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e1c\u0e48\u0e32\u0e19 Line Notify<\/a>&nbsp;\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e17\u0e34\u0e49\u0e07\u0e17\u0e49\u0e32\u0e22\u0e44\u0e27\u0e49\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07&nbsp;&nbsp;Service \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e1c\u0e48\u0e32\u0e19 PHP \u0e1a\u0e19 server \u0e02\u0e2d\u0e07\u0e41\u0e1c\u0e19\u0e01\u0e07\u0e32\u0e19 \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e08\u0e30\u0e21\u0e32\u0e1e\u0e39\u0e14\u0e16\u0e36\u0e07 Service \u0e17\u0e35\u0e48\u0e21\u0e35\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e25\u0e49\u0e27\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19 \u0e41\u0e15\u0e48\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e16\u0e36\u0e07\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e31\u0e49\u0e19 \u0e02\u0e2d\u0e1e\u0e39\u0e14\u0e16\u0e36\u0e07\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e01\u0e48\u0e2d\u0e19 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e44\u0e1b\u0e22\u0e31\u0e07 Line Notify \u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 Line Notify Token \u0e01\u0e48\u0e2d\u0e19 (\u0e01\u0e23\u0e13\u0e35\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e43\u0e19\u0e01\u0e25\u0e38\u0e48\u0e21\u0e02\u0e2d\u0e07\u0e41\u0e1c\u0e19\u0e01\u0e07\u0e32\u0e19\u0e43\u0e0a\u0e49 Token \u0e17\u0e35\u0e48\u0e1c\u0e21\u0e02\u0e2d\u0e44\u0e27\u0e49\u0e41\u0e25\u0e49\u0e27\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22)<\/li>\n\n\n\n<li>\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e08\u0e30\u0e2a\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e21\u0e32\u0e01\u0e31\u0e1a\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\n<ol class=\"wp-block-list\">\n<li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $title = \u201c\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u201d;<\/li>\n\n\n\n<li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $content = \u201c\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e2b\u0e32\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u201d;<\/li>\n\n\n\n<li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $linetoken = \u2018Line Notify Token\u2019;<\/li>\n\n\n\n<li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $imageThumbnail = \u2018URL \u0e02\u0e2d\u0e07\u0e20\u0e32\u0e1e\u0e22\u0e48\u0e2d \u0e2b\u0e23\u0e37\u0e2d Thumbnail\u2019;<\/li>\n\n\n\n<li>\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $imageFullsize = \u2018URL \u0e02\u0e2d\u0e07\u0e20\u0e32\u0e1e\u0e40\u0e15\u0e47\u0e21\u2019;<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>\u0e42\u0e14\u0e22 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $title,&nbsp;$content \u0e41\u0e25\u0e30 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $linetoken \u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e04\u0e48\u0e32\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e27\u0e48\u0e32\u0e07\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $imageThumbnail \u0e41\u0e25\u0e30 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $imageFullsize \u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e48\u0e07\u0e44\u0e1b\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e2b\u0e32\u0e01\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e23\u0e38\u0e1b\u0e43\u0e19\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19<\/li>\n\n\n\n<li>\u0e08\u0e32\u0e01\u0e02\u0e49\u0e2d 3 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $title \u0e41\u0e25\u0e30&nbsp;\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $content \u0e08\u0e30\u0e16\u0e39\u0e01\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e01\u0e48\u0e2d\u0e19 &nbsp;\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e30\u0e01\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $ms_title &nbsp;\u0e41\u0e25\u0e30 $ms_content \u0e15\u0e32\u0e21\u0e25\u0e33\u0e14\u0e31\u0e1a<\/li>\n\n\n\n<li>URL \u0e17\u0e35\u0e48\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e1e\u0e32\u0e23\u0e32\u0e21\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14 \u0e42\u0e14\u0e22\u0e21\u0e35\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 http:\/\/URL\/Path\/file.php?linetoken=$linetoken&amp;title=$ms_title&amp;content=$ms_content&amp;imageThumbnail=$imageThumbnail&amp;imageFullsize=$imageFullsize<\/li>\n<\/ol>\n\n\n\n<p>\u0e2b\u0e25\u0e31\u0e01 \u0e46 \u0e01\u0e47\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e17\u0e48\u0e32\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a \u0e21\u0e32\u0e14\u0e39 Code \u0e40\u0e25\u0e22\u0e14\u0e35\u0e01\u0e27\u0e48\u0e32\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<p>\u0e40\u0e23\u0e34\u0e48\u0e21\u0e08\u0e32\u0e01 testlineapi.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;?php\n\/***********************************************************************************************************\n\u0e04\u0e33\u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\n\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 SAC Line Notify API \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e08\u0e32\u0e01 Code \u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19\n\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e37\u0e2d \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 3 \u0e15\u0e31\u0e27\u0e44\u0e14\u0e49\u0e41\u0e01\u0e48 \n \n$title, $content \u0e41\u0e25\u0e30 $linetoken\n \n\u0e42\u0e14\u0e22\n \n$title \u0e04\u0e37\u0e2d \u0e2b\u0e31\u0e27\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e15\u0e37\u0e2d\u0e19\n$content \u0e04\u0e37\u0e2d \u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e15\u0e37\u0e2d\u0e19\n$linetoken \u0e04\u0e37\u0e2d Token \u0e02\u0e2d\u0e07 Line Notify'; \n \n\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e02\u0e2d Token \u0e2d\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 http:\/\/clpark.rmuti.ac.th\/suthep\/ideas\/\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e1c\u0e48\u0e32\u0e19-line-notify\n \n**************************************************************************************************************\/\n\t\n\theader('Access-Control-Allow-Origin: *');\n\theader('Access-Control-Allow-Methods: GET, POST');  \n\techo '&lt;meta http-equiv=\"Content-type\" content=\"text\/html; charset=utf-8\" \/>';\n\t\n\/\/\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\n\t$title = \"\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e2a\u0e48\u0e07\u0e23\u0e39\u0e1b\";\n\t$content = \"\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e23\u0e38\u0e1b \u0e08\u0e32\u0e01 Line Notify\";\n\t$linetoken = 'Line Notify Token';\n\t$imageThumbnail = 'http:\/\/URL\/path\/HelloTn.png'; \n\t$imageFullsize = 'http:\/\/URL\/path\/Hello.png';\n\t\n\t$ms_title = base64_encode($title);\n\t$ms_content = base64_encode($content);\n\t\n\t\t\t\/\/ \u0e2a\u0e23\u0e49\u0e32\u0e07 cURL resource \u0e43\u0e2b\u0e21\u0e48\n\t\t\t$ch = curl_init();\n\t\t\t\n\t\t\t\/\/ \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 URL \u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e17\u0e31\u0e49\u0e07 3 \u0e15\u0e31\u0e27\n\t\t\tcurl_setopt($ch, CURLOPT_URL, \"http:\/\/URL\/path\/lineapi.php?linetoken=$linetoken&amp;title=$ms_title&amp;content=$ms_content&amp;imageThumbnail=$imageThumbnail&amp;imageFullsize=$imageFullsize\");\n\t\t\t\/\/ \u0e08\u0e31\u0e1a\u0e04\u0e48\u0e32 URL \u0e08\u0e32\u0e01\u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e1c\u0e48\u0e32\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07 browser\n\t\t\tcurl_exec($ch);\n\t\t\t\n\t\t\t\/\/ \u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07 cURL \u0e41\u0e25\u0e30\u0e1b\u0e25\u0e48\u0e2d\u0e22\u0e17\u0e23\u0e31\u0e1e\u0e22\u0e32\u0e01\u0e23\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e2d\u0e01\n\t\t\tcurl_close($ch);<\/code><\/pre>\n\n\n\n<p>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e41\u0e15\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 \u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e43\u0e2b\u0e49 PHP \u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e41\u0e25\u0e49\u0e27\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e21\u0e32\u0e43\u0e2a\u0e48\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e01\u0e47\u0e15\u0e32\u0e21\u0e43\u0e08\u0e04\u0e23\u0e31\u0e1a \u0e42\u0e14\u0e22\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e41\u0e19\u0e48 \u0e46 3 \u0e15\u0e31\u0e27\u0e04\u0e37\u0e2d&nbsp;\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $title,&nbsp;$content \u0e41\u0e25\u0e30 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $linetoken &nbsp;\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e1a\u0e2d\u0e01\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e43\u0e19\u0e02\u0e49\u0e2d 3 \u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19 \u0e2a\u0e48\u0e27\u0e19\u0e2a\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48\u0e40\u0e2b\u0e25\u0e37\u0e2d \u0e04\u0e37\u0e2d $imageThumbnail \u0e41\u0e25\u0e30 \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 $imageFullsize \u0e08\u0e30\u0e21\u0e35\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e16\u0e49\u0e32\u0e21\u0e35\u0e01\u0e47\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e17\u0e31\u0e49\u0e07 2 \u0e15\u0e31\u0e27\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<p>\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e19\u0e17\u0e35\u0e48 lineapi.php \u0e42\u0e14\u0e22\u0e44\u0e1f\u0e25\u0e4c lineal.php \u0e08\u0e30\u0e17\u0e33\u0e2b\u0e19\u0e49\u0e32\u0e17\u0e35\u0e48\u0e43\u0e19\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e48\u0e2d\u0e01\u0e31\u0e1a Line Notify API \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e19\u0e31\u0e48\u0e19\u0e40\u0e2d\u0e07<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;?php \n\/\/ \u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 message \u0e17\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e21\u0e32\u0e40\u0e0a\u0e48\u0e19 testlineapi.php\n$title = isset($_REQUEST&#91;'title']) ? $_REQUEST&#91;'title'] : '';\n$content = isset($_REQUEST&#91;'content']) ? $_REQUEST&#91;'content'] : '';\n$linetoken = isset($_REQUEST&#91;'linetoken']) ? $_REQUEST&#91;'linetoken'] : '';\n \n \nif($title == '' || $content == ''|| $linetoken == ''){\n\t\t\tdie();\n}else{\n \n\t\t\t\/\/ \u0e16\u0e2d\u0e14\u0e23\u0e2b\u0e31\u0e2a\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e35\u0e48\u0e23\u0e31\u0e1a\u0e21\u0e32\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e21\u0e32\n\t\t\t$ms_title = base64_decode($title);\n\t\t\t$ms_content = base64_decode($content);\n\t\t\t\n\t\t\t\/\/ \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\n\t\t\t$message = \"$ms_title $ms_content\";\n \n\t\t\t\/\/ Line API \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49 Notify\n\t\t\t\t$chOne = curl_init(); \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_URL, \"https:\/\/notify-api.line.me\/api\/notify\"); \n\t\t\t\/\/ SSL USE \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_SSL_VERIFYHOST, 0); \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_SSL_VERIFYPEER, 0); \n\t\t\t\/\/POST \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_POST, 1); \n\t\t\t\/\/ Message \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_POSTFIELDS, $message); \n\t\t\t\tif($imageThumbnail == '' || $imageFullsize == ''){\n\t\t\t\tcurl_setopt( $chOne, CURLOPT_POSTFIELDS, \"message=\".$message); \n\t\t\t\t}else{\n\t\t\t\t\/\/\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e23\u0e38\u0e1b \u0e43\u0e2b\u0e49\u0e43\u0e2a\u0e48 2 parameter imageThumbnail \u0e41\u0e25\u0e30imageFullsize\n\t\t\t\tcurl_setopt( $chOne, CURLOPT_POSTFIELDS, \"message=$message&amp;imageThumbnail=$imageThumbnail&amp;imageFullsize=$imageFullsize\");\n\t\t\t\t}\n\t\t\t\/\/ follow redirects \n\t\t\t\tcurl_setopt( $chOne, CURLOPT_FOLLOWLOCATION, 1); \n\t\t\t\/\/ADD header array \n\t\t\t\t$headers = array( 'Content-type: application\/x-www-form-urlencoded', 'Authorization: Bearer '.$linetoken, );\n\t\t\t\tcurl_setopt($chOne, CURLOPT_HTTPHEADER, $headers); \n\t\t\t\/\/RETURN\n\t\t\t\tcurl_setopt( $chOne, CURLOPT_RETURNTRANSFER, 1); \n\t\t\t\t$result = curl_exec( $chOne ); \n\t\t\t\/\/Check error \n\t\t\t\tif(curl_error($chOne)) { echo 'error:' . curl_error($chOne); } \n\t\t\t\t\telse { $result_ = json_decode($result, true); \n\t\t\t\techo \"status : \".$result_&#91;'status']; echo \"message : \". $result_&#91;'message']; } \n\t\t\t\/\/Close connect \n\t\t\t\tcurl_close( $chOne ); \n \n}\n?><\/code><\/pre>\n\n\n\n<p>\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07\u0e44\u0e1f\u0e25\u0e4c PHP \u0e1c\u0e21\u0e43\u0e2a\u0e48 comment \u0e44\u0e27\u0e49\u0e1e\u0e2d\u0e2a\u0e21\u0e04\u0e27\u0e23 \u0e04\u0e34\u0e14\u0e27\u0e48\u0e32\u0e19\u0e48\u0e32\u0e08\u0e30\u0e41\u0e01\u0e30\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e22\u0e32\u0e01 \u0e02\u0e2d\u0e44\u0e21\u0e48\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e40\u0e23\u0e32\u0e01\u0e47\u0e40\u0e1e\u0e35\u0e22\u0e27\u0e41\u0e15\u0e48\u0e40\u0e2d\u0e32\u0e44\u0e1f\u0e25\u0e4c lineapi.php \u0e44\u0e1b\u0e27\u0e32\u0e07\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e0b\u0e34\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a PHP \u0e41\u0e25\u0e49\u0e27\u0e01\u0e47\u0e40\u0e02\u0e35\u0e22\u0e19 Application \u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e44\u0e1b\u0e40\u0e23\u0e35\u0e22\u0e01\u0e44\u0e1f\u0e25\u0e4c lineapi.php \u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e1e\u0e32\u0e23\u0e32\u0e21\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e44\u0e1b\u0e43\u0e2b\u0e49\u0e04\u0e23\u0e1a\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2d\u0e07\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<p>\u0e1b\u0e25. \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e41\u0e1c\u0e19\u0e01\u0e07\u0e32\u0e19\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e19\u0e14\u0e49\u0e27\u0e22\u0e15\u0e19\u0e40\u0e2d\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e17\u0e32\u0e07 Line \u0e41\u0e08\u0e49\u0e07\u0e1c\u0e21\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a Service \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e27\u0e49\u0e43\u0e2b\u0e49\u0e41\u0e25\u0e49\u0e27<\/p>\n\n\n\n<p>\u0e17\u0e35\u0e48\u0e21\u0e32 https:\/\/notify-bot.line.me\/th\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e08\u0e32\u0e01\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07&nbsp;\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19\u0e1c\u0e48\u0e32\u0e19 Line Notif [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,10],"tags":[34,55],"class_list":["post-241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ideas","category-works","tag-line-notify","tag-line-notify-api"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.rmuti.ac.th\/user\/suthep\/wp-content\/uploads\/2021\/03\/og_fb.png?fit=1200%2C630&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":2,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/posts\/241\/revisions\/497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/media\/496"}],"wp:attachment":[{"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rmuti.ac.th\/user\/suthep\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}