API调用URL地址
http://<serverName>:<portNumber>/api/v3/requests/{request_id}/link_requests
其中{request_id}为需要获取链接请求信息的请求ID
示例:http://localhost:8080/api/v3/requests/86/link_requests
请求参数
方法:GET
请求参数:
参数名
|
值
|
位置
|
authtoken
|
<API Key>
|
header
|
响应示例
{
"response_status": [
{
"status_code": 2000,
"status": "success"
}
],
"link_requests": [
{
"comments": "Same incident",
"linked_request": {
"subject": "Unable to fetch mails",
"id": "92"
}
},
{
"comments": "Same incident",
"linked_request": {
"subject": "Unable to fetch mails",
"id": "91"
}
}
]
}
Postman示例
Python脚本示例
#Python version - 3.9
#需要安装requests模块
import requests
url = "http://localhost:8080/api/v3/requests/86/link_requests"
headers = {"authtoken":"9CE7BCBF-EACC-4E10-BE6C-D9284163B4DC"}
response = requests.get(url,headers=headers,verify=False)
print(response.text)