在这篇文章中解释了如何通过 API 邀请人:
我创建了我的身份验证令牌并使用 Powshell 尝试了这个 API/JSON 请求:
Invoke-RestMethod -Method Post -Headers $headers -Uri "https://pmo.lukad.net/api/v1/users/invite" -Body '{email_addresses:["webmaster@lukad.com"],role:"Member"}'
我收到此错误:
Script failed! Last error: {"type":"InvalidParamError","message":"'email_addresses' not found in array","code":0,"file":"\/var\/www\/pmo\/activecollab\/5.13.133\/angie\/functions\/general.php
","line":826,"trace":"#0 /var/www/pmo/activecollab/5.13.133/modules/system/controllers/UsersController.class.php(134): array_required_var(Array, 'email_addresses'.....
我不确定这个脚本有什么问题。我已经试过了,没有紧箍咒[]