Method: people.get
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সম্পদের নাম উল্লেখ করে একজন ব্যক্তির সম্পর্কে তথ্য প্রদান করে। প্রমাণীকৃত ব্যবহারকারীকে নির্দেশ করতে people/me
ব্যবহার করুন।
'personFields' নির্দিষ্ট না থাকলে অনুরোধটি একটি 400 ত্রুটি প্রদান করে।
HTTP অনুরোধ
GET https://people.googleapis.com/v1/{resourceName=people/*}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
resourceName | string প্রয়োজন। তথ্য প্রদানের জন্য ব্যক্তির সম্পদের নাম। - প্রমাণীকৃত ব্যবহারকারী সম্পর্কে তথ্য পেতে,
people/me উল্লেখ করুন। - একটি google অ্যাকাউন্ট সম্পর্কে তথ্য পেতে,
people/{account_id} উল্লেখ করুন। - একটি পরিচিতি সম্পর্কে তথ্য পেতে, রিসোর্স নামটি নির্দিষ্ট করুন যা
people.connections.list দ্বারা প্রত্যাবর্তিত পরিচিতিটিকে চিহ্নিত করে।
|
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
requestMask (deprecated) | object ( RequestMask ) বঞ্চিত (অনুগ্রহ করে এর পরিবর্তে personFields ব্যবহার করুন) ব্যক্তি ক্ষেত্রের একটি উপসেটে ফলাফল সীমাবদ্ধ করার জন্য একটি মুখোশ। |
personFields | string ( FieldMask format) প্রয়োজন। ব্যক্তির কোন ক্ষেত্রগুলি ফেরত দেওয়া হবে তা সীমাবদ্ধ করার জন্য একটি ফিল্ড মাস্ক৷ একাধিক ক্ষেত্র কমা দিয়ে আলাদা করে নির্দিষ্ট করা যেতে পারে। বৈধ মান হল: - ঠিকানা
- বয়সসীমা
- জীবনী
- জন্মদিন
- ক্যালেন্ডার ইউআরএল
- ক্লায়েন্ট ডেটা
- আচ্ছাদিত ছবি
- ইমেইল ঠিকানা
- ঘটনা
- বাহ্যিক আইডি
- লিঙ্গ
- ক্লায়েন্ট
- স্বার্থ
- লোকেল
- অবস্থান
- সদস্যপদ
- মেটাডেটা
- মিসকিওয়ার্ড
- নাম
- ডাকনাম
- পেশা
- সংগঠন
- ফোন নাম্বারগুলো
- ফটো
- সম্পর্ক
- sip ঠিকানা
- দক্ষতা
- ইউআরএল
- ব্যবহারকারী সংজ্ঞায়িত
|
sources[] | enum ( ReadSourceType ) ঐচ্ছিক। কোন উৎসের ধরন ফেরাতে হবে তার একটি মুখোশ। READ_SOURCE_TYPE_PROFILE এবং READ_SOURCE_TYPE_CONTACT সেট না থাকলে ডিফল্ট। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Person
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
পাবলিক ডেটা অ্যাক্সেস করার জন্য কোনও অনুমোদনের প্রয়োজন নেই। ব্যক্তিগত ডেটার জন্য, নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/contacts
-
https://www.googleapis.com/auth/contacts.readonly
-
https://www.googleapis.com/auth/contacts.other.readonly
-
https://www.googleapis.com/auth/directory.readonly
-
https://www.googleapis.com/auth/profile.agerange.read
-
https://www.googleapis.com/auth/profile.emails.read
-
https://www.googleapis.com/auth/profile.language.read
-
https://www.googleapis.com/auth/user.addresses.read
-
https://www.googleapis.com/auth/user.birthday.read
-
https://www.googleapis.com/auth/user.emails.read
-
https://www.googleapis.com/auth/user.gender.read
-
https://www.googleapis.com/auth/user.organization.read
-
https://www.googleapis.com/auth/user.phonenumbers.read
-
https://www.googleapis.com/auth/userinfo.email
-
https://www.googleapis.com/auth/userinfo.profile
-
https://www.googleapis.com/auth/profile.language.read
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-08-06 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-08-06 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Retrieves information about a person, including the authenticated user using `people/me` or by specifying a resource name."],["Requires the `personFields` query parameter to specify which fields to include in the response, otherwise, it returns a 400 error."],["Allows filtering the source of the data using the `sources[]` parameter and supports various authorization scopes for accessing private data."],["Uses a `GET` request to the `https://people.googleapis.com/v1/{resourceName=people/*}` endpoint with optional query parameters."],["Response includes a [Person](/people/api/rest/v1/people#Person) object containing the requested information if successful."]]],["This outlines how to retrieve person information via a `GET` request to `https://people.googleapis.com/v1/{resourceName=people/*}`. The `resourceName` path parameter specifies the person (e.g., `people/me` for the authenticated user). The `personFields` query parameter is mandatory and dictates the data returned. The request body must be empty. A successful request returns a `Person` resource. Authorization is needed for private data. A `400` error is returned if `personFields` is not specified.\n"]]