Method: accounts.notificationsubscriptions.create
একটি ব্যবসার জন্য একটি বিজ্ঞপ্তি সদস্যতা তৈরি করে। স্বতন্ত্র বা সাবঅ্যাকাউন্ট অ্যাকাউন্টের জন্য, ব্যবসা নিজের জন্য একটি সাবস্ক্রিপশন তৈরি করতে পারে। MCAs-এর জন্য, ব্যবসা সমস্ত পরিচালিত অ্যাকাউন্টের জন্য বা একটি নির্দিষ্ট উপ-অ্যাকাউন্টের জন্য একটি সাবস্ক্রিপশন তৈরি করতে পারে।
আমরা নিম্নলিখিত ধরণের বিজ্ঞপ্তি সাবস্ক্রিপশন একসাথে থাকতে দেব (প্রতি ইভেন্টের ধরন প্রতি গ্রাহক হিসাবে ব্যবসাপ্রতি):
সমস্ত পরিচালিত অ্যাকাউন্টের জন্য সদস্যতা + নিজের জন্য সদস্যতা।
পরিচালিত অ্যাকাউন্টের জন্য একাধিক "আংশিক" সদস্যতা + নিজের জন্য সদস্যতা।
আমরা অনুমতি দেব না (প্রতি ইভেন্টের ধরন প্রতি গ্রাহক হিসাবে ব্যবসায়):
একাধিক স্ব সদস্যতা.
একাধিক "সমস্ত পরিচালিত অ্যাকাউন্ট" সদস্যতা।
একই সময়ে "সমস্ত পরিচালিত অ্যাকাউন্ট" সদস্যতা এবং আংশিক সদস্যতা।
একই লক্ষ্য অ্যাকাউন্টের জন্য একাধিক আংশিক সদস্যতা।
HTTP অনুরোধ
POST https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
parent | string প্রয়োজন। নতুন বিজ্ঞপ্তি সদস্যতার মালিক বণিক অ্যাকাউন্ট। বিন্যাস: accounts/{account} |
শরীরের অনুরোধ
অনুরোধের মূল অংশে NotificationSubscription
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে NotificationSubscription
সাবস্ক্রিপশনের একটি নতুন তৈরি উদাহরণ রয়েছে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/content
আরো তথ্যের জন্য, দেখুনOAuth 2.0 Overview .
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-23 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-23 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This API creates notification subscriptions for businesses, allowing them to receive updates on various events."],["Businesses can create subscriptions for themselves, all managed accounts, or specific sub-accounts, with certain restrictions to avoid redundancy."],["The API requires a POST request to a specific URL with the merchant account ID and a request body containing the subscription details."],["A successful response will return the newly created notification subscription details."],["Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope."]]],["This describes how to create a notification subscription for a business via a `POST` request to `https://merchantapi.googleapis.com/notifications/v1beta/{parent=accounts/*}/notificationsubscriptions`. The request uses a `parent` path parameter specifying the merchant account. The request and response bodies are `NotificationSubscription` instances. Subscriptions can be for self or managed accounts, with restrictions preventing multiple full or partial subscriptions of the same type. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]