Method: accounts.list

Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights.

HTTP request

GET https://mybusiness.googleapis.com/v3/accounts

The URL uses Google API HTTP annotation syntax.

Query parameters

Parameters
pageSize

number

How many accounts to fetch per page. Default is 50, minimum is 1, and maximum page size is 50.

pageToken

string

If specified, the next page of accounts is retrieved. The pageToken is returned when a call to accounts.list returns more results than can fit into the requested page size.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "accounts": [
    {
      object(Account)
    }
  ],
  "nextPageToken": string,
}
Fields
accounts[]

object(Account)

A collection of accounts to which the user has access.

nextPageToken

string

If the number of accounts exceeds the requested page size, this field is populated with a token to fetch the next page of accounts on a subsequent call to accounts.list. If there are no more accounts, this field is not present in the response.

Authorization

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/plus.business.manage

For more information, see the Auth Guide.

Enviar comentarios sobre…

Google My Business API
Google My Business API
¿Necesitas ayuda? Visita nuestra página de asistencia.