To scale your social media agency or reseller website toward the milestone of ₹1,00,000 per day in gross sales, manual order placement is out of the question. You need an automated software bridge that receives customer orders on your website and dispatches them straight into Tier-1 fulfillment servers in real time.
In this developer tutorial, we provide complete, copy-paste ready code examples in PHP, Python, and Node.js to connect your application to RUBOTOVH's REST API v2.
1. API Architecture Overview
RUBOTOVH exposes a high-throughput REST API endpoint at:
All requests must include your secure API key retrieved from /api-docs.
2. Code Implementation: Placing an Order
A. PHP (cURL)
<?php
$apiKey = "YOUR_ROBOTOVH_API_KEY";
$apiEndpoint = "https://rubotovh.in/api/v2";
$postData = [
'key' => $apiKey,
'action' => 'add',
'service' => 1204, // Service ID from /services
'link' => 'https://instagram.com/myusername',
'quantity' => 1000
];
$ch = curl_init($apiEndpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postData));
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
echo "Order Created Successfully. Order ID: " . $result['order'];
?>
B. Python (requests)
import requests
API_KEY = "YOUR_ROBOTOVH_API_KEY"
ENDPOINT = "https://rubotovh.in/api/v2"
payload = {
"key": API_KEY,
"action": "add",
"service": 1204,
"link": "https://instagram.com/myusername",
"quantity": 1000
}
response = requests.post(ENDPOINT, data=payload)
data = response.json()
print(f"Order Placed! Order ID: {data.get('order')}")
C. Node.js (axios)
const axios = require('axios');
async function placeOrder() {
const params = new URLSearchParams();
params.append('key', 'YOUR_ROBOTOVH_API_KEY');
params.append('action', 'add');
params.append('service', '1204');
params.append('link', 'https://instagram.com/myusername');
params.append('quantity', '1000');
const res = await axios.post('https://rubotovh.in/api/v2', params);
console.log('Order Placed! ID:', res.data.order);
}
placeOrder();
Start Automating Your SMM Business Today
Get your free API key, test our endpoints, and connect your child panel to RUBOTOVH.
Access Full API Docs Get API Key
Community Comments 0
No comments yet. Be the first to share your insights on this article!
Join the Discussion
Please log in to your RobotOVH account to participate in the conversation and submit a comment.