Advertisement
Guest User

Untitled

a guest
May 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.38 KB | None | 0 0
  1. ///STATEMENT
  2.     if($message['type'] == 'text'){
  3.         if(strtolower($command) == "/mystatus"){
  4.          $execute = status($key);
  5.          $json = json_decode($execute, TRUE);
  6.            
  7.          $count = count($json['result']);
  8.          if($count > 10){
  9.           $count = 10;
  10.          }
  11.             for($i=0; $i < $count; $i++){
  12.                 $responses['replyToken'] = $replyToken;
  13.                 $responses['messages']['0']['type'] = "flex";
  14.                 $responses['messages']['0']['altText'] = "Status Pesanan Anda";
  15.                 $responses['messages']['0']['contents']['type'] = "carousel";
  16.                 $responses['messages']['0']['contents']['contents'][$i]['type'] = "bubble";
  17.                 //hero
  18.                 $responses['messages']['0']['contents']['contents'][$i]['hero']['type'] = "image";
  19.                 $responses['messages']['0']['contents']['contents'][$i]['hero']['url'] = null;
  20.                 $responses['messages']['0']['contents']['contents'][$i]['hero']['size'] = "full";
  21.                 $responses['messages']['0']['contents']['contents'][$i]['hero']['aspectRatio'] = "20:13";
  22.                 $responses['messages']['0']['contents']['contents'][$i]['hero']['aspectMode'] = "cover";
  23.                 //body
  24.                 $responses['messages']['0']['contents']['contents'][$i]['body']['type'] = "box";
  25.                 $responses['messages']['0']['contents']['contents'][$i]['body']['layout'] = "vertical";
  26.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['type'] = "text";
  27.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['text'] = SUKSES;
  28.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['wrap'] = true;
  29.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['weight'] = "bold";
  30.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['gravity'] = "center";
  31.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['0']['size'] = "lg";
  32.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['1']['type'] = "text";
  33.                 $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'];
  34.                 $responses['messages']['0']['contents']['contents'][$i]['body']['contents']['1']['wrap'] = true;  
  35.             }
  36.            
  37.             $result = json_encode($responses);
  38.             $result_json = json_decode($result, TRUE);
  39.             $balas = $result_json;
  40.         }
  41.     }
  42.  
  43. ///RESULT JSON
  44. {
  45.     "status": "success",
  46.     "result": [
  47.         {
  48.             "id": "208",
  49.             "user": "txgabz",
  50.             "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
  51.             "link": "farellyo_davalino",
  52.             "quantity": "2500",
  53.             "status": "Success"
  54.         },
  55.         {
  56.             "id": "207",
  57.             "user": "txgabz",
  58.             "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
  59.             "link": "farellyo_davalino",
  60.             "quantity": "3000",
  61.             "status": "Partial"
  62.         },
  63.         {
  64.             "id": "181",
  65.             "user": "txgabz",
  66.             "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
  67.             "link": "gabz_78",
  68.             "quantity": "500",
  69.             "status": "Error"
  70.         },
  71.         {
  72.             "id": "167",
  73.             "user": "txgabz",
  74.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  75.             "link": "https://www.instagram.com/p/BvOxFg-g7E0/?igshid=1d4ua75k41rdb",
  76.             "quantity": "200",
  77.             "status": "Success"
  78.         },
  79.         {
  80.             "id": "166",
  81.             "user": "txgabz",
  82.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  83.             "link": "https://www.instagram.com/p/BvOxeUVAG6y/?igshid=swr4hd2hyt24",
  84.             "quantity": "200",
  85.             "status": "Success"
  86.         },
  87.         {
  88.             "id": "165",
  89.             "user": "txgabz",
  90.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  91.             "link": "https://www.instagram.com/p/BvOx1vhgd3t/?igshid=11l0whi2j8giw",
  92.             "quantity": "200",
  93.             "status": "Success"
  94.         },
  95.         {
  96.             "id": "164",
  97.             "user": "txgabz",
  98.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  99.             "link": "https://www.instagram.com/p/BvOy9rVgpuo/?igshid=p1q7a9byagbw",
  100.             "quantity": "200",
  101.             "status": "Success"
  102.         },
  103.         {
  104.             "id": "163",
  105.             "user": "txgabz",
  106.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  107.             "link": "https://www.instagram.com/p/BvOzHDfAY78/?igshid=189svlw5941f",
  108.             "quantity": "200",
  109.             "status": "Success"
  110.         },
  111.         {
  112.             "id": "162",
  113.             "user": "txgabz",
  114.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  115.             "link": "https://www.instagram.com/p/BwCbw8lAJ-B/?igshid=1njelgjkhk1zu",
  116.             "quantity": "200",
  117.             "status": "Success"
  118.         },
  119.         {
  120.             "id": "161",
  121.             "user": "txgabz",
  122.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  123.             "link": "https://www.instagram.com/p/Bw7MZzHAi0I/?igshid=180iz31f2sscn",
  124.             "quantity": "200",
  125.             "status": "Success"
  126.         },
  127.         {
  128.             "id": "160",
  129.             "user": "txgabz",
  130.             "service": "Instagram Likes [MAX 5K] [REAL] SUPER HIGH SPEED",
  131.             "link": "https://www.instagram.com/p/BxByLXag6EL/?igshid=n36ql039p1qe",
  132.             "quantity": "200",
  133.             "status": "Success"
  134.         },
  135.         {
  136.             "id": "159",
  137.             "user": "txgabz",
  138.             "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
  139.             "link": "stevanieans_",
  140.             "quantity": "600",
  141.             "status": "Success"
  142.         },
  143.         {
  144.             "id": "146",
  145.             "user": "txgabz",
  146.             "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
  147.             "link": "gabz_78",
  148.             "quantity": "100",
  149.             "status": "Success"
  150.         },
  151.         {
  152.             "id": "144",
  153.             "user": "txgabz",
  154.             "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
  155.             "link": "gabz_78",
  156.             "quantity": "1000",
  157.             "status": "Success"
  158.         },
  159.         {
  160.             "id": "143",
  161.             "user": "txgabz",
  162.             "service": "Instagram Followers [MAX 10K] [1 MINUTES FINISH] FASTEST MARKET",
  163.             "link": "gabz_78",
  164.             "quantity": "1000",
  165.             "status": "Partial"
  166.         },
  167.         {
  168.             "id": "128",
  169.             "user": "txgabz",
  170.             "service": "Instagram Followers [MAX 10K] [10 SECOND FINISH] FASTEST MARKET",
  171.             "link": "gabz_78",
  172.             "quantity": "1000",
  173.             "status": "Success"
  174.         },
  175.         {
  176.             "id": "124",
  177.             "user": "txgabz",
  178.             "service": "Instagram Followers [MAX 40K] [SUPER FAST] [1 HOURS]",
  179.             "link": "iqballlzzxx",
  180.             "quantity": "1000",
  181.             "status": "Partial"
  182.         },
  183.         {
  184.             "id": "88",
  185.             "user": "txgabz",
  186.             "service": "Instagram Likes [MAX 5K] [REAL] [SUPER FAST] S1",
  187.             "link": "https://www.instagram.com/tengkunaufall/p/BwZYC8HlkjI/?utm_source=ig_share_sheet&igshid=1h32fe15xjro4",
  188.             "quantity": "350",
  189.             "status": "Success"
  190.         },
  191.         {
  192.             "id": "70",
  193.             "user": "txgabz",
  194.             "service": "Instagram Followers Indonesia [ PROMO ] EKSKLUSIF",
  195.             "link": "gabz_78",
  196.             "quantity": "1000",
  197.             "status": "Success"
  198.         },
  199.         {
  200.             "id": "69",
  201.             "user": "txgabz",
  202.             "service": "Instagram Followers Indonesia [ PROMO ] EKSKLUSIF",
  203.             "link": "accountdefender",
  204.             "quantity": "1000",
  205.             "status": "Success"
  206.         },
  207.         {
  208.             "id": "68",
  209.             "user": "txgabz",
  210.             "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
  211.             "link": "accountdefender",
  212.             "quantity": "200",
  213.             "status": "Success"
  214.         },
  215.         {
  216.             "id": "66",
  217.             "user": "txgabz",
  218.             "service": " Instagram Views - [ Max - 2.5M] [ Superfast ] SUPER INSTANT",
  219.             "link": "https://www.instagram.com/tengkunaufall/p/BwZYC8HlkjI/?utm_source=ig_share_sheet&igshid=147m08bqk4t9l",
  220.             "quantity": "700",
  221.             "status": "Success"
  222.         },
  223.         {
  224.             "id": "57",
  225.             "user": "txgabz",
  226.             "service": "Instagram Likes [MAX 5K] [REAL] [SUPER FAST] S1",
  227.             "link": "https://www.instagram.com/tengkunaufall/p/BwRzeRMl4rN/?utm_source=ig_share_sheet&igshid=136arbmir8z34",
  228.             "quantity": "200",
  229.             "status": "Success"
  230.         },
  231.         {
  232.             "id": "54",
  233.             "user": "txgabz",
  234.             "service": "Instagram Likes [MAX 8K] SUPER FAST S1",
  235.             "link": "https://www.instagram.com/tengkunaufall/p/BwRzeRMl4rN/?utm_source=ig_share_sheet&igshid=136arbmir8z34",
  236.             "quantity": "200",
  237.             "status": "Partial"
  238.         },
  239.         {
  240.             "id": "17",
  241.             "user": "txgabz",
  242.             "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
  243.             "link": "gabz_78",
  244.             "quantity": "100",
  245.             "status": "Success"
  246.         },
  247.         {
  248.             "id": "11",
  249.             "user": "txgabz",
  250.             "service": "Instagram Likes [MAX 5K] [1 MINUTES FINISH] FASTEST S1",
  251.             "link": "https://www.instagram.com/tengkunaufall/p/BvtmrCOFvGR/?utm_source=ig_share_sheet&igshid=inpzh9ao03n8",
  252.             "quantity": "300",
  253.             "status": "Success"
  254.         },
  255.         {
  256.             "id": "10",
  257.             "user": "txgabz",
  258.             "service": "Instagram Followers [MAX 10K] INSTANT ALWAYS",
  259.             "link": "accountdefender",
  260.             "quantity": "100",
  261.             "status": "Error"
  262.         },
  263.         {
  264.             "id": "9",
  265.             "user": "txgabz",
  266.             "service": "Instagram TV Views [MAX 1M]",
  267.             "link": "https://www.instagram.com/p/BpeP6w_g5o1/?utm_source=ig_share_sheet&igshid=1vnga7ywixif0",
  268.             "quantity": "1000",
  269.             "status": "Success"
  270.         },
  271.         {
  272.             "id": "5",
  273.             "user": "txgabz",
  274.             "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
  275.             "link": "nenek.ak47",
  276.             "quantity": "100",
  277.             "status": "Success"
  278.         },
  279.         {
  280.             "id": "1",
  281.             "user": "txgabz",
  282.             "service": "Instagram Followers [MAX 3K] [SUPER FAST]",
  283.             "link": "accountdefender",
  284.             "quantity": "500",
  285.             "status": "Success"
  286.         }
  287.     ]
  288. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement