Skip to content

Commit 97450ab

Browse files
committed
README.rst 添加CDN描述
1 parent 78dbf7c commit 97450ab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Service 服务
8181
+-------------------+------------+
8282
| offline | |
8383
+-------------------+------------+
84+
| cdn | |
85+
+-------------------+------------+
8486

8587
----------------
8688
Method 方法
@@ -209,7 +211,24 @@ Examples 示例
209211
#获取模板信息接口调用示例 : get_preset_detail
210212
res = client.get_preset_detail(preset = presetname)
211213
print json.dumps(res)
214+
215+
+ CDN
212216

217+
::
218+
## CDN API调用 详细示例位于 ./examples/cdn.py
219+
220+
from kscore.session import get_session
221+
import json
222+
223+
if __name__=="__main__":
224+
225+
#初始化
226+
s = get_session()
227+
client = s.create_client("cdn", use_ssl=False)
228+
229+
domains = client.get_cdn_domains(PageSize=20,PageNumber=0,DomainStatus='online',CdnType='download')
230+
print domains
231+
213232
+ 更多
214233

215234
--------------------

0 commit comments

Comments
 (0)