File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 9
9
abstract class BoxAccessPoints
10
10
{
11
11
12
+ // TODO: Revert this commit for php version 5.6
13
+
12
14
/**
13
15
* URL Separator
14
16
*/
@@ -32,25 +34,25 @@ abstract class BoxAccessPoints
32
34
/**
33
35
* oAuth2 token end point.
34
36
*/
35
- const OAUTH2_TOKEN = self :: API_BASE_URL . " /oauth2/token " ;
37
+ const OAUTH2_TOKEN = " https://api.box.com /oauth2/token " ;
36
38
37
39
/**
38
40
* Base folder API
39
41
*/
40
- const BASE_FOLDER_URL = self :: API_BASE_URL . self :: API_VERSION . " /folders " ;
42
+ const BASE_FOLDER_URL = " https://api.box.com/2.0 /folders " ;
41
43
42
44
/**
43
45
* File upload API
44
46
*/
45
- const FILE_UPLOAD = self :: API_UPLOAD_URL . self :: API_VERSION . " /files/content " ;
47
+ const FILE_UPLOAD = " https://upload.box.com/api/2.0 /files/content " ;
46
48
47
49
/**
48
50
* File upload pre-flight API
49
51
*/
50
- const FILE_UPLOAD_PREFLIGHT = self :: API_BASE_URL . self :: API_VERSION . " /files/content " ;
52
+ const FILE_UPLOAD_PREFLIGHT = " https://api.box.com/2.0 /files/content " ;
51
53
52
54
/**
53
55
* Base file API
54
56
*/
55
- const BASE_FILE_URL = self :: API_BASE_URL . self :: API_VERSION . " /files " ;
57
+ const BASE_FILE_URL = " https://api.box.com/2.0 /files " ;
56
58
}
You can’t perform that action at this time.
0 commit comments