-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathapi.php
More file actions
42 lines (38 loc) · 1.45 KB
/
Copy pathapi.php
File metadata and controls
42 lines (38 loc) · 1.45 KB
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
<?php
return [
/*
|--------------------------------------------------------------------------
| Limit per page
|--------------------------------------------------------------------------
|
| This is the maximum number of items the API can return per page.
|
*/
'max_limit_per_page' => env('MAX_API_LIMIT_PER_PAGE', 100),
/*
|--------------------------------------------------------------------------
| Format of the timestamp
|--------------------------------------------------------------------------
|
| This defines the format of the timestamp that is returned on most API
| calls.
|
*/
'timestamp_format' => env('API_TIMESTAMP_FORMAT', 'Y-m-d\TH:i:s\Z'),
/*
|--------------------------------------------------------------------------
| Error codes for the API
|--------------------------------------------------------------------------
*/
'error_codes' => [
'30' => 'The limit parameter is too big.',
'31' => 'The resource has not been found.',
'32' => 'Error while trying to save the data.',
'33' => 'Too many parameters.',
'34' => 'Too many attempts, please slow down the request.',
'35' => 'This email address is already taken.',
'36' => 'You can\'t set a partner or a child to a partial contact.',
'37' => 'Problems parsing JSON',
'38' => 'Date should be in the future',
],
];