This section is made for developers or integrators who would like to integrate with Camlytics application.
The REST API allows handling analytical events such as motion detected, camera obstructed, etc.
in a custom way. For example, you might want to store events in a remote database,
send them to a web service or start an external application.
The API also allows you to receive the list of Camlytics channels with complete details - streaming URI, name, etc. This might be helpful if you plan to use your own player to view cameras remotely (via mobile device).
Camlytics provides a very simple and universal way to control all camera events and retrieve channels data. In order to integrate with the application via REST API, complete the following steps:
http://localhost:48462/v1/json/events?limit=10&order=DESC&timeout=5. If no events are available, an empty JSON array will be returned.
autogenerated REST API reference
For additional support contact us at email@example.com
Also here is a great client implementation by our user on GitHub: https://github.com/turt2live/people-counter
Note that you can use whatever programming language and framework you prefer. The necessary client code can be generated from Swagger definition file which is compliant with Swagger specifications. Please read more about Swagger here.
Online code generation available at SwaggerHub.
If you don't want to write any code to customize events actions locally you can set up the webhook URL for each of event types. All webhooks are called via GET request with following parameters:
Example of URL that is going to be called: