Method: players.list
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
احصل على مجموعة اللاعبين للمستخدم الذي تمت مصادقته حاليًا.
طلب HTTP
GET https://games.googleapis.com/games/v1/players/me/players/{collection}
مَعلمات المسار
المعلمات |
collection |
enum (Collection )
مجموعة اللاعبين الذين يتم استردادهم
|
معامِلات طلب البحث
المعلمات |
language |
string
اللغة المفضلة المراد استخدامها للسلاسل التي يتم عرضها بهذه الطريقة.
|
maxResults |
integer
الحد الأقصى لعدد موارد اللاعب التي يمكن عرضها في الردّ، ويتم استخدامه لنقل البيانات بالنسبة إلى أي استجابة، قد يكون العدد الفعلي لموارد اللاعب التي تم عرضها أقل من maxResults المحدّدة.
|
pageToken |
string
الرمز المميّز الذي تم عرضه من خلال الطلب السابق
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
استجابة لقائمة مشغّلات من جهة خارجية
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تمثيل JSON |
{
"kind": string,
"nextPageToken": string,
"items": [
{
object (Player )
}
]
} |
الحقول |
kind |
string
تُحدِّد نوع هذا المورد بشكلٍ فريد. وتكون القيمة دائمًا هي السلسلة الثابتة games#playerListResponse .
|
nextPageToken |
string
الرمز المميّز المقابل لصفحة النتائج التالية.
|
items[] |
object (Player )
اللاعبون.
|
نطاقات الأذونات
يتطلب هذا الإعداد أحد نطاقات OAuth التالية:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
لمزيد من المعلومات، يُرجى الاطِّلاع على نظرة عامة على OAuth 2.0.
مجموعة
عمليات التعداد |
CONNECTED |
يمكنك استرداد قائمة باللاعبين الذين يلعبون هذه اللعبة أيضًا بترتيب زمني عكسي. |
VISIBLE |
استرداد قائمة باللاعبين في الرسم البياني الاجتماعي الخاص بالمستخدم والظاهرة لهذه اللعبة. |
FRIENDS_ALL |
يمكنك استرداد قائمة باللاعبين الذين هم أصدقاء للمستخدم بالترتيب الأبجدي. |
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Method: players.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPlayersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Collection](#Collection)\n- [Try it!](#try-it)\n\nGet the collection of players for the currently authenticated user.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/players/me/players/{collection}`\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------|\n| `collection` | `enum (`[Collection](/games/services/web/api/rest/v1/players/list#Collection)`)` Collection of players being retrieved |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `language` | `string` The preferred language to use for strings returned by this method. |\n| `maxResults` | `integer` The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified `maxResults`. |\n| `pageToken` | `string` The token returned by the previous request. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party player list response.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"nextPageToken\": string, \"items\": [ { object (/games/services/web/api/rest/v1/players#Player) } ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#playerListResponse`. |\n| `nextPageToken` | `string` Token corresponding to the next page of results. |\n| `items[]` | `object (`[Player](/games/services/web/api/rest/v1/players#Player)`)` The players. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nCollection\n----------\n\n| Enums ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CONNECTED` | Retrieve a list of players that are also playing this game in reverse chronological order. | The CONNECTED collection of G+ friends is deprecated, use the FRIENDS_ALL collection instead. |\n| `VISIBLE` | Retrieve a list of players in the user's social graph that are visible to this game. | The VISIBLE collection of G+ friends is deprecated, use the FRIENDS_ALL collection instead. |\n| `FRIENDS_ALL` | Retrieve a list of players who are friends of the user in alphabetical order. |"]]