new_releases আপডেট : নতুন বৈশিষ্ট্য এবং পণ্য আপডেটের জন্য
রিলিজ নোট চেক করুন।
Method: users.batchGet
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্যবহারকারীদের একটি তালিকার জন্য RCS-সক্ষম ফোন নম্বর পায়।
প্রত্যাবর্তিত পেলোডে নির্দিষ্ট ব্যবহারকারীদের জন্য RBM প্ল্যাটফর্মের দ্বারা পৌঁছানো সম্ভব RCS-সক্ষম ফোন নম্বরগুলির একটি তালিকা রয়েছে৷ শুধুমাত্র যে ফোন নম্বরগুলিতে এজেন্ট চালু করা হয়েছে তার জন্য RCS-সক্ষম আছে তা ফেরত দেওয়া হবে।
প্রত্যাবর্তিত পেলোডে এমন মানও রয়েছে যা এজেন্টের লঞ্চ স্থিতি নির্বিশেষে ফোন নম্বরগুলির একটি তালিকার সম্ভাব্য নাগালের অনুমান করতে ব্যবহার করা যেতে পারে।
প্রতি মিনিটে সর্বোচ্চ 600টি প্রশ্ন (QPM)।
HTTP অনুরোধ
POST https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
শরীরের অনুরোধ
অনুরোধের অংশে নিম্নলিখিত কাঠামো সহ ডেটা রয়েছে:
JSON প্রতিনিধিত্ব |
---|
{
"users": [
string
],
"agentId": string
} |
ক্ষেত্র |
---|
users[] | string E.164 ফরম্যাটে ব্যবহারকারীদের ফোন নম্বরের তালিকা। |
agentId | string প্রয়োজন। এজেন্টের অনন্য শনাক্তকারী। |
প্রতিক্রিয়া শরীর
RBM-প্রাপ্যতা ব্যবহারকারী ডেটার সাথে প্রতিক্রিয়া।
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
JSON প্রতিনিধিত্ব |
---|
{
"reachableUsers": [
string
],
"totalRandomSampleUserCount": integer,
"reachableRandomSampleUserCount": integer
} |
ক্ষেত্র |
---|
reachableUsers[] | string ব্যবহারকারীদের ফোন নম্বরের তালিকা যা RBM পৌঁছাতে পারে। এজেন্ট চালু করা হয়েছে এমন ক্যারিয়ারে শুধুমাত্র ব্যবহারকারীদের অন্তর্ভুক্ত করে। |
totalRandomSampleUserCount | integer reachableUsers থেকে এলোমেলোভাবে নির্বাচিত ফোন নম্বরের সংখ্যা। সাধারণত, এই মানটি অনুরোধ করা মোট ফোন নম্বরের ~75%। অনুরোধ করা ফোন নম্বরের সংখ্যা 500-এর কম হলে এই মান 0 হয়। |
reachableRandomSampleUserCount | integer এজেন্টের লঞ্চ স্ট্যাটাস নির্বিশেষে, এলোমেলোভাবে নির্বাচিত তালিকা থেকে ফোন নম্বরগুলির গণনা যা সমস্ত ক্যারিয়ার জুড়ে RCS- পৌঁছানো যায়। এই মান এবং totalRandomSampleUserCount এর মধ্যে অনুপাত ব্যবহারকারীদের একটি তালিকার সম্ভাব্য নাগালের আনুমানিক পরিমাপ করতে পারে। |
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/rcsbusinessmessaging
আরো তথ্যের জন্য, দেখুনOAuth 2.0 Overview .
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis endpoint retrieves a list of RCS-enabled phone numbers for specified users that are reachable by the RBM platform, limited to carriers where the agent is launched.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003ereachableUsers\u003c/code\u003e, indicating which phone numbers are RCS-enabled and accessible via the launched agent's carriers.\u003c/p\u003e\n"],["\u003cp\u003eIt provides \u003ccode\u003etotalRandomSampleUserCount\u003c/code\u003e and \u003ccode\u003ereachableRandomSampleUserCount\u003c/code\u003e to estimate the potential reach of a user list, irrespective of the agent's launch status.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint is \u003ccode\u003ePOST https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet\u003c/code\u003e, with a maximum request rate of 600 queries per minute.\u003c/p\u003e\n"],["\u003cp\u003eTo make the call to this endpoint, the request body requires a list of user's phone number in E.164 format, and the agents unique identifier.\u003c/p\u003e\n"]]],[],null,["# Method: users.batchGet\n\nGets the RCS-enabled phone numbers for a list of users.\n\nThe returned payload contains a list of RCS-enabled phone numbers reachable by the RBM platform for the specified users. Only phone numbers that are RCS-enabled for a carrier the agent is launched on will be returned.\n\nThe returned payload also contains values that can be used to estimate the potential reach of a list of phone numbers regardless of the launch status of the agent.\n\nMaximum 600 queries per minute (QPM).\n\n### HTTP request\n\n`POST https://rcsbusinessmessaging.googleapis.com/v1/users:batchGet`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"users\": [ string ], \"agentId\": string } ``` |\n\n| Fields ||\n|-----------|--------------------------------------------------------|\n| `users[]` | `string` List of users' phone numbers in E.164 format. |\n| `agentId` | `string` Required. The agent's unique identifier. |\n\n### Response body\n\nResponse with RBM-reachability user data.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"reachableUsers\": [ string ], \"totalRandomSampleUserCount\": integer, \"reachableRandomSampleUserCount\": integer } ``` |\n\n| Fields ||\n|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `reachableUsers[]` | `string` List of users' phone numbers that RBM can reach. Only includes users on carriers that the agent is launched on. |\n| `totalRandomSampleUserCount` | `integer` Count of phone numbers randomly selected from [reachableUsers](/business-communications/rcs-business-messaging/reference/rest/v1/users/batchGet#body.BatchGetUsersResponse.FIELDS.reachable_users). Typically, this value is \\~75% of the total requested phone numbers. This value is `0` if the count of requested phone numbers is less than 500. |\n| `reachableRandomSampleUserCount` | `integer` Count of phone numbers from the randomly selected list that are RCS-reachable across all carriers, regardless of the agent's launch status. The ratio between this value and [totalRandomSampleUserCount](/business-communications/rcs-business-messaging/reference/rest/v1/users/batchGet#body.BatchGetUsersResponse.FIELDS.total_random_sample_user_count) can approximate the potential reach for a list of users. |\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)."]]