aliapi/run.py
2025-02-05 14:27:23 +08:00

22 lines
696 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from utils.ali_client import create_client,get_listtask,get_task_detail
import json
from utils.log import Log
if __name__ == '__main__':
# 创建一个新的Log实例确保每天创建一个新的日志文件
log = Log().getlog()
aliclient=create_client('xianxia');
# response_dict=get_listtask(aliclient,39023);
# response = json.loads(response_dict)
# print(response_dict)
# print('1111111111111111111111')
# print(response['body'])
# print(response['body']['PagingInfo']['TotalCount'])
# response_dict = get_task_detail(aliclient, 1023194720,'Dev');
response_dict = get_task_detail(aliclient, 1023194720,'Prod');
log.info(response_dict)