| 1 | <?php |
||
| 5 | class Conf |
||
| 6 | { |
||
| 7 | const PKG_VERSION = 'v3.3'; |
||
| 8 | |||
| 9 | const API_IMAGE_END_POINT = 'http://web.image.myqcloud.com/photos/v1/'; |
||
| 10 | const API_VIDEO_END_POINT = 'http://web.video.myqcloud.com/videos/v1/'; |
||
| 11 | const API_COSAPI_END_POINT = 'http://web.file.myqcloud.com/files/v1/'; |
||
| 12 | |||
| 13 | //请到http://console.qcloud.com/cos去获取你的appid、sid、skey |
||
| 14 | private static $APPID; |
||
| 15 | private static $SECRET_ID; |
||
| 16 | private static $SECRET_KEY; |
||
| 17 | |||
| 18 | public static function setAppId($appId) |
||
| 22 | |||
| 23 | public static function setSecretId($secretId) |
||
| 27 | |||
| 28 | public static function setSecretKey($secretKey) |
||
| 32 | |||
| 33 | 14 | public static function getAppId() |
|
| 37 | |||
| 38 | 14 | public static function getSecretId() |
|
| 42 | |||
| 43 | 14 | public static function getSecretKey() |
|
| 47 | |||
| 48 | 14 | public static function getUA() |
|
| 52 | } |
||
| 53 | |||
| 55 |