Hello,
I'm attempting to control another device through a REST API using Dashboard. I must obtain a authentication token from the device before being able to send any other commands by issuing a login command.
Here is the response from the device after a login command.
<?xml version="1.0" encoding="UTF-8"?><api_response><version>10</version><timestamp>2022-11-07 12:13:46</timestamp><success>1</success><token>somelongauthtokenstringhere12345</token></api_response>I have this portion working in dashboard already and am working on the callback function to parse/extract the token and stick it in an object or possibly parameter to recall later. Essentially I am trying to just extract the data in the <token> tag, and I'm unsure of the syntax to use to do it.
Any help would be appreciated.
Thanks
------------------------------
Ryan McCarthy
Broadcast Engineer
UnitedHealth Group
------------------------------