appstore_invite_testers
通过电子邮件邀请人加入 TestFlight 群组,并查看每个地址是已邀请、已加入还是被拒绝。
通过电子邮件把人加入 TestFlight 群组。群组有构建版本后,Apple 会给每个人发送邀请邮件。已经在别处是该 App 测试员的人会按原样加入这个群组。内部群组只接受该 Apple 团队自己的 App Store Connect 用户;Apple 会拒绝其他人。
每个人单独处理,结果会说明每个人的情况。有一个例外:如果 Apple 拒绝加入某个已经是该 App 测试员的人,整个调用会失败,但列表中排在前面的人已经被邀请。
| 只读 | 破坏性 | 幂等 |
|---|---|---|
| 否 | 否 | 是 |
输入
| 输入 | 类型 | 必填 | 默认值 | 作用 |
|---|---|---|---|---|
teamId |
字符串(UUID) | yes | — | 团队,来自 list_teams。 |
projectId |
字符串(UUID) | 与 appId 二选一 |
— | 这个 App 所属的项目,来自 list_projects:这是指定 App 的常用方式。App 是 App Store Connect 上 bundle ID 与该项目构建的 bundle ID 相同的那个。两者都发送时,使用 projectId。 |
appId |
string | 与 projectId 二选一 |
— | 来自 appstore_list_apps 的 App Store Connect App ID,用于没有项目构建的 App。 |
appleTeamId |
字符串(UUID) | no | 所有已连接的 Apple 团队 | 团队的某个 Apple 团队,来自 appstore_list_apple_teams。配合 appId 时,只在这个 Apple 团队中查找该 App。配合 projectId 时不需要:由项目的 App 决定。 |
group |
string | yes | — | 群组的名称或 groupId,来自 appstore_list_beta_groups。 |
testers |
包含 1 到 50 个对象的数组 | yes | — | 要加入的人。 |
testers[].email |
字符串(电子邮件) | yes | — | 对方的电子邮件地址。 |
testers[].firstName |
string | no | — | 对方的名字。 |
testers[].lastName |
string | no | — | 对方的姓氏。 |
每个工具对输入所做的检查见 服务器与登录。
结果
一个 JSON 对象,同时以文本和 structuredContent 返回。
| 字段 | 说明 |
|---|---|
group |
群组(字段同 appstore_list_beta_groups) |
testers[].email |
发送的地址 |
testers[].result |
invited(新测试员)、added(已有测试员被加入该群组),或 Apple 拒绝此人时给出的句子 |
{
"group": {
"groupId": "00000000-0000-0000-0000-000000000000",
"name": "Friends",
"kind": "external",
"allBuilds": false,
"publicLink": "https://testflight.apple.com/join/XXXXXXXX",
"publicLinkLimit": 100,
"feedback": true
},
"testers": [
{
"email": "tester@example.com",
"result": "invited"
},
{
"email": "friend@example.com",
"result": "added"
}
]
}错误
每个错误都以工具错误(isError: true)返回。斜体 文字代表句中的具体值。所有工具都可能返回的错误见 服务器与登录。
| 消息 | 何时出现 | 怎么办 |
|---|---|---|
| testers must list at least one email. | testers 为空或不是列表 |
至少发送一名测试员 |
| No TestFlight group “group”. The app’s groups: names. | App 没有群组的名称(不区分大小写)或 groupId 与之匹配。没有任何群组时,列表显示为 “none — create one with appstore_create_beta_group” |
使用句中或 appstore_list_beta_groups 中的名称 |
| Pass projectId, or appId from appstore_list_apps. | projectId 和 appId 都没有发送 |
发送其中一个 |
| This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team’s Agent to build it, or pass appId. | 该项目从未构建过 iOS 版本 | 请项目的智能体构建一个 iOS 版本(send_message),或用 appId 指定 App |
| This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project’s), or pass appId. | 团队已连接的 Apple 团队中没有 App 的 bundle ID 与项目相同,或没有连接任何 Apple 团队 | 用 appstore_create_app 创建 App,或用 appId 指定另一个 App |
| No connected Apple team of this Team has that app. See appstore_list_apps. | appId 不是任何已连接 Apple 团队(或 appleTeamId)中的 App |
从 appstore_list_apps 获取 ID |
| App Store Connect: Apple’s sentence | Apple 拒绝了请求。后面最多附上 Apple 自己的五句话,Apple 指明相关字段时会在括号中注明。App Store Connect 中有待接受的 Apple 协议时,也会这样被拒绝 | 按 Apple 的说明处理。协议由 Apple Developer 账户的账户持有人在 App Store Connect 中接受(商务 › 协议) |
| App Store Connect answered status. Try again in a moment. | Apple 拒绝了,但没有说明原因 | 稍后再试 |
示例
{
"name": "appstore_invite_testers",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000",
"projectId": "00000000-0000-0000-0000-000000000000",
"group": "Friends",
"testers": [
{
"email": "tester@example.com",
"firstName": "Alex"
}
]
}
}