POST
services
#
Returns a list of available services for creating orders.
Parameters
Only the key and the action.
Answer
-
serviceintService identifier
-
namestringService name
-
categorystringCategory
-
typestringService type
-
rateintPrice in rubles per 1000 executions
-
minintMinimum quantity
-
maxintMaximum quantity
Request
curl -X POST https://unutasks.com/api/v2 \ -d 'key=YOUR_API_KEY' \ -d 'action=services'
$ch = curl_init('https://unutasks.com/api/v2'); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => [ 'key' => 'YOUR_API_KEY', 'action' => 'services', ], ]); $answer = json_decode(curl_exec($ch), true);
import requests answer = requests.post('https://unutasks.com/api/v2', data={ 'key': 'YOUR_API_KEY', 'action': 'services', }).json()
Answer
[
{
"service": 100,
"name": "MAX Subscribers",
"category": "MAX",
"rate": 1600,
"min": 10,
"max": 5000,
"type": "subscribe"
},
{
"service": 101,
"name": "MAX Reactions",
"category": "MAX",
"rate": 1000,
"min": 10,
"max": 1000,
"type": "like"
}
]