I own a Samsung M7 Smart Monitor. I can operate it correctly when I use the samsungvd.appControl process in the commands section of the device on the smartthings advanced page. But when I try to make this request outside of this page, I get a 403 Forbidden error. I think the authentication is working properly. If I remove the Bearer Token definition from the header section, I get a 401 Unauthorized error.
As I try to explain in the examples below, I can run different commands such as samsungvd.remoteControl.
What I want to do is open the YouTube application with a certain video. Sample requests are as follows.
Request Form:
SmartThings Advanced Web Page Api URL: https://my.smartthings.com/advanced/cupcake-api/api/devices/526248d5-xxxx-xxxx-xxxx-xxxxxxxxxxxx/commands
// Request samsungvd.remoteControl:
{"commands":[{"component":"main","capability":"samsungvd.remoteControl","command":"send","arguments":["OK","PRESS_AND_RELEASED"]}]}
// Response samsungvd.remoteControl:
200 OK - {"results":[{"id":"4376d5e3-1d54-4ebb-bdde-ba44d48773c5","status":"COMPLETED"}]}
// Request samsungvd.appControl:
{"commands":[{"component":"main","capability":"samsungvd.appControl","command":"launch","arguments":["111299001912",{"PAYLOAD":"v=nI0RnXGH3-c"},{"requester":"","launchFailAction":"none"}]}]}
// Response samsungvd.appControl:
200 OK - {"results":[{"id":"9bef263f-7517-4bb4-b242-a1b78afd5aaa","status":"COMPLETED"}]}
SmartThings Api URL: https://api.smartthings.com/v1/devices/526248d5-xxxx-xxxx-xxxx-xxxxxxxxxxxx/commands
//Request samsungvd.remoteControl:
{"commands":[{"component":"main","capability":"samsungvd.remoteControl","command":"send","arguments":["OK","PRESS_AND_RELEASED"]}]}
//Response samsungvd.remoteControl:
200 OK - {"results":[{"id":"08c118d9-f77f-435d-8a13-dbb2efe4b405","status":"COMPLETED"}]}
// Request samsungvd.appControl:
{"commands":[{"component":"main","capability":"samsungvd.appControl","command":"launch","arguments":["111299001912",{"PAYLOAD":"v=nI0RnXGH3-c"},{"requester":"","launchFailAction":"none"}]}]}
// Response samsungvd.appControl:
403 Forbidden - Null
Can you help me solve this problem?