Accounts: insert
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتطلّب تفويضًا
يدرج حسابًا جديدًا لمستخدم
الطلب
طلب HTTP
POST https://www.googleapis.com/mirror/v1/accounts/userToken/accountType/accountName
المعلمات
اسم المعلَمة |
القيمة |
الوصف |
مَعلمات المسار |
accountName |
string |
اسم الحساب الذي سيتم تمريره إلى مدير حساب Android.
|
accountType |
string |
نوع الحساب الذي سيتم تمريره إلى مدير حساب Android.
|
userToken |
string |
رقم تعريف المستخدم.
|
التفويض
يتطلب هذا الطلب تفويضًا بالنطاق التالي (مزيد من المعلومات عن المصادقة والترخيص).
نص الطلب
في نص الطلب، أضِف مورد الحسابات.
الرد
في حال نجاح هذه الطريقة، سيتم عرض مورد الحسابات في نص الاستجابة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eInserts a new user account, requiring authorization with specified scope.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a POST request to a designated endpoint with account name, type, and user ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires an Accounts resource and a successful response returns the same.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary and details regarding authentication and authorization can be found in the provided documentation link.\u003c/p\u003e\n"]]],[],null,["# Accounts: insert\n\n**Requires [authorization](#auth)**\n\nInserts a new account for a user\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/mirror/v1/accounts/userToken/accountType/accountName\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|----------------------------------------------------------------------|\n| **Path parameters** |||\n| `accountName` | `string` | The name of the account to be passed to the Android Account Manager. |\n| `accountType` | `string` | Account type to be passed to Android Account Manager. |\n| `userToken` | `string` | The ID for the user. |\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/glass/authorization)).\n\n| Scope |\n|-------|\n\n### Request body\n\nIn the request body, supply an [Accounts resource](/glass/v1/reference/accounts#resource).\n\nResponse\n--------\n\nIf successful, this method returns an [Accounts resource](/glass/v1/reference/accounts#resource) in the response body."]]