true, CURLOPT_POSTFIELDS => http_build_query($params), CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_SSL_VERIFYPEER => true, ]); $response = curl_exec($ch); $error = curl_error($ch); curl_close($ch); if ($error) { return ['error' => 'cURL error: ' . $error]; } return json_decode($response, true) ?: ['error' => 'Invalid response']; } /* ------------------------------------------------------------ * 1. SERVICE LIST * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'services', ]); print_r($result); /* ------------------------------------------------------------ * 2. PLACE NEW ORDER * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'add', 'service' => 1, // Service ID (from service list) 'link' => 'https://www.instagram.com/username', // Page link 'quantity' => 100, // Quantity to deliver // 'runs' => 10, // Optional (dripfeed runs) // 'interval' => 30, // Optional (minutes between runs) ]); print_r($result); /* ------------------------------------------------------------ * 3. ORDER STATUS * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'status', 'order' => 1242, // Order ID ]); print_r($result); /* ------------------------------------------------------------ * 4. ORDER REFILL * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'refill', 'order' => 1242, // Order ID ]); print_r($result); /* ------------------------------------------------------------ * 5. REFILL STATUS * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'refill_status', 'refill' => 12345, // Refill ID ]); print_r($result); /* ------------------------------------------------------------ * 6. ACCOUNT BALANCE * ---------------------------------------------------------- */ $result = apiRequest([ 'key' => API_KEY, 'action' => 'balance', ]); print_r($result);