new_releases بهروزرسانیها :
یادداشتهای انتشار را برای ویژگیهای جدید و بهروزرسانیهای محصول بررسی کنید.
Method: phones.capability.requestCapabilityCallback
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
درخواست پاسخ به تماس شامل قابلیت های یک کاربر می کند.
به دنبال این درخواست، نماینده یک تماس ناهمزمان با قابلیت های کاربر دریافت می کند. منسوخ شده: لطفاً به جای آن از phones.getCapabilities استفاده کنید.
درخواست HTTP
POST https://rcsbusinessmessaging.googleapis.com/v1/{name=phones/*}/capability:requestCapabilityCallback
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
name | string "phones/{E.164}/capability"، که در آن {E.164} شماره تلفن کاربر در قالب E.164 است. به عنوان مثال، با شماره تلفن ایالات متحده +1-222-333-4444، نقطه پایان حاصل https://rcsbusinessmessaging.googleapis.com/v1/phones/+12223334444/capability:requestCapabilityCallback خواهد بود. |
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"requestId": string
} |
فیلدها |
---|
requestId | string شناسه درخواست، که توسط نماینده تعیین شده است. این باید یک UUID باشد، همانطور که در https://tools.ietf.org/html/rfc4122 تعریف شده است. این شناسه درخواست در قابلیت callback گنجانده شده است که به صورت ناهمزمان برمی گردد. |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ یک شی JSON خالی است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/rcsbusinessmessaging
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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)."]]