Accounts: insert
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Yetkilendirme gerektiriyor
Bir kullanıcı için yeni hesap ekler
İstek
HTTP isteği
POST https://www.googleapis.com/mirror/v1/accounts/userToken/accountType/accountName
Parametreler
Parametre adı |
Değer |
Açıklama |
Yol parametreleri |
accountName |
string |
Android Hesap Yöneticisi'ne aktarılacak hesabın adı.
|
accountType |
string |
Android Hesap Yöneticisi'ne aktarılacak hesap türü.
|
userToken |
string |
Kullanıcının kimliği.
|
Yetkilendirme
Bu istek, aşağıdaki kapsamla yetkilendirme gerektiriyor (kimlik doğrulama ve yetkilendirme hakkında daha fazla bilgi edinin).
İstek içeriği
İstek gövdesinde bir Hesaplar kaynağı sağlayın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\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."]]