宜搭api修复head中的json.json 问题
This commit is contained in:
@@ -48,7 +48,7 @@ class YDAPI:
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/forms/instances'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -89,9 +89,9 @@ class YDAPI:
|
||||
:return:
|
||||
"""
|
||||
attempt = 0
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/processes/instancesInfos/{id}'
|
||||
api = f'https://api.dingtalk.com/v2.0/yida/processes/instancesInfos/{id}'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
formData = {
|
||||
@@ -131,7 +131,7 @@ class YDAPI:
|
||||
|
||||
api = 'https://api.dingtalk.com/v1.0/yida/forms/instances/search'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
formData = {
|
||||
@@ -188,7 +188,7 @@ class YDAPI:
|
||||
attempt = 0
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/processes/instances?pageNumber={page}&pageSize={n}'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
formData = {
|
||||
@@ -237,7 +237,7 @@ class YDAPI:
|
||||
userId = "yida_pub_account"
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/processes/operationRecords?appType={appType}&systemToken={systemToken}&userId={userId}&language=zh_CN&processInstanceId={processInstanceId}'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ class YDAPI:
|
||||
userId = "yida_pub_account"
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/processes/{processID}definitions/designs?systemToken={systemToken}&userId={userId}&appType={appType}"x-acs-dingtalk-access-token": token'
|
||||
headers = {
|
||||
# "Content-Type": "application/json.json",
|
||||
# "Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
|
||||
}
|
||||
@@ -327,7 +327,7 @@ class YDAPI:
|
||||
"""
|
||||
api = 'https://api.dingtalk.com/v1.0/yida/tasks/execute'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
payload = {
|
||||
@@ -362,7 +362,7 @@ class YDAPI:
|
||||
api = f'https://api.dingtalk.com//v1.0/yida/tasks/redirect'
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
payload = {
|
||||
@@ -393,7 +393,7 @@ class YDAPI:
|
||||
api = f'https://api.dingtalk.com///v1.0/yida/forms/instances?appType=APP_UYZ0KG6L0CCNV80GZ66O&systemToken=XA966F81JAJOFCVVVKO64E9MIIZV1EWE5SFMKJ2&userId=2268275546837446&language=zh_CN&formInstanceId=' + id
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ class YDAPI:
|
||||
|
||||
api = f'https://api.dingtalk.com/v1.0/yida/forms/formFields'
|
||||
headers = {
|
||||
"Content-Type": "application/json.json",
|
||||
"Content-Type": "application/json",
|
||||
"x-acs-dingtalk-access-token": token
|
||||
}
|
||||
retries = 0
|
||||
|
||||
Reference in New Issue
Block a user