Skip to content

Instantly share code, notes, and snippets.

@songwutk
songwutk / SiteController.php
Last active May 25, 2020 09:21
Yii2 Guzzle - Linenotify
public function actionNotify()
{
/* command line ======================================
curl -i -X POST -H "Authorization: Bearer b8Gx9LQhQuiJmmuEWkteTPJe93J2jKjFkpr5B2tORmu" -d "message=ทดสอบข้อความจาก cURL" https://notify-api.line.me/api/notify
*/
$token='3wKyKg8BpNHCUp3BJw6ovuQWJURJFbVxwFHDYtnWQ5N';
$imgurl='https://forum.yiiframework.com/uploads/default/original/3X/a/1/a1b88caf35558ce965b3ab69c58577408922641a.png';