import requests
# 构建请求头
headers = {
'Authorization': 'Bearer ',
'Content-Type': 'application/json',
}
# 构建请求数据
data = {
"emails": "",
"message": "",
"subject": ""
}
# 发送请求
response = requests.post('https://developer.api.autodesk.com/bim360/admin/v1/accounts//projects//user_invitations', headers=headers, json=data)
# 打印响应结果
print(response.json())
注意:在执行代码前,需要将
、
、
、
、
和
替换为实际的值。