影刀RPA接口_查询应用主流程参数结构
影刀接口_查询应用主流程参数结构
链接
import requests
from time import sleep
accessKeyId="XXX"
accessKeySecret="XXX"
#1.获取token
def get_access_token():
url="https://api.yingdao.com/oapi/token/v2/token/create"
headers={
"Content-Type":"application/x-www-form-urlencoded"
}
params={
"accessKeyId":accessKeyId,
"accessKeySecret":accessKeySecret
}
response = requests.post(url=url,headers=headers,params=params)
print(response.json())
return response.json()['data']['accessToken']
#2.查询
def query_application_Params(access_token,robotUuid):
url=f"https://api.yingdao.com/oapi/robot/v2/queryRobotParam?robotUuid={robotUuid}"
headers={
"Authorization":f"Bearer {access_token}"
}
response = requests.get(url=url,headers=headers)
return response.json()['data']
print(query_application_Params(get_access_token(),"应用的uuid")