Skip to content

Commit ba63402

Browse files
author
Cerlin
committed
FIX: Fix for fatal error in php version 5.5
1 parent aaccc2f commit ba63402

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Box/Enums/BoxAccessPoints.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
abstract class BoxAccessPoints
1010
{
1111

12+
// TODO: Revert this commit for php version 5.6
13+
1214
/**
1315
* URL Separator
1416
*/
@@ -32,25 +34,25 @@ abstract class BoxAccessPoints
3234
/**
3335
* oAuth2 token end point.
3436
*/
35-
const OAUTH2_TOKEN = self::API_BASE_URL . "/oauth2/token";
37+
const OAUTH2_TOKEN = "https://api.box.com/oauth2/token";
3638

3739
/**
3840
* Base folder API
3941
*/
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";
4143

4244
/**
4345
* File upload API
4446
*/
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";
4648

4749
/**
4850
* File upload pre-flight API
4951
*/
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";
5153

5254
/**
5355
* Base file API
5456
*/
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";
5658
}

0 commit comments

Comments
 (0)