A-Eye
1
We would like to access a particular port through the API using device ID.
For example, we would like to access port 3000 on a device with ID: XYZ. Can you please share the corresponding API.
Our use case relates to streaming a live RTSP video from a particular port on the device to the web application.
Thank you!
Hi A-Eye
The REST API’s are documented as swagger doc, accessible at
To login, follow the directions in this post
Specifically to access a particular port (say port 80) use the API
/ps/api/ps/v1/<DeviceID>/sessions
This is a POST method and the body of POST must include
{
“did”:"<DeviceID>",
“type”:“web”,
“lhost”:“127.0.0.1”,
“lport”:80
}