// Входные данные
$url = "https://data.tronk.info/reportrequestframe.ashx";
$request_params = array(
"key" => "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode" => "setqueue",
"frame" => "XXXXXXXXX"
);
$get_params = http_build_query($request_params);
// Запрос к серверу
$response = file_get_contents($url."?".$get_params);
// Преобразование ответа
$result = json_decode($response);
import requests
url = "https://data.tronk.info/reportrequestframe.ashx"
# входные данные
params = {
"key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode": "setqueue",
"frame": "XXXXXXXXX",
}
# отправка запроса
response = requests.post(
url=url,
params=params,
)
# преобразование ответа к словарю
data = response.json()
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
string end_point = "https://data.tronk.info/reportrequestframe.ashx";
Dictionary< string, string > dict_params = new()
{
{ "key", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" },
{ "mode", "setqueue" },
{ "frame", "XXXXXXXXX" },
};
string url_params = string.Join("&", dict_params.Select(kvp => $"{kvp.Key}={kvp.Value}"));
string url = $"{end_point}?{url_params}";
HttpClient client = new();
string response_body = await client.GetAsync(url).Result.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject(response_body);
}
}
// Входные данные
$url = "https://data.tronk.info/reportrequestframe.ashx";
$request_params = array(
"key" => "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode" => "checkqueue",
"id" => 123456789
);
$get_params = http_build_query($request_params);
// Запрос к серверу
$response = file_get_contents($url."?".$get_params);
// Преобразование ответа
$result = json_decode($response);
import requests
url = "https://data.tronk.info/reportrequestframe.ashx"
# входные данные
params = {
"key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode": "checkqueue",
"id": 123456789,
}
# отправка запроса
response = requests.post(
url=url,
params=params,
)
# преобразование ответа к словарю
data = response.json()
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
string end_point = "https://data.tronk.info/reportrequestframe.ashx";
Dictionary< string, string > dict_params = new()
{
{ "key", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" },
{ "mode", "checkqueue" },
{ "id", 123456789 },
};
string url_params = string.Join("&", dict_params.Select(kvp => $"{kvp.Key}={kvp.Value}"));
string url = $"{end_point}?{url_params}";
HttpClient client = new();
string response_body = await client.GetAsync(url).Result.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject(response_body);
}
}
// Входные данные
$url = "https://data.tronk.info/reportrequestframe.ashx";
$request_params = array(
"key" => "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode" => "getresult",
"id" => 123456789
);
$get_params = http_build_query($request_params);
// Запрос к серверу
$response = file_get_contents($url."?".$get_params);
// Преобразование ответа
$result = json_decode($response);
import requests
url = "https://data.tronk.info/reportrequestframe.ashx"
# входные данные
params = {
"key": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"mode": "getresult",
"id": 123456789,
}
# отправка запроса
response = requests.post(
url=url,
params=params,
)
# преобразование ответа к словарю
data = response.json()
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
string end_point = "https://data.tronk.info/reportrequestframe.ashx";
Dictionary< string, string > dict_params = new()
{
{ "key", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" },
{ "mode", "getresult" },
{ "id", 123456789 },
};
string url_params = string.Join("&", dict_params.Select(kvp => $"{kvp.Key}={kvp.Value}"));
string url = $"{end_point}?{url_params}";
HttpClient client = new();
string response_body = await client.GetAsync(url).Result.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject(response_body);
}
}