api配置测试代码
This commit is contained in:
@@ -1,44 +1,47 @@
|
|||||||
"""API接口配置文件"""
|
"""API接口配置文件"""
|
||||||
|
|
||||||
# API配置
|
|
||||||
'''
|
'''
|
||||||
# 关闭清洗任务
|
# API配置
|
||||||
'task_1': {
|
API_CONFIG = {
|
||||||
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/a3bdd5b6-1932-4bc9-95bf-dbc4bccb171f',
|
# 关闭清洗任务
|
||||||
'method': 'PUT',
|
'task_1': {
|
||||||
'headers': {
|
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/a3bdd5b6-1932-4bc9-95bf-dbc4bccb171f',
|
||||||
'Content-Type': 'application/json',
|
'method': 'PUT',
|
||||||
'User-Agent': 'Celery-Task/1.0'
|
'headers': {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'User-Agent': 'Celery-Task/1.0'
|
||||||
|
},
|
||||||
|
'timeout': 30,
|
||||||
|
'body': {
|
||||||
|
}
|
||||||
},
|
},
|
||||||
'timeout': 30,
|
# Ice跟进
|
||||||
'body': {
|
'task_2': {
|
||||||
}
|
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/db17ba5f-666a-4dc0-a635-1d4d0059338d',
|
||||||
},
|
'method': 'PUT',
|
||||||
# Ice跟进
|
'headers': {
|
||||||
'task_2': {
|
'Content-Type': 'application/json',
|
||||||
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/db17ba5f-666a-4dc0-a635-1d4d0059338d',
|
'User-Agent': 'Celery-Task/1.0'
|
||||||
'method': 'PUT',
|
},
|
||||||
'headers': {
|
'timeout': 30,
|
||||||
'Content-Type': 'application/json',
|
'body': {
|
||||||
'User-Agent': 'Celery-Task/1.0'
|
}
|
||||||
},
|
},
|
||||||
'timeout': 30,
|
# 战败清洗跟进
|
||||||
'body': {
|
'task_3': {
|
||||||
}
|
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/2121d91e-c7d8-47cf-8a67-fa2f22e087ae',
|
||||||
},
|
'method': 'PUT',
|
||||||
# 战败清洗跟进
|
'headers': {
|
||||||
'task_3': {
|
'Content-Type': 'application/json',
|
||||||
'url': 'http://agent-api.ai.telrobot.top/agent-api/new/user/8f6bae44-e02a-4393-a6cf-adb861bf7d8c/task_start/2121d91e-c7d8-47cf-8a67-fa2f22e087ae',
|
'User-Agent': 'Celery-Task/1.0'
|
||||||
'method': 'PUT',
|
},
|
||||||
'headers': {
|
'timeout': 30,
|
||||||
'Content-Type': 'application/json',
|
'body': {
|
||||||
'User-Agent': 'Celery-Task/1.0'
|
}
|
||||||
},
|
|
||||||
'timeout': 30,
|
|
||||||
'body': {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
API_CONFIG = {
|
API_CONFIG = {
|
||||||
'task_test': {
|
'task_test': {
|
||||||
'url': 'https://httpbin.org/post',
|
'url': 'https://httpbin.org/post',
|
||||||
|
|||||||
Reference in New Issue
Block a user