Skip to content

Trying to issue an API request for "getAccumulatedCounts" but getting 'Unauthorized' error response #684

Closed Answered by vivekatoffice
josephmtz asked this question in VAPIX
Discussion options

You must be logged in to vote

Hi @josephmtz ,
I am adding my script which I tested with the following device:
AXIS Q1656-DLE Radar-Video Fusion Camera
AXIS OS version 11.10.61

AXIS Object Analytics
Version: 1.13.28

Scenario 2 is configured as Crossline counting:


#!/bin/bash

if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
  echo "Error: missing required parameter."
  echo "Usage: get_counts.sh <username> <password> <scenario>"
  exit 1
fi

username=$1
password=$2
scenario=$3

curl --digest--user "$username:$password" --verbose \
    --location 'http://195.60.68.14:11117/local/objectanalytics/control.cgi' \
    --header 'Content-Type: application/json' \
    --data '{
                "apiVersion": "1.0",

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vivekatoffice
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