Conf.php 641 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Qcloud_cos;
  3. class Conf
  4. {
  5. const PKG_VERSION = 'v3.3';
  6. const API_IMAGE_END_POINT = 'http://web.image.myqcloud.com/photos/v1/';
  7. const API_VIDEO_END_POINT = 'http://web.video.myqcloud.com/videos/v1/';
  8. const API_COSAPI_END_POINT = 'http://web.file.myqcloud.com/files/v1/';
  9. //请到http://console.qcloud.com/cos去获取你的appid、sid、skey
  10. const APPID = '10048642';
  11. const SECRET_ID = 'AKIDLKf4URlfwp0NZtzu7HQBOHpUQ23QAWO6';
  12. const SECRET_KEY = 'J05bM3PVp0YoNGUbj4d0BvjC2TZzBy6T';
  13. public static function getUA() {
  14. return 'cos-php-sdk-'.self::PKG_VERSION;
  15. }
  16. }
  17. //end of script