Created
April 1, 2021 08:57
-
-
Save aeknarinamn/3d0694907d1b9caea167cfcb8793539e to your computer and use it in GitHub Desktop.
startPushFlex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'sendMessage.php'; | |
$flexDataJson = ''; | |
$flexDataJsonDeCode = json_decode($flexDataJson,true); | |
$datas['url'] = "https://api.line.me/v2/bot/message/push"; | |
$datas['token'] = "<access token>"; | |
$messages['to'] = "<user id>"; | |
$messages['messages'][] = $flexDataJsonDeCode; | |
$encodeJson = json_encode($messages); | |
sentMessage($encodeJson,$datas); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment