Getting One Piece of Information
You can get one piece of D-Client Settings information.
Request Interface
HTTP Request
GET /dclient/definition/{dclientUuid}
Parameter
Path Parameter |
Value |
Required |
Description |
Default Value |
---|---|---|---|---|
dclientUuid |
string |
true |
ID of the D-Client to get.(32 alphanumeric character). |
- |
Response Interface
If the request is processed successfully, the following response is returned in JSON format.
{ "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "dclientId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "connectionId": "xxxxxxxxxxxxxxxx", "account": { "id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "mailAddress":"sample@example.com" }, "memo": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "useable": true, "clientVersion": "1,0,0", "connectionStatus": "online" }
Property Name |
Value |
Description |
---|---|---|
id |
string |
D-Client UUID (UUID) |
dclientId |
string |
D-Client ID |
connectionId | string | Connection ID |
account | object | Accounts that is assigned to the D-Client settings. |
memo | string | Note (Character string) |
useable | boolean | Availability (true/false) |
clientVersion | string | Client version (Version information in x.y.z. format) |
connectionStatus | string | Connection status (online/offline) |
Examples
public static void main(String[] args) { String host = "https://www.webconnect.hulft.com"; String apiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; String dclientUuid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; try { URL url = new URL(host + "/api/v2/dclient/definition/" + dclientUuid); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Authorization", "Bearer " + apiKey); try (BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) { String line; while((line = reader.readLine()) != null) { System.out.println(line); } } } catch (IOException ex) { // error } }
// load jquery var host = 'https://www.webconnect.hulft.com'; var apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; var dclientUuid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $.ajax({ type: 'GET', url: host + '/api/v2/dclient/definition/' + dclientUuid, headers: { Authorization: 'Bearer ' + apiKey } }).done(function(data, status, xhr) { console.log(data); }).fail(function(data, status, xhr) { console.log(data); });