Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///STATEMENT
- if($message['type'] == 'text'){
- if(strtolower($command) == "/mystatus"){
- $execute = status($key);
- $json = json_decode($execute, TRUE);
- $count = count($json['result']);
- if($count > 10){
- $count = 10;
- }
- for($i=0; $i < $count; $i++){
- $responses['replyToken'] = $replyToken;
- $responses['messages']['0']['type'] = "flex";
- $responses['messages']['0']['altText'] = "Status Pesanan Anda";
- $responses['messages']['0']['contents']['type'] = "carousel";
- $responses['messages']['0']['contents']['contents'][$i]['type'] = "bubble";
- //hero
- $responses['messages']['0']['contents']['contents'][$i]['hero']['type'] = "image";
- $responses['messages']['0']['contents']['contents'][$i]['hero']['url'] = null;
- $responses['messages']['0']['contents']['contents'][$i]['hero']['size'] = "full";
- $responses['messages']['0']['contents']['contents'][$i]['hero']['aspectRatio'] = "20:13";
- $responses['messages']['0']['contents']['contents'][$i]['hero']['aspectMode'] = "cover";
- //body
- $responses['messages']['0']['contents']['contents'][$i]['body']['type'] = "box";
- $responses['messages']['0']['contents']['contents'][$i]['body']['layout'] = "vertical";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['type'] = "text";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['text'] = SUKSES;
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['wrap'] = true;
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['weight'] = "bold";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['gravity'] = "center";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['size'] = "lg";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['1']['type'] = "text";
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['1']['text'] = "ID: ".$json[$i]['result'][$i]['id']."\n\nUser: ".$json[$i]['result']['user']."\n\nService: ".$json[$i]['result'][$i]['service']."\n\nJumlah: ".$json[$i]['result'][$i]['quantity']."\n\nStatus: ".$json[$i]['result'][$i]['status'];
- $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['1']['wrap'] = true;
- }
- $result = json_encode($responses);
- $result_json = json_decode($result, TRUE);
- $balas = $result_json;
- }
- }
- ///RESULT JSON
- {
- "status": "success",
- "result": [
- {
- "id": "208",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
- "link": "farellyo_davalino",
- "quantity": "2500",
- "status": "Success"
- },
- {
- "id": "207",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
- "link": "farellyo_davalino",
- "quantity": "3000",
- "status": "Partial"
- },
- {
- "id": "181",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
- "link": "gabz_78",
- "quantity": "500",
- "status": "Error"
- },
- {
- "id": "167",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BvOxFg-g7E0/?igshid=1d4ua75k41rdb",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "166",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BvOxeUVAG6y/?igshid=swr4hd2hyt24",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "165",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BvOx1vhgd3t/?igshid=11l0whi2j8giw",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "164",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BvOy9rVgpuo/?igshid=p1q7a9byagbw",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "163",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BvOzHDfAY78/?igshid=189svlw5941f",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "162",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BwCbw8lAJ-B/?igshid=1njelgjkhk1zu",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "161",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/Bw7MZzHAi0I/?igshid=180iz31f2sscn",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "160",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
- "link": "https://www.instagram.com/p/BxByLXag6EL/?igshid=n36ql039p1qe",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "159",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
- "link": "stevanieans_",
- "quantity": "600",
- "status": "Success"
- },
- {
- "id": "146",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
- "link": "gabz_78",
- "quantity": "100",
- "status": "Success"
- },
- {
- "id": "144",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
- "link": "gabz_78",
- "quantity": "1000",
- "status": "Success"
- },
- {
- "id": "143",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 10K] [1 MINUTES FINISH] FASTEST MARKET",
- "link": "gabz_78",
- "quantity": "1000",
- "status": "Partial"
- },
- {
- "id": "128",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
- "link": "gabz_78",
- "quantity": "1000",
- "status": "Success"
- },
- {
- "id": "124",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
- "link": "iqballlzzxx",
- "quantity": "1000",
- "status": "Partial"
- },
- {
- "id": "88",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] [SUPER FAST] S1",
- "link": "https://www.instagram.com/tengkunaufall/p/BwZYC8HlkjI/?utm_source=ig_share_sheet&igshid=1h32fe15xjro4",
- "quantity": "350",
- "status": "Success"
- },
- {
- "id": "70",
- "user": "txgabz",
- "service": "Instagram Followers Indonesia [ PROMO ] EKSKLUSIF",
- "link": "gabz_78",
- "quantity": "1000",
- "status": "Success"
- },
- {
- "id": "69",
- "user": "txgabz",
- "service": "Instagram Followers Indonesia [ PROMO ] EKSKLUSIF",
- "link": "accountdefender",
- "quantity": "1000",
- "status": "Success"
- },
- {
- "id": "68",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
- "link": "accountdefender",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "66",
- "user": "txgabz",
- "service": " Instagram Views - [ Max - 2.5M] [ Superfast ] SUPER INSTANT",
- "link": "https://www.instagram.com/tengkunaufall/p/BwZYC8HlkjI/?utm_source=ig_share_sheet&igshid=147m08bqk4t9l",
- "quantity": "700",
- "status": "Success"
- },
- {
- "id": "57",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [REAL] [SUPER FAST] S1",
- "link": "https://www.instagram.com/tengkunaufall/p/BwRzeRMl4rN/?utm_source=ig_share_sheet&igshid=136arbmir8z34",
- "quantity": "200",
- "status": "Success"
- },
- {
- "id": "54",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 8K] SUPER FAST S1",
- "link": "https://www.instagram.com/tengkunaufall/p/BwRzeRMl4rN/?utm_source=ig_share_sheet&igshid=136arbmir8z34",
- "quantity": "200",
- "status": "Partial"
- },
- {
- "id": "17",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
- "link": "gabz_78",
- "quantity": "100",
- "status": "Success"
- },
- {
- "id": "11",
- "user": "txgabz",
- "service": "Instagram Likes [MAX 5K] [1 MINUTES FINISH] FASTEST S1",
- "link": "https://www.instagram.com/tengkunaufall/p/BvtmrCOFvGR/?utm_source=ig_share_sheet&igshid=inpzh9ao03n8",
- "quantity": "300",
- "status": "Success"
- },
- {
- "id": "10",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 10K] INSTANT ALWAYS",
- "link": "accountdefender",
- "quantity": "100",
- "status": "Error"
- },
- {
- "id": "9",
- "user": "txgabz",
- "service": "Instagram TV Views [MAX 1M]",
- "link": "https://www.instagram.com/p/BpeP6w_g5o1/?utm_source=ig_share_sheet&igshid=1vnga7ywixif0",
- "quantity": "1000",
- "status": "Success"
- },
- {
- "id": "5",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
- "link": "nenek.ak47",
- "quantity": "100",
- "status": "Success"
- },
- {
- "id": "1",
- "user": "txgabz",
- "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
- "link": "accountdefender",
- "quantity": "500",
- "status": "Success"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement