generated from root/miduo_client
20 lines
701 B
Python
20 lines
701 B
Python
#!/usr/bin/env python
|
|
#coding=utf-8
|
|
|
|
from aliyunsdkcore.client import AcsClient
|
|
from aliyunsdkcore.acs_exception.exceptions import ClientException
|
|
from aliyunsdkcore.acs_exception.exceptions import ServerException
|
|
from aliyunsdkdcdn.request.v20180115.PreloadDcdnObjectCachesRequest import PreloadDcdnObjectCachesRequest
|
|
|
|
client = AcsClient('LTAIE4jRXhLBvVLL', '74hEmfGzNEYLSFP26fO6CUZ319AY61', 'ap-northeast-1')
|
|
|
|
request = PreloadDcdnObjectCachesRequest()
|
|
request.set_accept_format('json')
|
|
|
|
request.set_Area("overseas")
|
|
request.set_ObjectPath("download.gamenew-h5.com/Japan/SW/")
|
|
|
|
response = client.do_action_with_exception(request)
|
|
# python2: print(response)
|
|
print(str(response, encoding='utf-8'))
|