Many thanks for the link, but I guess I did not frame my question properly. My bad.
"I want to automate Samsung Smart TV Q60 (Series 55) through a home automation platform, i.e., want to use power on/off and all the options available on the remote by using the ASCII commands.
I have the commands to replicate the remote control options, and can transmit these commands(using APIs) through a web-socket connection with TV using a raspberry PI having Linux OS. But it seems ’ I need to have an access token in order to have an authentication with the TV while creating connection or to send commands.
Now, I don’t find any web help regarding how to obtain the access token through an API call and combine the access token with other remote control commands to automate the TV. "
Any help would be great.
Sorry for the long read.