Skip to content

Commit 407ab17

Browse files
committed
rm bucket name rwxf
1 parent 6d5f0ad commit 407ab17

File tree

9 files changed

+28
-28
lines changed

9 files changed

+28
-28
lines changed

examples/bucket_mgr.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;
66

7-
$accessKey = 'Access Key';
8-
$secretKey = 'Secret Key';
7+
$accessKey = 'Access_Key';
8+
$secretKey = 'Secret_Key';
99

1010
//初始化Auth状态:
1111
$auth = new Auth($accessKey, $secretKey);
@@ -14,7 +14,7 @@
1414
$bucketMgr = new BucketManager($auth);
1515

1616
//你要测试的空间, 并且这个key在你空间中存在
17-
$bucket = 'rwxf';
17+
$bucket = 'Bucket_Name';
1818
$key = 'php-logo.png';
1919

2020
//获取文件的状态信息

examples/callback.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
use Qiniu\Auth;
55

6-
$accessKey = 'Access Key';
7-
$secretKey = 'Secret Key';
6+
$accessKey = 'Access_Key';
7+
$secretKey = 'Secret_Key';
88
$auth = new Auth($accessKey, $secretKey);
99

1010
//获取回调的body信息

examples/download_token.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
use Qiniu\Auth;
55

6-
$accessKey = 'Access Key';
7-
$secretKey = 'Secret Key';
6+
$accessKey = 'Access_Key';
7+
$secretKey = 'Secret_Key';
88

99
// 构建Auth对象
1010
$auth = new Auth($accessKey, $secretKey);

examples/fetch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;
66

7-
$accessKey = 'Access Key';
8-
$secretKey = 'Secret Key';
7+
$accessKey = 'Access_Key';
8+
$secretKey = 'Secret_Key';
99

1010
$auth = new Auth($accessKey, $secretKey);
1111
$bmgr = new BucketManager($auth);
1212

1313
$url = 'http://php.net/favicon.ico';
14-
$bucket = 'rwxf';
14+
$bucket = 'Bucket_Name';
1515
$key = time() . '.ico';
1616

1717
list($ret, $err) = $bmgr->fetch($url, $bucket, $key);

examples/list_file.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;
66

7-
$accessKey = 'Access Key';
8-
$secretKey = 'Secret Key';
7+
$accessKey = 'Access_Key';
8+
$secretKey = 'Secret_Key';
99
$auth = new Auth($accessKey, $secretKey);
1010
$bucketMgr = new BucketManager($auth);
1111

12-
$bucket = 'rwxf';
12+
$bucket = 'Bucket_Name';
1313
$prefix = '';
1414
$marker = '';
1515
$limit = 3;

examples/mkzip.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
$accessKey = 'access key';
99
$secretKey = 'secret key';
1010

11-
$accessKey = 'Access Key';
12-
$secretKey = 'Secret Key';
11+
$accessKey = 'Access_Key';
12+
$secretKey = 'Secret_Key';
1313
$auth = new Auth($accessKey, $secretKey);
1414

1515

16-
$bucket = 'rwxf';
16+
$bucket = 'Bucket_Name';
1717
$key = '1.png';
1818

1919
// 异步任务的队列, 去后台新建: https://portal.qiniu.com/mps/pipeline
@@ -22,8 +22,8 @@
2222
$pfop = new PersistentFop($auth, $bucket, $pipeline);
2323

2424
// 进行zip压缩的url
25-
$url1 = 'http://phpsdk.qiniudn.com/php-logo.png';
26-
$url2 = 'http://phpsdk.qiniudn.com/php-sdk.html';
25+
$url1 = 'http://Bucket_Name.qiniudn.com/php-logo.png';
26+
$url2 = 'http://Bucket_Name.qiniudn.com/php-sdk.html';
2727

2828
//压缩后的key
2929
$zipKey = 'test.zip';

examples/pfop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
//对已经上传到七牛的视频发起异步转码操作
88

9-
$accessKey = 'Access Key';
10-
$secretKey = 'Secret Key';
9+
$accessKey = 'Access_Key';
10+
$secretKey = 'Secret_Key';
1111
$auth = new Auth($accessKey, $secretKey);
1212

1313
//要转码的文件所在的空间和文件名。
14-
$bucket = 'rwxf';
14+
$bucket = 'Bucket_Name';
1515
$key = '1.mp4';
1616

1717
//转码是使用的队列名称。 https://portal.qiniu.com/mps/pipeline

examples/up.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
use Qiniu\Auth;
55
use Qiniu\Storage\UploadManager;
66

7-
$accessKey = 'Access Key';
8-
$secretKey = 'Secret Key';
7+
$accessKey = 'Access_Key';
8+
$secretKey = 'Secret_Key';
99
$auth = new Auth($accessKey, $secretKey);
1010

11-
$bucket = 'phpsdk';
11+
$bucket = 'Bucket_Name';
1212
$token = $auth->uploadToken($bucket);
1313
$uploadMgr = new UploadManager();
1414

@@ -59,7 +59,7 @@
5959

6060
//----------------------------------------upload demo4 ----------------------------------------
6161
//上传视频,上传完成后进行m3u8的转码, 并给视频打水印
62-
$wmImg = Qiniu\base64_urlSafeEncode('http://rwxf.qiniudn.com/logo-s.png');
62+
$wmImg = Qiniu\base64_urlSafeEncode('http://Bucket_Name.qiniudn.com/logo-s.png');
6363
$pfop = "avthumb/m3u8/wmImage/$wmImg";
6464

6565
//转码完成后回调到业务服务器。(公网可以访问,并相应200 OK)

examples/upload_token.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
use Qiniu\Auth;
55

6-
$accessKey = 'Access Key';
7-
$secretKey = 'Secret Key';
6+
$accessKey = 'Access_Key';
7+
$secretKey = 'Secret_Key';
88
$auth = new Auth($accessKey, $secretKey);
99

10-
$bucket = 'devtest';
10+
$bucket = 'Bucket_Name';
1111
$upToken = $auth->uploadToken($bucket);
1212

1313
echo $upToken;

0 commit comments

Comments
 (0)