【影刀RPA接口_查询机器人信息】
【影刀RPA接口_查询机器人信息】
·
影刀RPA接口_查询机器人信息
import requests
accessKeyId="xxx"
accessKeySecret="XXX"
accountName= '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)
return response.json()['data']['accessToken']
#get_access_token()
#2、查询机器人信息
def Query_robot_information(access_token):
url="https://api.winrobot360.com/oapi/dispatch/v2/client/query"
headers={
"Authorization":f"Bearer {access_token}",
"Content-Type":"application/json"
}
body={
"accountName": accountName
}
response = requests.post(url=url,headers=headers,json=body)
print(response.json())
return response.json()
Query_robot_information(get_access_token())

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐
所有评论(0)