File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ Config 配置
31
31
::
32
32
33
33
[Credentials]
34
- ks_access_key_id=AKLTyW1V6ZWET7aIvdeeIH1cwQ
35
- ks_secret_access_key=OEoTK4IgEBIq3rlFsbpcESs87w513D6aOwdXxP6QHuvWlonSRYeKQyTzqc1XkUvpuQ==
34
+ ks_access_key_id=your ak
35
+ ks_secret_access_key=your sk
36
36
37
37
+ 或在程序运行时配置:
38
38
@@ -180,14 +180,14 @@ Examples 示例
180
180
181
181
from kscore.session import get_session
182
182
import json
183
-
183
+
184
184
if __name__=="__main__":
185
-
185
+
186
186
#初始化
187
187
s = get_session()
188
188
client = s.create_client("offline", "cn-beijing-6", use_ssl=False)
189
-
190
- #创建模板接口调用示例 : preset
189
+
190
+ #创建模板接口调用示例 : preset
191
191
presetname = 'testpreset'
192
192
description = 'just a demo'
193
193
presetType = 'avop'
@@ -213,11 +213,11 @@ Examples 示例
213
213
}
214
214
res = client.preset(**param)
215
215
print json.dumps(res)
216
-
216
+
217
217
#获取模板信息接口调用示例 : get_preset_detail
218
218
res = client.get_preset_detail(preset = presetname)
219
219
print json.dumps(res)
220
-
220
+
221
221
+ CDN
222
222
223
223
::
@@ -233,7 +233,7 @@ Examples 示例
233
233
res = client.get_cdn_domains(PageSize=20,PageNumber=0,DomainStatus='online',CdnType='download')
234
234
235
235
print res
236
-
236
+
237
237
+ 更多
238
238
239
239
--------------------
You can’t perform that action at this time.
0 commit comments