add workflow 天润Smart-ccc通话记录,dev
This commit is contained in:
parent
0468bcaad7
commit
bf45c1e959
|
@ -65,7 +65,7 @@ def build_query_string(params):
|
|||
def request_data_signature_get(offset, pageSize):
|
||||
print(f'开始请求外呼记录数据,偏移量:{offset}')
|
||||
url='https://api-bj.clink.cn/cc/list_cdr_ob'
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(720),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(1),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
# param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1717516800,'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177'}
|
||||
print(f'param: {param}')
|
||||
url_path = build_query_string(param)
|
||||
|
@ -186,7 +186,7 @@ if __name__ == "__main__":
|
|||
list = resL['cdrOb']
|
||||
page = resL['pageNumber']
|
||||
total = resL['totalCount']
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/page) + 1}次')
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/pageSize) + 1}次')
|
||||
i = 1
|
||||
while page * pageSize < total:
|
||||
i = i+1
|
||||
|
|
|
@ -65,7 +65,7 @@ def build_query_string(params):
|
|||
def request_data_signature_get(offset, pageSize):
|
||||
print(f'开始请求客服来电记录数据')
|
||||
url='https://api-bj.clink.cn/cc/list_cdr_ib'
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(720),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(1),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
# param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
|
||||
print(f'param: {param}')
|
||||
|
@ -122,7 +122,7 @@ if __name__ == "__main__":
|
|||
dataList = resL['cdrIb']
|
||||
page = resL['pageNumber']
|
||||
total = resL['totalCount']
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/page) + 1}次')
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/pageSize) + 1}次')
|
||||
i = 1
|
||||
while page * pageSize < total:
|
||||
i = i+1
|
||||
|
|
|
@ -65,7 +65,7 @@ def build_query_string(params):
|
|||
def request_data_signature_get(offset, pageSize):
|
||||
print(f'开始请求座席接听记录数据')
|
||||
url='https://api-bj.clink.cn/cc/list_cdr_ib_agent'
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(720),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
param={'Timestamp':current_time_utc,'Expires':86400,'startTime':previous_hour_timestamp(1),'startTimeEnd':previous_hour_timestamp(0),'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
# param={'Timestamp':current_time_utc,'Expires':86400,'startTime':1712332800,'startTimeEnd':1714838400,'AccessKeyId':'b17759d3a36fba9a2cf522fbf4cbf177','limit':pageSize,'offset':offset}
|
||||
|
||||
print(f'param: {param}')
|
||||
|
@ -125,7 +125,7 @@ if __name__ == "__main__":
|
|||
dataList = resL['cdrIbAgent']
|
||||
page = resL['pageNumber']
|
||||
total = resL['totalCount']
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/page) + 1}次')
|
||||
print(f'此次请求数据总数为:{total},需要请求{int(total/pageSize) + 1}次')
|
||||
i = 1
|
||||
while page * pageSize < total:
|
||||
i = i+1
|
||||
|
|
Loading…
Reference in New Issue