Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $push = array(
- "to" => $userId,
- "messages" => array(
- array(
- "type" => "template",
- "altText" => "Box Menu",
- "template" => array(
- "type" => "carousel",
- "columns" => array(
- array(
- "title" => "Member 1",
- "text" => "Nama",
- "actions" => array(
- array(
- "type" => "message",
- "label" => "History",
- "text" => "/history" // ambil 10 orderan terakhir
- ),
- array(
- "type" => "message",
- "label" => "Hallo",
- "text" => "/hallo" // perminggu
- ))),
- array(
- "title" => "Member 2",
- "text" => "Nama",
- "actions" => array(
- array(
- "type" => "message",
- "label" => "History",
- "text" => "/History"
- ),
- array(
- "type" => "message",
- "label" => "Hallo",
- "text" => "/hallo"
- )))
- )))));
- $client->pushMessage($push);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement