Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 3d5f433

Browse files
authored
example api-config file
1 parent 397774a commit 3d5f433

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎custom_api-config.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
# set error reporting
3+
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT);
4+
# api params
5+
$api_url = "http://127.0.0.1/ipam/api/"; // server url
6+
$api_app_id = "apiclient"; // application id you set in http://[yourserver]/ipam/administration/api/
7+
$api_key = "yourapikey"; // api key or application code - only for encrypted methods, otherwise must be false
8+
# set username / password for authentication, not needed for encrypted communications
9+
$api_username = " ";
10+
$api_password = " ";
11+
# save token or not ?
12+
# false => don't save, check each time
13+
# filename => will save token to filename provided
14+
$token_file = "token.txt";
15+
# set result format json/object/array/xml
16+
$result_format = "json";
17+
?>

0 commit comments

Comments
 (0)