Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
--url https://appdomain/dcapi/tools/remoteControl/screenRecording \
--header 'Accept: application/scrRecSettingsStatus.v1+json' \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/scrRecSettingsInfo.v1+json' \
--data '{"recErrAction":1,"isNotifyUserEnabled":1,"notifyMessage":"This session is being recorded.","isScreenRecEnabled":1,"framesPerSec":15,"recMaintainsSize":500,"codecType":1,"driveFreeSpace":1,"colorQuality":2,"isAuthVideoDownload":0}'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/dcapi/tools/remoteControl/screenRecording"))
.header("Content-Type", "application/scrRecSettingsInfo.v1+json")
.header("Accept", "application/scrRecSettingsStatus.v1+json")
.header("Authorization", " d92d4xxxxxxxxxxxxx15f52")
.method("PUT", HttpRequest.BodyPublishers.ofString("{\"recErrAction\":1,\"isNotifyUserEnabled\":1,\"notifyMessage\":\"This session is being recorded.\",\"isScreenRecEnabled\":1,\"framesPerSec\":15,\"recMaintainsSize\":500,\"codecType\":1,\"driveFreeSpace\":1,\"colorQuality\":2,\"isAuthVideoDownload\":0}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
payload = "{\"recErrAction\":1,\"isNotifyUserEnabled\":1,\"notifyMessage\":\"This session is being recorded.\",\"isScreenRecEnabled\":1,\"framesPerSec\":15,\"recMaintainsSize\":500,\"codecType\":1,\"driveFreeSpace\":1,\"colorQuality\":2,\"isAuthVideoDownload\":0}"
headers = {
'Content-Type': "application/scrRecSettingsInfo.v1+json",
'Accept': "application/scrRecSettingsStatus.v1+json",
'Authorization': " d92d4xxxxxxxxxxxxx15f52"
}
conn.request("PUT", "/dcapi/tools/remoteControl/screenRecording", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Accept", "application/scrRecSettingsStatus.v1+json");
headersMap.put("Content-Type", "application/scrRecSettingsInfo.v1+json");
data=Map();
data.put("recErrAction","value");
data.put("isNotifyUserEnabled","value");
data.put("notifyMessage","value");
data.put("isScreenRecEnabled","value");
data.put("isAuthVideoDownload","value");
data.put("framesPerSec","value");
data.put("recMaintainsSize","1");
data.put("codecType","value");
data.put("driveFreeSpace","value");
data.put("colorQuality","value");
response = invokeUrl
[
url: "https://appDomain/dcapi/tools/remoteControl/screenRecording"
type: PUT
headers: headersMap
body: data
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("Content-Type", "application/scrRecSettingsInfo.v1+json")
$headers.Add("Accept", "application/scrRecSettingsStatus.v1+json")
$headers.Add("Authorization", " d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/dcapi/tools/remoteControl/screenRecording' -Method PUT -Headers $headers -ContentType 'application/scrRecSettingsInfo.v1+json' -Body '{"recErrAction":1,"isNotifyUserEnabled":1,"notifyMessage":"This session is being recorded.","isScreenRecEnabled":1,"framesPerSec":15,"recMaintainsSize":500,"codecType":1,"driveFreeSpace":1,"colorQuality":2,"isAuthVideoDownload":0}' {
"recErrAction": 1,
"isNotifyUserEnabled": 1,
"notifyMessage": "This session is being recorded.",
"isScreenRecEnabled": 1,
"framesPerSec": 15,
"recMaintainsSize": 500,
"codecType": 1,
"driveFreeSpace": 1,
"colorQuality": 2,
"isAuthVideoDownload": 0
}
▼ Show full