Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($chat=='TESTER'){
- $push = array(
- "to" => $userId,
- "messages" => array (
- 'type' => 'bubble',
- 'hero' =>
- array (
- 'type' => 'image',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/01_1_cafe.png',
- 'size' => 'full',
- 'aspectRatio' => '20:13',
- 'aspectMode' => 'cover',
- 'action' =>
- array (
- 'type' => 'uri',
- 'uri' => 'http://linecorp.com/',
- ),
- ),
- 'body' =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'text' => 'Brown Cafe',
- 'weight' => 'bold',
- 'size' => 'xl',
- ),
- 1 =>
- array (
- 'type' => 'box',
- 'layout' => 'baseline',
- 'margin' => 'md',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'icon',
- 'size' => 'sm',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png',
- ),
- 1 =>
- array (
- 'type' => 'icon',
- 'size' => 'sm',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png',
- ),
- 2 =>
- array (
- 'type' => 'icon',
- 'size' => 'sm',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png',
- ),
- 3 =>
- array (
- 'type' => 'icon',
- 'size' => 'sm',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gold_star_28.png',
- ),
- 4 =>
- array (
- 'type' => 'icon',
- 'size' => 'sm',
- 'url' => 'https://scdn.line-apps.com/n/channel_devcenter/img/fx/review_gray_star_28.png',
- ),
- 5 =>
- array (
- 'type' => 'text',
- 'text' => '4.0',
- 'size' => 'sm',
- 'color' => '#999999',
- 'margin' => 'md',
- 'flex' => 0,
- ),
- ),
- ),
- 2 =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'margin' => 'lg',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'box',
- 'layout' => 'baseline',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'text' => 'Place',
- 'color' => '#aaaaaa',
- 'size' => 'sm',
- 'flex' => 1,
- ),
- 1 =>
- array (
- 'type' => 'text',
- 'text' => 'Miraina Tower, 4-1-6 Shinjuku, Tokyo',
- 'wrap' => true,
- 'color' => '#666666',
- 'size' => 'sm',
- 'flex' => 5,
- ),
- ),
- ),
- 1 =>
- array (
- 'type' => 'box',
- 'layout' => 'baseline',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'text',
- 'text' => 'Time',
- 'color' => '#aaaaaa',
- 'size' => 'sm',
- 'flex' => 1,
- ),
- 1 =>
- array (
- 'type' => 'text',
- 'text' => '10:00 - 23:00',
- 'wrap' => true,
- 'color' => '#666666',
- 'size' => 'sm',
- 'flex' => 5,
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- 'footer' =>
- array (
- 'type' => 'box',
- 'layout' => 'vertical',
- 'spacing' => 'sm',
- 'contents' =>
- array (
- 0 =>
- array (
- 'type' => 'button',
- 'style' => 'link',
- 'height' => 'sm',
- 'action' =>
- array (
- 'type' => 'uri',
- 'label' => 'CALL',
- 'uri' => 'https://linecorp.com',
- ),
- ),
- 1 =>
- array (
- 'type' => 'button',
- 'style' => 'link',
- 'height' => 'sm',
- 'action' =>
- array (
- 'type' => 'uri',
- 'label' => 'WEBSITE',
- 'uri' => 'https://linecorp.com',
- ),
- ),
- 2 =>
- array (
- 'type' => 'spacer',
- 'size' => 'sm',
- ),
- ),
- 'flex' => 0,
- ),
- )
- );
- $client->pushMessage($push);
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement