গুগল ক্লাসরুম অ্যাড-অনগুলি এখন সাধারণত বিকাশকারীদের জন্য উপলব্ধ! আরও তথ্যের জন্য
অ্যাড-অন ডকুমেন্টেশন দেখুন.
Method: userProfiles.guardians.get
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি নির্দিষ্ট অভিভাবক ফেরত দেয়।
এই পদ্ধতি নিম্নলিখিত ত্রুটি কোড প্রদান করে:
-
PERMISSION_DENIED
যদি প্রদত্ত studentId
সাথে মেলে এমন কোনও ব্যবহারকারী অনুরোধকারী ব্যবহারকারীর কাছে দৃশ্যমান না হয়, যদি অনুরোধকারী ব্যবহারকারীকে studentId
দ্বারা চিহ্নিত ছাত্রের অভিভাবকদের তথ্য দেখার অনুমতি না দেওয়া হয়, যদি প্রশ্নে থাকা ডোমেনের জন্য অভিভাবকরা সক্ষম না থাকে, বা অন্যান্য অ্যাক্সেস ত্রুটির জন্য। -
INVALID_ARGUMENT
যদি একটি studentId
নির্দিষ্ট করা থাকে, কিন্তু এর বিন্যাসটি স্বীকৃত হতে পারে না (এটি একটি ইমেল ঠিকানা নয়, না API থেকে একটি studentId
, বা আক্ষরিক স্ট্রিং me
)। -
NOT_FOUND
যদি অনুরোধকারী ব্যবহারকারীকে অনুরোধ করা studentId
জন্য অভিভাবকদের দেখার অনুমতি দেওয়া হয়, কিন্তু প্রদত্ত guardianId
সাথে মেলে সেই ছাত্রের জন্য কোনো Guardian
রেকর্ড বিদ্যমান নেই।
HTTP অনুরোধ
GET https://classroom.googleapis.com/v1/userProfiles/{studentId}/guardians/{guardianId}
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
studentId | string যে শিক্ষার্থীর অভিভাবককে অনুরোধ করা হচ্ছে। নিম্নলিখিতগুলির মধ্যে একটি: - ব্যবহারকারীর জন্য সংখ্যাসূচক শনাক্তকারী
- ব্যবহারকারীর ইমেল ঠিকানা
- স্ট্রিং আক্ষরিক
"me" , অনুরোধকারী ব্যবহারকারীকে নির্দেশ করে
|
guardianId | string একজন Guardian কাছ থেকে id ক্ষেত্র। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Guardian
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly
-
https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly
-
https://www.googleapis.com/auth/classroom.guardianlinks.students
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: userProfiles.guardians.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns a specific guardian.\n\nThis method returns the following error codes:\n\n- `PERMISSION_DENIED` if no user that matches the provided `studentId` is visible to the requesting user, if the requesting user is not permitted to view guardian information for the student identified by the `studentId`, if guardians are not enabled for the domain in question, or for other [access errors](/workspace/classroom/reference/Access.Errors).\n- `INVALID_ARGUMENT` if a `studentId` is specified, but its format cannot be recognized (it is not an email address, nor a `studentId` from the API, nor the literal string `me`).\n- `NOT_FOUND` if the requesting user is permitted to view guardians for the requested `studentId`, but no `Guardian` record exists for that student that matches the provided `guardianId`.\n\n### HTTP request\n\n`GET https://classroom.googleapis.com/v1/userProfiles/{studentId}/guardians/{guardianId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `studentId` | `string` The student whose guardian is being requested. One of the following: - the numeric identifier for the user - the email address of the user - the string literal `\"me\"`, indicating the requesting user |\n| `guardianId` | `string` The `id` field from a `Guardian`. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Guardian](/workspace/classroom/reference/rest/v1/userProfiles.guardians#Guardian).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly`\n- `\n https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly`\n- `\n https://www.googleapis.com/auth/classroom.guardianlinks.students`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]