-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.php
58 lines (51 loc) · 1.58 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
return [
/**
* You can declare as much servers you want. Here is an example
* on `default` server, you may override or delete it.
*/
'servers' => [
/**
* This is the default server for example purpose.
*/
'default' => [
/**
* All request otpions sent on every http request. See more:
* http://docs.guzzlephp.org/en/latest/request-options.html
*/
'request_options' => [
/**
* Base URI of the endpoint. Ex: https://api.twitter.com/1.1
*/
'base_uri' => '',
/**
* Basic Auth parameters.
*/
'auth' => [
/**
* User name
*/
'',
/**
* Password
*/
'',
],
],
/**
* Accessors may help you on response post process.
* Assuming you always have a data field in responses
* and you want to access it via collection, you can set
* data field to collect (or any other callback function)
*/
'accessors' => [
'data' => 'collect', // Callback function
'errors' => 'collect'
]
]
],
/**
* You may want to log everything.
*/
'debug' => false
];