Method: accounts.notificationsubscriptions.list
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir satıcının tüm bildirim aboneliklerini alır.
HTTP isteği
GET https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Bildirim aboneliklerinin sahibi olan satıcı hesabı. Biçim: accounts/{account}
|
Sorgu parametreleri
Parametreler |
pageSize |
integer
Bir sayfada döndürülecek maksimum bildirim aboneliği sayısı. pageSize için varsayılan değer 100'dür. Maksimum değer 200 'tür. 200 'ün üzerindeki değerler 200 olarak zorlanacaktır.
|
pageToken |
string
Sonraki sayfayı almak için jeton (sağlanırsa). Diğer tüm parametreler, sayfa jetonunu sağlayan orijinal çağrıyla eşleşmelidir.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
ListNotificationSubscription yöntemi için yanıt mesajı.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
notificationSubscriptions[] |
object (NotificationSubscription )
Satıcı tarafından istenen bildirim aboneliklerinin listesi.
|
nextPageToken |
string
Sonraki sayfayı almak için pageToken olarak gönderilebilen bir jeton. Bu alan atlanırsa sonraki sayfa olmaz.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/content
Daha fazla bilgi için OAuth 2.0 Overview sayfasına bakı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-01-23 UTC.
[null,null,["Son güncelleme tarihi: 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)."]]