গুগল ক্লাসরুম অ্যাড-অনগুলি এখন সাধারণত বিকাশকারীদের জন্য উপলব্ধ! আরও তথ্যের জন্য
অ্যাড-অন ডকুমেন্টেশন দেখুন.
Method: invitations.list
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আমন্ত্রণগুলির একটি তালিকা ফেরত দেয় যা অনুরোধকারী ব্যবহারকারীকে দেখার অনুমতি দেওয়া হয়, তালিকা অনুরোধের সাথে মেলে সেইগুলির জন্য সীমাবদ্ধ৷
দ্রষ্টব্য: কমপক্ষে একটি userId
বা courseId
অবশ্যই সরবরাহ করতে হবে। উভয় ক্ষেত্রেই সরবরাহ করা যেতে পারে।
এই পদ্ধতি নিম্নলিখিত ত্রুটি কোড প্রদান করে:
HTTP অনুরোধ
GET https://classroom.googleapis.com/v1/invitations
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
userId | string একটি নির্দিষ্ট ব্যবহারকারীর জন্য ফিরে আসা আমন্ত্রণগুলিকে সীমাবদ্ধ করে। শনাক্তকারী নিম্নলিখিতগুলির মধ্যে একটি হতে পারে: - ব্যবহারকারীর জন্য সংখ্যাসূচক শনাক্তকারী
- ব্যবহারকারীর ইমেল ঠিকানা
- স্ট্রিং আক্ষরিক
"me" , অনুরোধকারী ব্যবহারকারীকে নির্দেশ করে
|
courseId | string নির্দিষ্ট শনাক্তকারীর সাথে একটি কোর্সের জন্য ফিরে আসা আমন্ত্রণগুলিকে সীমাবদ্ধ করে৷ |
pageSize | integer ফেরত দিতে আইটেম সর্বোচ্চ সংখ্যা. অনির্দিষ্ট থাকলে ডিফল্ট 500 বা 0 । সার্ভার নির্দিষ্ট সংখ্যক ফলাফলের চেয়ে কম ফেরত দিতে পারে। |
pageToken | string nextPageToken মান একটি পূর্ববর্তী list কল থেকে ফিরে এসেছে, এটি নির্দেশ করে যে ফলাফলের পরবর্তী পৃষ্ঠাটি ফেরত দেওয়া উচিত। list অনুরোধটি অন্যথায় এই টোকেনটির ফলে অনুরূপ হতে হবে। |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
আমন্ত্রণ তালিকা করার সময় প্রতিক্রিয়া.
সফল হলে, প্রতিক্রিয়া বডিতে নিম্নলিখিত কাঠামোর সাথে ডেটা থাকে:
JSON প্রতিনিধিত্ব |
---|
{
"invitations": [
{
object (Invitation )
}
],
"nextPageToken": string
} |
ক্ষেত্র |
---|
invitations[] | object ( Invitation ) তালিকার অনুরোধের সাথে মেলে এমন আমন্ত্রণ। |
nextPageToken | string টোকেন চিহ্নিত করে ফলাফলের পরবর্তী পৃষ্ঠায় ফিরতে হবে। খালি থাকলে, আর কোন ফলাফল পাওয়া যায় না। |
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/classroom.rosters
-
https://www.googleapis.com/auth/classroom.rosters.readonly
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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: invitations.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListInvitationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nReturns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request.\n\n*Note:* At least one of `userId` or `courseId` must be supplied. Both fields can be supplied.\n\nThis method returns the following error codes:\n\n- `PERMISSION_DENIED` for [access errors](/workspace/classroom/reference/Access.Errors).\n\n### HTTP request\n\n`GET https://classroom.googleapis.com/v1/invitations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `userId` | `string` Restricts returned invitations to those for a specific user. The identifier can be 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| `courseId` | `string` Restricts returned invitations to those for a course with the specified identifier. |\n| `pageSize` | `integer` Maximum number of items to return. The default is 500 if unspecified or `0`. The server may return fewer than the specified number of results. |\n| `pageToken` | `string` [nextPageToken](/workspace/classroom/reference/rest/v1/invitations/list#body.ListInvitationsResponse.FIELDS.next_page_token) value returned from a previous [list](/workspace/classroom/reference/rest/v1/invitations/list#google.classroom.v1.Invitations.ListInvitations) call, indicating that the subsequent page of results should be returned. The [list](/workspace/classroom/reference/rest/v1/invitations/list#google.classroom.v1.Invitations.ListInvitations) request must be otherwise identical to the one that resulted in this token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse when listing invitations.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"invitations\": [ { object (/workspace/classroom/reference/rest/v1/invitations#Invitation) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `invitations[]` | `object (`[Invitation](/workspace/classroom/reference/rest/v1/invitations#Invitation)`)` Invitations that match the list request. |\n| `nextPageToken` | `string` Token identifying the next page of results to return. If empty, no further results are available. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/classroom.rosters`\n- `\n https://www.googleapis.com/auth/classroom.rosters.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]