Skip to content

Instantly share code, notes, and snippets.

@aeknarinamn
Created March 31, 2021 23:12
Show Gist options
  • Save aeknarinamn/99547c3908eee895f23a702f23134eb2 to your computer and use it in GitHub Desktop.
Save aeknarinamn/99547c3908eee895f23a702f23134eb2 to your computer and use it in GitHub Desktop.
pushFlex
<?php
require 'sendMessage.php';
$datas = [];
$datas["type"] = "flex";
$datas["altText"] = "This is a Flex Message";
$datas["contents"]["type"] = "carousel";
$datas["contents"]["contents"][0]["type"] = "bubble";
$datas["contents"]["contents"][0]["header"]["type"] = "box";
$datas["contents"]["contents"][0]["header"]["layout"] = "horizontal";
$datas["contents"]["contents"][0]["header"]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][0]["header"]["contents"][0]["text"] = "NEWS DIGEST";
$datas["contents"]["contents"][0]["header"]["contents"][0]["weight"] = "bold";
$datas["contents"]["contents"][0]["header"]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][0]["header"]["contents"][0]["color"] = "#AAAAAA";
$datas["contents"]["contents"][0]["hero"]["type"] = "image";
$datas["contents"]["contents"][0]["hero"]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/01_4_news.png";
$datas["contents"]["contents"][0]["hero"]["size"] = "full";
$datas["contents"]["contents"][0]["hero"]["aspectRatio"] = "20:13";
$datas["contents"]["contents"][0]["hero"]["aspectMode"] = "cover";
$datas["contents"]["contents"][0]["hero"]["action"]["type"] = "uri";
$datas["contents"]["contents"][0]["hero"]["action"]["label"] = "Action";
$datas["contents"]["contents"][0]["hero"]["action"]["uri"] = "https://linecorp.com/";
$datas["contents"]["contents"][0]["body"]["type"] = "box";
$datas["contents"]["contents"][0]["body"]["layout"] = "horizontal";
$datas["contents"]["contents"][0]["body"]["spacing"] = "md";
$datas["contents"]["contents"][0]["body"]["contents"][0]["type"] = "box";
$datas["contents"]["contents"][0]["body"]["contents"][0]["layout"] = "vertical";
$datas["contents"]["contents"][0]["body"]["contents"][0]["flex"] = 1;
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["type"] = "image";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/02_1_news_thumbnail_1.png";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["gravity"] = "bottom";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["aspectRatio"] = "4:3";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][0]["aspectMode"] = "cover";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["type"] = "image";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/02_1_news_thumbnail_2.png";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["margin"] = "md";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["size"] = "sm";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["aspectRatio"] = "4:3";
$datas["contents"]["contents"][0]["body"]["contents"][0]["contents"][1]["aspectMode"] = "cover";
$datas["contents"]["contents"][0]["body"]["contents"][1]["type"] = "box";
$datas["contents"]["contents"][0]["body"]["contents"][1]["layout"] = "vertical";
$datas["contents"]["contents"][0]["body"]["contents"][1]["flex"] = 2;
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][0]["text"] = "7 Things to Know for Today";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][0]["size"] = "xs";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][0]["flex"] = 1;
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][0]["gravity"] = "top";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][1]["type"] = "separator";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][2]["type"] = "text";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][2]["text"] = "Hay fever goes wild";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][2]["size"] = "xs";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][2]["flex"] = 2;
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][2]["gravity"] = "center";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][3]["type"] = "separator";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][4]["type"] = "text";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][4]["text"] = "LINE Pay Begins Barcode Payment Service";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][4]["size"] = "xs";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][4]["flex"] = 2;
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][4]["gravity"] = "center";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][5]["type"] = "separator";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][6]["type"] = "text";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][6]["text"] = "LINE Adds LINE Wallet";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][6]["size"] = "xs";
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][6]["flex"] = 1;
$datas["contents"]["contents"][0]["body"]["contents"][1]["contents"][6]["gravity"] = "bottom";
$datas["contents"]["contents"][0]["footer"]["type"] = "box";
$datas["contents"]["contents"][0]["footer"]["layout"] = "horizontal";
$datas["contents"]["contents"][0]["footer"]["contents"][0]["type"] = "button";
$datas["contents"]["contents"][0]["footer"]["contents"][0]["action"]["type"] = "uri";
$datas["contents"]["contents"][0]["footer"]["contents"][0]["action"]["label"] = "More";
$datas["contents"]["contents"][0]["footer"]["contents"][0]["action"]["uri"] = "https://linecorp.com";
$datas["contents"]["contents"][1]["type"] = "bubble";
$datas["contents"]["contents"][1]["hero"]["type"] = "image";
$datas["contents"]["contents"][1]["hero"]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/01_2_restaurant.png";
$datas["contents"]["contents"][1]["hero"]["size"] = "full";
$datas["contents"]["contents"][1]["hero"]["aspectRatio"] = "20:13";
$datas["contents"]["contents"][1]["hero"]["aspectMode"] = "cover";
$datas["contents"]["contents"][1]["hero"]["action"]["type"] = "uri";
$datas["contents"]["contents"][1]["hero"]["action"]["label"] = "Action";
$datas["contents"]["contents"][1]["hero"]["action"]["uri"] = "https://linecorp.com";
$datas["contents"]["contents"][1]["body"]["type"] = "box";
$datas["contents"]["contents"][1]["body"]["layout"] = "vertical";
$datas["contents"]["contents"][1]["body"]["spacing"] = "md";
$datas["contents"]["contents"][1]["body"]["action"]["type"] = "uri";
$datas["contents"]["contents"][1]["body"]["action"]["label"] = "Action";
$datas["contents"]["contents"][1]["body"]["action"]["uri"] = "https://linecorp.com";
$datas["contents"]["contents"][1]["body"]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][0]["text"] = "Brown's Burger";
$datas["contents"]["contents"][1]["body"]["contents"][0]["weight"] = "bold";
$datas["contents"]["contents"][1]["body"]["contents"][0]["size"] = "xl";
$datas["contents"]["contents"][1]["body"]["contents"][1]["type"] = "box";
$datas["contents"]["contents"][1]["body"]["contents"][1]["layout"] = "vertical";
$datas["contents"]["contents"][1]["body"]["contents"][1]["spacing"] = "sm";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["type"] = "box";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["layout"] = "baseline";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][0]["type"] = "icon";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][0]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/restaurant_regular_32.png";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][1]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][1]["text"] = "$10.5";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][1]["weight"] = "bold";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][1]["margin"] = "sm";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][2]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][2]["text"] = "400kcl";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][2]["size"] = "sm";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][2]["color"] = "#AAAAAA";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][0]["contents"][2]["align"] = "end";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["type"] = "box";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["layout"] = "baseline";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][0]["type"] = "icon";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][0]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/restaurant_large_32.png";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][1]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][1]["text"] = "$15.5";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][1]["weight"] = "bold";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][1]["flex"] = 0;
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][1]["margin"] = "sm";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][2]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][2]["text"] = "550kcl";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][2]["size"] = "sm";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][2]["color"] = "#AAAAAA";
$datas["contents"]["contents"][1]["body"]["contents"][1]["contents"][1]["contents"][2]["align"] = "end";
$datas["contents"]["contents"][1]["body"]["contents"][2]["type"] = "text";
$datas["contents"]["contents"][1]["body"]["contents"][2]["text"] = "Sauce, Onions, Pickles, Lettuce & Cheese";
$datas["contents"]["contents"][1]["body"]["contents"][2]["size"] = "xxs";
$datas["contents"]["contents"][1]["body"]["contents"][2]["color"] = "#AAAAAA";
$datas["contents"]["contents"][1]["body"]["contents"][2]["wrap"] = true;
$datas["contents"]["contents"][1]["footer"]["type"] = "box";
$datas["contents"]["contents"][1]["footer"]["layout"] = "vertical";
$datas["contents"]["contents"][1]["footer"]["contents"][0]["type"] = "spacer";
$datas["contents"]["contents"][1]["footer"]["contents"][0]["size"] = "xxl";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["type"] = "button";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["action"]["type"] = "uri";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["action"]["label"] = "Add to Cart";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["action"]["uri"] = "https://linecorp.com";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["color"] = "#905C44";
$datas["contents"]["contents"][1]["footer"]["contents"][1]["style"] = "primary";
$datas["contents"]["contents"][2]["type"] = "bubble";
$datas["contents"]["contents"][2]["hero"]["type"] = "image";
$datas["contents"]["contents"][2]["hero"]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/01_3_movie.png";
$datas["contents"]["contents"][2]["hero"]["size"] = "full";
$datas["contents"]["contents"][2]["hero"]["aspectRatio"] = "20:13";
$datas["contents"]["contents"][2]["hero"]["aspectMode"] = "cover";
$datas["contents"]["contents"][2]["hero"]["action"]["type"] = "uri";
$datas["contents"]["contents"][2]["hero"]["action"]["label"] = "Action";
$datas["contents"]["contents"][2]["hero"]["action"]["uri"] = "https://linecorp.com/";
$datas["contents"]["contents"][2]["body"]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["layout"] = "vertical";
$datas["contents"]["contents"][2]["body"]["spacing"] = "md";
$datas["contents"]["contents"][2]["body"]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][0]["text"] = "BROWN'S ADVENTURE
IN MOVIE";
$datas["contents"]["contents"][2]["body"]["contents"][0]["weight"] = "bold";
$datas["contents"]["contents"][2]["body"]["contents"][0]["size"] = "xl";
$datas["contents"]["contents"][2]["body"]["contents"][0]["gravity"] = "center";
$datas["contents"]["contents"][2]["body"]["contents"][0]["wrap"] = true;
$datas["contents"]["contents"][2]["body"]["contents"][1]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][1]["layout"] = "baseline";
$datas["contents"]["contents"][2]["body"]["contents"][1]["margin"] = "md";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][0]["type"] = "icon";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][0]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][1]["type"] = "icon";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][1]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][1]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][2]["type"] = "icon";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][2]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][2]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][3]["type"] = "icon";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][3]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][3]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][4]["type"] = "icon";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][4]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gray_star_28.png";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][4]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["text"] = "4.0";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["color"] = "#999999";
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["flex"] = 0;
$datas["contents"]["contents"][2]["body"]["contents"][1]["contents"][5]["margin"] = "md";
$datas["contents"]["contents"][2]["body"]["contents"][2]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][2]["layout"] = "vertical";
$datas["contents"]["contents"][2]["body"]["contents"][2]["spacing"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["margin"] = "lg";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["layout"] = "baseline";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["spacing"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][0]["text"] = "Date";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][0]["color"] = "#AAAAAA";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][0]["flex"] = 1;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["text"] = "Monday 25, 9:00PM";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["color"] = "#666666";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["flex"] = 4;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][0]["contents"][1]["wrap"] = true;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["layout"] = "baseline";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["spacing"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][0]["text"] = "Place";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][0]["color"] = "#AAAAAA";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][0]["flex"] = 1;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["text"] = "7 Floor, No.3";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["color"] = "#666666";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["flex"] = 4;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][1]["contents"][1]["wrap"] = true;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["layout"] = "baseline";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["spacing"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][0]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][0]["text"] = "Seats";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][0]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][0]["color"] = "#AAAAAA";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][0]["flex"] = 1;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["text"] = "C Row, 18 Seat";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["size"] = "sm";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["color"] = "#666666";
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["flex"] = 4;
$datas["contents"]["contents"][2]["body"]["contents"][2]["contents"][2]["contents"][1]["wrap"] = true;
$datas["contents"]["contents"][2]["body"]["contents"][3]["type"] = "box";
$datas["contents"]["contents"][2]["body"]["contents"][3]["layout"] = "vertical";
$datas["contents"]["contents"][2]["body"]["contents"][3]["margin"] = "xxl";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][0]["type"] = "spacer";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][1]["type"] = "image";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][1]["url"] = "https://scdn.line-apps.com/n/channel_devcenter/img/fx/linecorp_code_withborder.png";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][1]["size"] = "xl";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][1]["aspectMode"] = "cover";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["type"] = "text";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["text"] = "You can enter the theater by using this code instead of a ticket";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["size"] = "xs";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["color"] = "#AAAAAA";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["margin"] = "xxl";
$datas["contents"]["contents"][2]["body"]["contents"][3]["contents"][2]["wrap"] = true;
$dataPushMessages['url'] = "https://api.line.me/v2/bot/message/push";
$dataPushMessages['token'] = "<access token>";
$messages['to'] = "<user id>";
$messages['messages'][] = $datas;
$encodeJson = json_encode($messages);
sentMessage($encodeJson,$dataPushMessages);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment