new_releases 更新:查看
版本说明,了解新功能和产品动态。
Method: phones.testers.create
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
邀请用户测试代理。
受邀用户必须启用 RCS,并且可通过 RBM 平台联系。当代理邀请用户成为测试人员时,RBM 平台管理代理会向用户发送消息,请求确认其想要成为代理的测试人员。用户确认后,她就会成为测试人员。
尚未发布的代理只能与作为该代理的测试人员的用户进行互动。如果某个未发布的代理尝试向非测试人员发送消息、事件或功能回调,则 RBM 平台会返回 403 PERMISSION_DENIED
错误。
一个代理每天可以发送 20 个测试人员请求,总共最多 200 个测试人员请求。如果您发送的测试人员请求超出这些限制,RBM 平台会返回 429 RESOURCE_EXHAUSTED
响应。
HTTP 请求
POST https://rcsbusinessmessaging.googleapis.com/v1/{parent=phones/*}/testers
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
"phones/{E.164}”,其中 {E.164} 是用户的电话号码(采用 E.164 格式)。例如,如果输入美国电话号码 +1-222-333-4444,生成的端点将为 https://rcsbusinessmessaging.googleapis.com/v1/phones/+12223334444/testers/。
|
查询参数
参数 |
agentId |
string
必需。代理的唯一标识符。
|
响应正文
如果成功,响应正文将包含一个新创建的 Tester
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/rcsbusinessmessaging
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eUsers can be invited to test an agent, but they must be RCS-enabled and reachable by the RBM platform, and they must also confirm their desire to be a tester.\u003c/p\u003e\n"],["\u003cp\u003eUnlaunched agents can only interact with users who have been confirmed as testers, otherwise a \u003ccode\u003e403 PERMISSION_DENIED\u003c/code\u003e error will occur.\u003c/p\u003e\n"],["\u003cp\u003eAn agent is restricted to sending only 20 tester requests per day, with a maximum of 200 tester requests total, exceeding these limits results in a \u003ccode\u003e429 RESOURCE_EXHAUSTED\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eThe URL endpoint for sending a request to invite a tester follows the format \u003ccode\u003ePOST https://rcsbusinessmessaging.googleapis.com/v1/{parent=phones/*}/testers\u003c/code\u003e where the phone number of the user must be in E.164 format.\u003c/p\u003e\n"],["\u003cp\u003eAn agent's unique identifier is required in the request as the \u003ccode\u003eagentId\u003c/code\u003e query parameter.\u003c/p\u003e\n"]]],[],null,["# Method: phones.testers.create\n\nInvites a user to test an agent.\n\nThe invited user must be RCS-enabled and reachable by the RBM platform. When an agent invites a user to become a tester, an RBM platform management agent sends a message to the user asking for confirmation that she wants to be a tester of the agent. Once the user confirms, she becomes a tester.\n\nAn agent that has not yet launched can only interact with users who are testers of that agent. If an unlaunched agent attempts to send a message, event, or capability callback to a non-tester, the RBM platform returns a `403 PERMISSION_DENIED` error.\n\nAn agent can send 20 tester requests each day with a total maximum of 200 tester requests. If you send tester requests above those limits, the RBM platform returns a `429 RESOURCE_EXHAUSTED` response.\n\n### HTTP request\n\n`POST https://rcsbusinessmessaging.googleapis.com/v1/{parent=phones/*}/testers`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` \"phones/{E.164}\", where {E.164} is the user's phone number in E.164 format. For example, with the US phone number +1-222-333-4444, the resulting endpoint would be \u003chttps://rcsbusinessmessaging.googleapis.com/v1/phones/+12223334444/testers/\u003e. |\n\n### Query parameters\n\n| Parameters ||\n|-----------|---------------------------------------------------|\n| `agentId` | `string` Required. The agent's unique identifier. |\n\n### Request body\n\nThe request body contains an instance of [Tester](/business-communications/rcs-business-messaging/reference/rest/v1/phones.testers#Tester).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Tester](/business-communications/rcs-business-messaging/reference/rest/v1/phones.testers#Tester).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/rcsbusinessmessaging`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]