API

From ZoneMinder Wiki
Revision as of 17:47, 17 March 2020 by Snake (talk | contribs) (Created page with "This is community documentation for the API. To see official documentation, review zoneminder.readthedocs.org ==Basic API Test (1.32.3)== Use this command to confirm the API...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is community documentation for the API. To see official documentation, review zoneminder.readthedocs.org

Basic API Test (1.32.3)

Use this command to confirm the API is working.

curl -X POST -d "user=somename&pass=somepass" http://serverip/zm/api/host/getVersion.json

Make sure all of this is included. It is not necessary to use login.json before running this command. The ampersand must be between user and pass.