Subscriber Discussion

Help With Hikvision API Requested

Rv
Rogier van der Heide
Nov 09, 2015

Is there anyone who has been trying to play around with the Hikvision API so far ?

Just for some more deep knowledge of the API's of the products I'm using I'm trying to get some to work with eachother. At the moment I'm trying to get an AXIS encoder to send an HTTP request to the Hikvision API once a certain Input is being activated so that the Hikvision moves to a certain Preset.

So far I've figured out I need to go to: http://<IP>/ISAPI/PTZCtrl/channels/1/presets/1/goto to get Preset 1 to activate. However, I keep running into the fact that I get the following statement:

<?xml version="1.0" encoding="UTF-8" ?>
-<ResponseStatus version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<requestURL>/ISAPI/PTZCtrl/channels/1/presets/1/goto</requestURL>
<statusCode>4</statusCode>
<statusString>Invalid Operation</statusString>
<subStatusCode>methodNotAllowed</subStatusCode>
</ResponseStatus>
The thing strikes me as weird tho, as I am using the correct credentials. I even tried using "username:password@ip" to see if that would work, but alas.
So, anyone have an idea what I'm doing wrong here ?
U
Undisclosed #1
Nov 09, 2015
IPVMU Certified

Can you successfully send the request as a get from a browser?

U
Undisclosed #1
Dec 01, 2015
IPVMU Certified

Don't know if you figured it out or gave up but sounds similar to:

Script To Reboot Hikvision Cameras

(1)
Rv
Rogier van der Heide
Dec 02, 2015

Thanks! That looks exactly like what I was looking for.

New discussion

Ask questions and get answers to your physical security questions from IPVM team members and fellow subscribers.

Newest discussions