Order

[POST] https://www.tupay.my.id/api/order

Type
Parameter Value
api_id Your API ID, (Settings).
api_key Your API Key, (Settings).
secret_key Your Secret Key, (Settings).
service Service ID, (Service List).
target berisi data tujuan
quantity Needed quantity
comments Comments list separated by \r\n or \n
usernames Usernames list separated by \r\n or \n
usernames Usernames list separated by \r\n or \n
hashtag Hashtag to scrape usernames from
username URL to scrape followers from
comments Comments list separated by \r\n or \n
username Username of the comment owner
answer_number Answer number of the poll
username Username of the comment owner
comments Comments list separated by \r\n or \n

Respon Sukses


                
{
  "response": true, // true = success, false = fail
  "data": {
      "id": 1119, // order id
      "price": 2500, // total price
   }
}
                
              

Respon Gagal


                
{
  "response": false, // true = success, false = fail
  "data": {
      "msg": "Invalid Request" // message fail
  }
}
                
              

Cek Status

[POST] https://www.tupay.my.id/api/status

Parameter Value
api_id Your API ID, (Settings).
api_key Your API Key, (Settings).
secret_key Your Secret Key, (Settings).
id ID pesanan

Respon Sukses


                  
{
  "response": true, // true = success, false = fail
  "data": {
      "id": 123, // order id
      "price": 2500, // total price
      "status": "Success", // order status
      "start_count": 123, // start count
      "remains": 0 // remains
  }
}
                  
                

Respon Gagal


                  
{
  "response": false, // true = success, false = fail
  "data": {
      "msg": "Invalid Request" // message fail
  }
}
                  
                

Get Service

[POST] https://www.tupay.my.id/api/services

Parameter Value
api_id Your API ID, (Settings).
api_key Your API Key, (Settings).
secret_key Your Secret Key, (Settings).
category_id (Opsional) Filter Category ID

Respon Sukses


          
{
  "response": true, // true = success, false = fail
  "data": [
    {
      "id": 1, // service id
      "type": "Default", // service type
      "category_id": 1, // category id
      "category": "Instagram Followers", // category name
      "service_name": "Instagram Followers 123", // service name
      "price": 5000, // price
      "min": 100, // min quantity
      "max": 200000, // max quantity
      "refill": true, // refill (true / false)
      "masa_refill": 30, // refill day
      "description": "Refill 30 days - INSTANT", // service description
      "average_time": "22 menit, 34 detik" // average time
    },
    {
      "id": 2, // service id
      "type": "Package", // service type
      "category_id": 2, // category id
      "category": "Instagram Package", // category name
      "service_name": "100 Instagram Followers Indonesia", // service name
      "price": 12000, // price
      "min": 1, // min quantity
      "max": 1, // max quantity
      "refill": false, // refill (true / false)
      "masa_refill": 0, // refill day
      "description": "Refill 30 days - INSTANT", // service description
      "average_time": "50 menit, 44 detik" // average time
    },
    {
      "id": 3, // service id
      "type": "Custom Comments", // service type
      "category_id": 3, // category id
      "category": "Instagram Comments", // category name
      "service_name": "Instagram Custom Comments 123", // service name
      "price": 10000, // price
      "min": 3, // min quantity
      "max": 1000000, // max quantity
      "refill": false, // refill (true / false)
      "masa_refill": 0, // refill day
      "description": "No Refill - INSTANT", // service description
      "average_time": "1 jam, 22 menit, 34 detik" // average time
    }
  ]
}

          
        

Respon Gagal


          
{
  "response": false, // true = success, false = fail
  "data": {
    "msg": "Invalid Request" //
  }
}

          
        

PHP class


          
<?php

class yohannet {

  public $api_url = 'https://tupay.my.id/api/'; // API URL

  public $api_id = ''; // Your API ID

  public $api_key = ''; // Your API key

  public $secret_key = ''; // Your Secret key

  public function profile() {
    // get profile
    return json_decode($this->connect('profile', array(
      'api_id' => $this->api_id,
      'api_key' => $this->api_key,
      'secret_key' => $this->secret_key
    )), true);
  }

  public function services() {
    // get services
    return json_decode($this->connect('services', array(
      'api_id' => $this->api_id,
      'api_key' => $this->api_key,
      'secret_key' => $this->secret_key,
    )), true);
  }

  public function order($data) {
    // create order
    $post = array_merge(array('api_id' => $this->api_id, 'api_key' => $this->api_key, 'secret_key' => $this->secret_key), $data);
    return json_decode($this->connect('order', $post), true);
  }

  public function status($order_id) {
    // check order status
    return json_decode($this->connect('status', array(
      'api_id' => $this->api_id,
      'api_key' => $this->api_key,
      'secret_key' => $this->secret_key,
      'id' => $order_id
    )), true);
  }

  public function refill($order_id) {
    // create refill
    return json_decode($this->connect('refill', array(
      'api_id' => $this->api_id,
      'api_key' => $this->api_key,
      'secret_key' => $this->secret_key,
      'id' => $order_id
    )), true);
  }

  public function refill_status($refill_id) {
    // check refill status
    return json_decode($this->connect('refill_status', array(
      'api_id' => $this->api_id,
      'api_key' => $this->api_key,
      'secret_key' => $this->secret_key,
      'id' => $refill_id
    )), true);
  }

  private function connect($endpoint, $post) {
    $_post = Array();
    if (is_array($post)) {
      foreach ($post as $name => $value) {
        $_post[] = $name.'='.urlencode($value);
      }
    }
    $ch = curl_init($this->api_url . $endpoint);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    if (is_array($post)) {
      curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
    }
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
    $result = curl_exec($ch);
    if (curl_errno($ch) != 0 && empty($result)) {
      $result = false;
    }
    curl_close($ch);
    return $result;
  }
}

$api = new yohannet();

# Profile #
$profile = $api->profile(); # return user profile

# Services #
$services = $api->services(); # return all services

# Create Order #
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 100)); # Default
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test')); # Package
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'comments' => "yohannet\ndeveloper\n")); # Custom Comments
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 100, 'usernames' => "yohannet\ndeveloper\n")); # Mentions
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'usernames' => "yohannet\ndeveloper\n")); # Mentions Custom List
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 100, 'hashtag' => 'yohannet')); # Mentions Hashtag
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 1000, 'username' => 'yohannet')); # Mentions User Followers
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'comments' => "yohannet\ndeveloper\n")); # Custom Comments Package
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 100, 'username' => 'yohannet')); # Comment Likes
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'quantity' => 100, 'answer_number' => '23')); # Poll
$order = $api->order(array('service' => 1, 'target' => 'http://example.com/test', 'username' => 'yohannet', 'comments' => "yohannet\ndeveloper\n")); # Comment Replies

# Check Order Status #
$status = $api->status($order['data']['id']); # return order id, price, status, start count, remains

# Create Refill #
$refill = $api->refill($order['data']['id']); # return refill id, order id

# Check Refill Status #
$refill_status = $api->refill_status($refill['data']['refill_id']); # return refill id, order id, status
          
        
Settings
  • Theme Mode

    Choose light or dark mode or Auto

  • Theme Contrast

    Choose theme contrast

  • Sidebar Caption

    Sidebar Caption Hide/Show

  • Custom Theme

    Choose your Primary color