AI-generated Key Takeaways
-
Inserting a new account requires authorization.
-
The request uses a POST method to a specific URL with parameters for userToken, accountType, and accountName.
-
The request body should contain an Accounts resource.
-
A successful response returns an Accounts resource.
Requires authorization
Inserts a new account for a user
Request
HTTP request
POST https://www.googleapis.com/mirror/v1/accounts/userToken/accountType/accountName
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
accountName |
string |
The name of the account to be passed to the Android Account Manager. |
accountType |
string |
Account type to be passed to Android Account Manager. |
userToken |
string |
The ID for the user. |
Authorization
This request requires authorization with the following scope (read more about authentication and authorization).
Scope |
---|
Request body
In the request body, supply an Accounts resource.
Response
If successful, this method returns an Accounts resource in the response body.