aboutsummaryrefslogtreecommitdiff
path: root/php-client/api-config.dist.php
blob: 494ef87ab73c446d6cd3a5d775df083b944c4f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

# set error reporting
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT);

# api params
$api_url    = "http://127.0.0.1/api/";     // server url
$api_app_id = "myapp";                     // application id
$api_key    = false;                       // api key - only for encrypted methods, otherwise must be false

# set username / password for authentication, not needed for encrypted communications
$api_username = "apiusername";
$api_password = "apipassword";

# save token or not ?
#   false => dont save, check each time
#   filename => will save token to filename provided
$token_file = "token.txt";

# set result format json/object/array/xml
$result_format = "json";

?>