GetConfigsJSON
Retrieve the full SDK configuration as a JSON string.
char* GetConfigsJSON()
Parameters
none
Return Value
char*: JSON string containing all proxy configurations (must be freed with FreeBuf).
JSON Structure Example:
// JSON Structure
{
"proxy_id": "677e2c4517f247bc89dd66a4",
"plan": "1",
"country_code": "HK",
"address": "127.0.0.1:60000",
"binding_type": "ip",
"Index": 60000,
"client_country_code": "US",
"is_online": true,
"city": "Honkong",
"public_ip": "1.2.3.4",
"origin_id": "677e2c4537f244bc29dd66a2",
"server_id": "6775221517f231bc29df2624",
"last_refresh": 1692705600,
"count_refresh": 12,
"prepare_start_date": 1692600000,
"manual": false,
"action_type": 1,
"streams": 5,
"bw": {
"id": "677e1c4517f227a229de67c5",
"bw_up": 2048000,
"bw_down": 10485760,
"session_time": 3600,
"bytes_write": 5242880,
"bytes_read": 7340032
}
}
Example
// example
char* j = GetConfigsJSON(); if (j){ puts(j); FreeBuf(j);}
Last updated
Was this helpful?