Skip to content

Commit d327801

Browse files
committed
modify README.rst
1 parent 97450ab commit d327801

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.rst

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,18 @@ Examples 示例
215215
+ CDN
216216

217217
::
218-
## CDN API调用 详细示例位于 ./examples/cdn.py
219-
218+
220219
from kscore.session import get_session
221-
import json
222-
223-
if __name__=="__main__":
224-
225-
#初始化
220+
221+
if __name__ == "__main__":
222+
# CDN API调用 详细示例位于 ./examples/cdn.py
226223
s = get_session()
224+
227225
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
226+
227+
res = client.get_cdn_domains(PageSize=20,PageNumber=0,DomainStatus='online',CdnType='download')
228+
229+
print res
231230
232231
+ 更多
233232

0 commit comments

Comments
 (0)