Method: accounts.notificationsubscriptions.list
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Получает все подписки на уведомления для продавца.
HTTP-запрос
GET https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
parent | string Необходимый. Учетная запись продавца, которому принадлежат подписки на уведомления. Формат: accounts/{account} |
Параметры запроса
Параметры |
---|
page Size | integer Максимальное количество подписок на уведомления, возвращаемых на странице. Значение по умолчанию для pageSize — 100. Максимальное значение — 200 . Значения выше 200 будут уменьшены до 200 . |
page Token | string Токен (если предоставлен) для получения следующей страницы. Все остальные параметры должны соответствовать исходному вызову, который предоставил токен страницы. |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
Ответное сообщение для метода ListNotificationSubscription.
В случае успеха тело ответа содержит данные следующей структуры:
Поля |
---|
notification Subscriptions[] | object ( NotificationSubscription ) Список подписок на уведомления, запрошенных продавцом. |
next Page Token | string Токен, который можно отправить как pageToken для получения следующей страницы. Если это поле опущено, последующие страницы отсутствуют. |
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/content
Для получения дополнительной информации см.OAuth 2.0 Overview .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-23 UTC.
[null,null,["Последнее обновление: 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)."]]