Skip to content

Commit d2ed225

Browse files
authored
Merge pull request #271 from ankadada/master
Update Readme
2 parents c671b0b + de779d2 commit d2ed225

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/rtc/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Features
44

5-
- App
6-
- [x] 创建房间: App->createApp()
7-
- [x] 查看房间: App->getApp()
8-
- [x] 删除房间: App->deleteApp()
9-
- [x] 生成房间token: App->AppToken()
5+
- Appclient
6+
- [x] 创建房间: client->createApp()
7+
- [x] 查看房间: client->getApp()
8+
- [x] 删除房间: client->deleteApp()
9+
- [x] 生成房间token: client->AppToken()
1010

1111

1212

@@ -31,41 +31,41 @@
3131
```php
3232
$ak = "gwd_gV4gPKZZsmEOvAuNU1AcumicmuHooTfu64q5";
3333
$sk = "xxxx";
34-
$mac = new QiniuRtc\Mac($ak, $sk);
35-
$client = new QiniuRtc\AppClient($mac);
34+
$auth = new Auth($ak, $sk);
35+
$client = new QiniuRtc\AppClient($auth);
3636
$resp=$client->createApp("901","testApp");
3737
print_r($resp);
3838
```
3939

40-
#### Get a app
40+
#### Get an app
4141

4242
```php
4343
$ak = "gwd_gV4gPKZZsmEOvAuNU1AcumicmuHooTfu64q5";
4444
$sk = "xxxx";
45-
$mac = new QiniuRtc\Mac($ak, $sk);
46-
$client = new QiniuRtc\AppClient($mac);
45+
$auth = new Auth($ak, $sk);
46+
$client = new QiniuRtc\AppClient($auth);
4747
$resp=$client->getApp("deq02uhb6");
4848
print_r($resp);
4949
```
5050

51-
#### Delete a app
51+
#### Delete an app
5252

5353
```php
5454
$ak = "gwd_gV4gPKZZsmEOvAuNU1AcumicmuHooTfu64q5";
5555
$sk = "xxxx";
56-
$mac = new QiniuRtc\Mac($ak, $sk);
57-
$client = new QiniuRtc\AppClient($mac);
56+
$auth = new Auth($ak, $sk);
57+
$client = new QiniuRtc\AppClient($auth);
5858
$resp=$client->deleteApp("deq02uhb6");
5959
print_r($resp);
6060
```
6161

62-
#### Generate a app token
62+
#### Generate an app token
6363

6464
```php
6565
$ak = "gwd_gV4gPKZZsmEOvAuNU1AcumicmuHooTfu64q5";
6666
$sk = "xxxx";
67-
$mac = new QiniuRtc\Mac($ak, $sk);
68-
$client = new QiniuRtc\AppClient($mac);
67+
$auth = new Auth($ak, $sk);
68+
$client = new QiniuRtc\AppClient($auth);
6969
$resp=$client->appToken("deq02uhb6", "lfx", '1111', (time()+3600), 'user');
7070
print_r($resp);
7171
```

0 commit comments

Comments
 (0)