phpipam / phpipam-api-clients

Collection of API clients for phpipam API
43 stars 34 forks source link

[Solved]Unauthorized Error #28

Open Uzzi opened 4 years ago

Uzzi commented 4 years ago

I'm tring to execute api-example.php, thi si error: PHP Notice: Array to string conversion in /var/www/html/phpipam/functions/classes/class.phpipam-api.php on line 652 PHP Notice: Undefined variable: response_headers in /var/www/html/phpipam/functions/scripts/api-test.php on line 26 Array ( [code] => 401 [success] => [message] => Unauthorized [time] => 0.024 )

Can you help me? Regards

Uzzi commented 4 years ago

modify $api_key = false; working on SSL

Damodara1687 commented 1 year ago

Hello,

i have the Same Problem, but removing the api key and adding credentials , dont help, is the selfsigned certificate the problem?

`URL: "https://172.24.0.12/api" APP-ID: "nmaper" api-key: ""