Method: accounts.notificationsubscriptions.list
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Obtiene todas las suscripciones a notificaciones de un comercio.
Solicitud HTTP
GET https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
parent |
string
Obligatorio. La cuenta del comerciante propietaria de las suscripciones a notificaciones Formato: accounts/{account}
|
Parámetros de consulta
Parámetros |
pageSize |
integer
Es la cantidad máxima de suscripciones a notificaciones que se mostrarán en una página. El valor predeterminado para pageSize es 100. El valor máximo es 200 . Los valores superiores a 200 se convertirán a 200 .
|
pageToken |
string
Token (si se proporciona) para recuperar la página siguiente. Todos los demás parámetros deben coincidir con la llamada original que proporcionó el token de la página.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Mensaje de respuesta para el método ListNotificationSubscription.
Si se ejecuta correctamente, el cuerpo de la respuesta contendrá datos con la siguiente estructura:
Campos |
notificationSubscriptions[] |
object (NotificationSubscription )
Es la lista de suscripciones a notificaciones que solicitó el comercio.
|
nextPageToken |
string
Un token, que se puede enviar como pageToken para recuperar la página siguiente. Si se omite este campo, no habrá páginas siguientes.
|
Alcances de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/content
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-01-23 (UTC)
[null,null,["Última actualización: 2025-01-23 (UTC)"],[[["\u003cp\u003eRetrieves all notification subscriptions for a specified merchant account using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eAllows pagination with \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters to control the number of results and navigate through pages.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003eNotificationSubscription\u003c/code\u003e objects and a \u003ccode\u003enextPageToken\u003c/code\u003e if further pages are available.\u003c/p\u003e\n"],["\u003cp\u003eRequires authentication with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.notificationsubscriptions.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.ListNotificationSubscriptionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets all the notification subscriptions for a merchant.\n\n### HTTP request\n\n`GET https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The merchant account who owns the notification subscriptions. Format: `accounts/{account}` |\n\n### Query parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of notification subscriptions to return in a page. The default value for `pageSize` is 100. The maximum value is `200`. Values above `200` will be coerced to `200`. |\n| `pageToken` | `string` Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for the ListNotificationSubscription method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"notificationSubscriptions\": [ { object (/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions#NotificationSubscription) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `notificationSubscriptions[]` | `object (`[NotificationSubscription](/merchant/api/reference/rest/notifications_v1beta/accounts.notificationsubscriptions#NotificationSubscription)`)` The list of notification subscriptions requested by the merchant. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]