Unable to Authenticate - People counter API #234
-
Hi all, We're trying to utilise the following API that allows access to a JSON updated with real-time people counter data from a camera (///local/people-counter/.api?live-sum.json) as per axis documentation (https://www.axis.com/vapix-library/subjects/t10102231/section/t10128199/display) Our issue is that we can't seem to manage to authenticate when making the request to get the json file (in php). No matter what we seem to do, we're still returned a 401 unauthorised error. Please see below sample code that we're currently working with. `<?php $url = "http:///local/people-counter/.api?live-sum.json"; return file_get_contents($url, false, $context); #var_dump($context); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All sorted. Used cURL instead. |
Beta Was this translation helpful? Give feedback.
All sorted. Used cURL instead.