Skip to content

View Event list #78

Closed Answered by mattias-kindborg-at-work
geiche735 asked this question in VAPIX
Discussion options

You must be logged in to vote

Hi @geiche735!

Create the following files in a directory.

requirements.txt

requests

soap-get-event-instances.py

import requests
import sys

if len(sys.argv) != 4:
    print("Usage: soap-get-event-instances.py <ip> <username> <password>")
    sys.exit(1)

ip = sys.argv[1]
username = sys.argv[2]
password = sys.argv[3]

url = "http://{}/vapix/services".format(ip)
auth = requests.auth.HTTPDigestAuth(username, password)
headers = {"Content-Type": "application/soap+xml; action=//www.axis.com/vapix/ws/event1/GetEventInstances; Charset=UTF-8"}
body = """
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope">
    <SOAP-ENV:Body>
      <m:GetEventInstances xmlns:m="http://w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by geiche735
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
2 participants