Skip to content

Commit 990005f

Browse files
author
金山云SDK
authored
Merge pull request KscSDK#69 from KscSDK/trunk
Trunk
2 parents 71d76bc + 3f35194 commit 990005f

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ Config 配置
2828
::
2929

3030
[Credentials]
31-
ks_access_key_id=AKLTyW1V6ZWET7aIvdeeIH1cwQ
32-
ks_secret_access_key=OEoTK4IgEBIq3rlFsbpcESs87w513D6aOwdXxP6QHuvWlonSRYeKQyTzqc1XkUvpuQ==
31+
ks_access_key_id=your ak
32+
ks_secret_access_key=your sk
3333

3434
+ 或在程序运行时配置:
3535

3636
::
3737

3838
from kscore.session import get_session
3939
# 密钥
40-
ACCESS_KEY_ID = "AKLTyW1V6ZWET7aIvdeeIH1cwQ"
41-
SECRET_ACCESS_KEY = "OEoTK4IgEBIq3rlFsbpcESs87w513D6aOwdXxP6QHuvWlonSRYeKQyTzqc1XkUvpuQ=="
40+
ACCESS_KEY_ID = "your ak"
41+
SECRET_ACCESS_KEY = "your sk"
4242

4343
s = get_session()
4444
client = s.create_client("iam", ks_access_key_id=ACCESS_KEY_ID, ks_secret_access_key=SECRET_ACCESS_KEY)
@@ -177,14 +177,14 @@ Examples 示例
177177

178178
from kscore.session import get_session
179179
import json
180-
180+
181181
if __name__=="__main__":
182-
182+
183183
#初始化
184184
s = get_session()
185185
client = s.create_client("offline", "cn-beijing-6", use_ssl=False)
186-
187-
#创建模板接口调用示例 : preset
186+
187+
#创建模板接口调用示例 : preset
188188
presetname = 'testpreset'
189189
description = 'just a demo'
190190
presetType = 'avop'
@@ -210,11 +210,11 @@ Examples 示例
210210
}
211211
res = client.preset(**param)
212212
print json.dumps(res)
213-
213+
214214
#获取模板信息接口调用示例 : get_preset_detail
215215
res = client.get_preset_detail(preset = presetname)
216216
print json.dumps(res)
217-
217+
218218
+ CDN
219219

220220
::
@@ -230,7 +230,7 @@ Examples 示例
230230
res = client.get_cdn_domains(PageSize=20,PageNumber=0,DomainStatus='online',CdnType='download')
231231

232232
print res
233-
233+
234234
+ 更多
235235

236236
--------------------

examples/.kscore.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[Credentials]
2-
ks_access_key_id = AKLTak2xkznHTVSs7a-8klJWug
3-
ks_secret_access_key = OEZTydYQ7suCyRwmv+s5L89g7gpNvB3PxJmPvxw3MXLIe6/N8Hsm8aXKPXD5+VvCKQ==
2+
ks_access_key_id = your ak
3+
ks_secret_access_key = your sk

examples/ket.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
if __name__ == "__main__":
88
client = getKetClient("ket", "cn-beijing-6",use_ssl=False)
99

10-
uniqname = 'mytest'
11-
presetname = 'testpreset'
12-
appname = 'live'
13-
description = 'just a demo'
10+
uniqname = 'xxxx'
11+
presetname = 'xxxx'
12+
appname = 'xxxx'
13+
description = 'xxxx'
1414
presettype = 4
15-
streamid = 'myteststreamid'
16-
taskid = 'd41d8cd98f00b204e9800998ecf8427e'
15+
streamid = 'xxxx'
16+
taskid = 'xxxx'
1717
outpull = 1
18-
srcurl = "rtmp://qa-ws.test-rtmplive.ks-cdn.com/live/20160819"
18+
srcurl = "xxxx"
1919

2020
# 删除模板
2121
#res = client.DelPreset(App=appname, UniqName=uniqname, Preset=presetname)
@@ -115,11 +115,11 @@
115115
"App": appname,
116116
"StreamID": streamid,
117117
"Preset": presetname,
118-
"PubDomain": "test.uplive.ksyun.com",
118+
"PubDomain": "xxxx",
119119
"DurationHour":168,
120120
"SrcInfo": [
121121
{
122-
"Path": "http://wangshuai9.ks3-cn-beijing.ksyun.com/ksyun.flv",
122+
"Path": "xxxx",
123123
"Index": 0
124124
}
125125
]

0 commit comments

Comments
 (0)