new_releases 更新:查看
版本说明,了解新功能和产品动态。
Method: phones.capability.requestCapabilityCallback
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis endpoint is deprecated and should be replaced with \u003ccode\u003ephones.getCapabilities\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for requesting a callback containing a user's capabilities via an asynchronous process.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using a POST HTTP request to a URL that includes the user's phone number in E.164 format.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a \u003ccode\u003erequestId\u003c/code\u003e field, which is a UUID assigned by the agent and included in the capability callback.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/rcsbusinessmessaging\u003c/code\u003e to be authorized.\u003c/p\u003e\n"]]],[],null,["# Method: phones.capability.requestCapabilityCallback\n\n| This item is deprecated!\nRequests a callback containing the capabilities of a user.\n\nFollowing this request, the agent receives an asynchronous callback with the user's capabilities. DEPRECATED: Please use phones.getCapabilities instead.\n\n### HTTP request\n\n`POST https://rcsbusinessmessaging.googleapis.com/v1/{name=phones/*}/capability:requestCapabilityCallback`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` \"phones/{E.164}/capability\", 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/capability:requestCapabilityCallback\u003e |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------|\n| ``` { \"requestId\": string } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestId` | `string` The ID of the request, assigned by the agent. This must be a UUID, as defined in \u003chttps://tools.ietf.org/html/rfc4122\u003e. This request ID is included in the capability callback, which returns asynchronously. |\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\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)."]]