প্রোফাইল পড়ুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি Get Ready to Use the People API- এর ধাপগুলি সম্পূর্ণ করার পরে, আপনি প্রোফাইলের ডেটা পড়তে প্রস্তুত৷
নিম্নলিখিত কোড নমুনাগুলি দেখায় কিভাবে কয়েকটি সহজ অনুরোধ পাঠাতে হয়। পদ্ধতির সম্পূর্ণ তালিকার জন্য, রেফারেন্স ডকুমেন্টেশন দেখুন।
প্রমাণীকৃত ব্যবহারকারীর জন্য ব্যক্তি পান
ব্যবহারকারীর প্রোফাইল পেতে , নিম্নলিখিত কোড ব্যবহার করুন:
প্রোটোকল
GET /v1/people/me?personFields=names,emailAddresses HTTP/1.1
Host: people.googleapis.com
জাভা
Person profile = peopleService.people().get("people/me")
.setPersonFields("names,emailAddresses")
.execute();
পাইথন
profile = people_service.people()
.get('people/me', personFields='names,emailAddresses')
পিএইচপি
$profile = $people_service->people->get(
'people/me', array('personFields' => 'names,emailAddresses'));
.নেট
PeopleResource.GetRequest peopleRequest =
peopleService.People.Get("people/me");
peopleRequest.PersonFields = "names,emailAddresses";
Person profile = peopleRequest.Execute();
একটি Google অ্যাকাউন্ট আইডির জন্য ব্যক্তি পান
একটি Google অ্যাকাউন্ট আইডির জন্য ব্যক্তির তথ্য পেতে , নিম্নলিখিত কোডটি ব্যবহার করুন:
প্রোটোকল
GET /v1/people/account_id?personFields=names,emailAddresses HTTP/1.1
Host: people.googleapis.com
জাভা
Person profile = peopleService.people().get("people/account_id")
.setPersonFields("names,emailAddresses")
.execute();
পাইথন
profile = people_service.people()
.get('people/account_id', personFields='names,emailAddresses')
পিএইচপি
$profile = $people_service->people->get(
'people/account_id', array('personFields' => 'names,emailAddresses'));
.নেট
PeopleResource.GetRequest peopleRequest =
peopleService.People.Get("people/account_id");
peopleRequest.PersonFields = "names,emailAddresses";
Person profile = peopleRequest.Execute();
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-23 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-11-23 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This page provides code samples demonstrating how to read profile data using the People API after completing the initial setup."],["You can retrieve the authenticated user's profile, including names and email addresses, using the provided code snippets."],["The guide also includes code examples for fetching profile information for a specific Google Account ID, specifying the desired person fields."]]],["The provided code samples demonstrate how to retrieve profile data using the People API. Users can get the authenticated user's profile by sending a `GET` request to `/v1/people/me` or retrieve a profile by Google Account ID using `/v1/people/\u003caccount_id\u003e`. Both requests use the `personFields` parameter, specifying `names,emailAddresses` to filter for those specific fields. Different languages are exemplified such as Java, Python, PHP and .NET, showing how to form the API request.\n"]]