Webhook
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বিভিন্ন ধরনের ওয়েবহুকের জন্য মেটাডেটা। আপনি যদি inlineCloudFunction
ব্যবহার করেন, তাহলে আপনার সোর্স কোডটি অবশ্যই executeFunction
কী-এর মানের মতো একই নামের একটি ডিরেক্টরিতে থাকতে হবে। উদাহরণ স্বরূপ, executeFunction
কী-এর জন্য my_webhook
এর একটি মানের একটি কোড কাঠামো থাকবে এই রকম: - /webhooks/my_webhook.yaml
- /webhooks/my_webhook/index.js
- /webhooks/my_webhook/package.json
YAML প্রতিনিধিত্ব |
---|
handlers:
- object (Handler )
# Union field webhook_type can be only one of the following:
httpsEndpoint:
object (HttpsEndpoint )
inlineCloudFunction:
object (InlineCloudFunction )
# End of list of possible types for union field webhook_type . |
ক্ষেত্র |
---|
handlers[] | object ( Handler ) এই ওয়েবহুকের জন্য হ্যান্ডলারদের তালিকা। |
ইউনিয়ন ফিল্ড webhook_type । শুধুমাত্র একটি ওয়েবহুক টাইপ সমর্থিত। webhook_type নিম্নলিখিতগুলির মধ্যে একটি হতে পারে: |
httpsEndpoint | object ( HttpsEndpoint ) কাস্টম ওয়েবহুক HTTPS এন্ডপয়েন্ট। |
inlineCloudFunction | object ( InlineCloudFunction ) ওয়েবহুক ফোল্ডারে কোড থেকে ক্লাউড ফাংশনের জন্য মেটাডেটা স্থাপন করা হয়েছে। |
হ্যান্ডলার
ওয়েবহুক হ্যান্ডলারের নাম ঘোষণা করে। একটি ওয়েবহুকের একাধিক হ্যান্ডলার নিবন্ধিত থাকতে পারে। এই হ্যান্ডলারদের আপনার অ্যাকশন প্রকল্পের একাধিক জায়গা থেকে কল করা যেতে পারে।
YAML প্রতিনিধিত্ব |
---|
name: string |
ক্ষেত্র |
---|
name | string প্রয়োজন। হ্যান্ডলারের নাম। অ্যাকশন প্রজেক্টের সমস্ত হ্যান্ডলারদের মধ্যে অনন্য হতে হবে। আপনার পূর্ণতা উৎস কোডে সঠিক ফাংশন আহ্বান করতে আপনি এই হ্যান্ডলারের নাম পরীক্ষা করতে পারেন। |
Httpsএন্ডপয়েন্ট
আপনি যদি ইনলাইন এডিটর ব্যবহার না করেন তাহলে অবহিত করার জন্য REST এন্ডপয়েন্ট।
YAML প্রতিনিধিত্ব |
---|
baseUrl: string
httpHeaders:
string: string
endpointApiVersion: integer |
ক্ষেত্র |
---|
baseUrl | string আপনার পূরণের শেষ পয়েন্টের জন্য HTTPS বেস URL (HTTP সমর্থিত নয়)। হ্যান্ডলারের নামগুলি একটি কোলনের পরে বেস URL পাথে যুক্ত করা হয় ( https://cloud.google.com/apis/design/custom_methods-এ স্টাইল নির্দেশিকা অনুসরণ করে) । যেমন 'https://gactions.service.com/api'-এর একটি বেস URL 'https://gactions.service.com/api:{method}'-এর সাথে অনুরোধ পাবে। |
endpointApiVersion | integer এন্ডপয়েন্ট দ্বারা ব্যবহৃত প্রোটোকলের সংস্করণ। এই প্রোটোকলটি সমস্ত পূর্ণতা প্রকারের দ্বারা শেয়ার করা হয় এবং Google পূর্ণতা প্রকারের জন্য নির্দিষ্ট নয়। |
ইনলাইনক্লাউড ফাংশন
ওয়েবহুক ফোল্ডার থেকে স্থাপন করা একটি ইনলাইন ক্লাউড ফাংশনের মেটাডেটা ধারণ করে।
YAML প্রতিনিধিত্ব |
---|
executeFunction: string |
ক্ষেত্র |
---|
executeFunction | string ক্লাউড ফাংশন এন্ট্রি পয়েন্টের নাম। এই ক্ষেত্রের মান উৎস কোড থেকে রপ্তানি করা পদ্ধতির নামের সাথে মেলে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eWebhooks use YAML to define metadata for different handler types like HTTPS endpoints and inline Cloud Functions.\u003c/p\u003e\n"],["\u003cp\u003eInline Cloud Functions require source code in a directory matching the \u003ccode\u003eexecuteFunction\u003c/code\u003e value.\u003c/p\u003e\n"],["\u003cp\u003eHandlers specify the webhook's name and can be invoked from various points in your Actions project.\u003c/p\u003e\n"],["\u003cp\u003eHTTPS endpoints define the base URL and optional HTTP headers for external fulfillment.\u003c/p\u003e\n"],["\u003cp\u003eInline Cloud Functions use the \u003ccode\u003eexecuteFunction\u003c/code\u003e field to identify the entry point in your source code.\u003c/p\u003e\n"]]],[],null,["# Webhook\n\n- [YAML representation](#SCHEMA_REPRESENTATION)\n- [Handler](#Handler)\n - [YAML representation](#Handler.SCHEMA_REPRESENTATION)\n- [HttpsEndpoint](#HttpsEndpoint)\n - [YAML representation](#HttpsEndpoint.SCHEMA_REPRESENTATION)\n- [InlineCloudFunction](#InlineCloudFunction)\n - [YAML representation](#InlineCloudFunction.SCHEMA_REPRESENTATION)\n\nMetadata for different types of webhooks. If you're using `inlineCloudFunction`, your source code must be in a directory with the same name as the value for the `executeFunction` key. For example, a value of `my_webhook` for the`executeFunction` key would have a code structure like this: - `/webhooks/my_webhook.yaml` - `/webhooks/my_webhook/index.js` - `/webhooks/my_webhook/package.json`\n\n| YAML representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` handlers: - object (/assistant/actionssdk/reference/rest/Shared.Types/Webhook#Handler) # Union field `webhook_type` can be only one of the following: httpsEndpoint: object (/assistant/actionssdk/reference/rest/Shared.Types/Webhook#HttpsEndpoint) inlineCloudFunction: object (/assistant/actionssdk/reference/rest/Shared.Types/Webhook#InlineCloudFunction) # End of list of possible types for union field `webhook_type`. ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `handlers[]` | `object (`[Handler](/assistant/actionssdk/reference/rest/Shared.Types/Webhook#Handler)`)` List of handlers for this webhook. |\n| Union field `webhook_type`. Only one webhook type is supported. `webhook_type` can be only one of the following: |||\n| `httpsEndpoint` | `object (`[HttpsEndpoint](/assistant/actionssdk/reference/rest/Shared.Types/Webhook#HttpsEndpoint)`)` Custom webhook HTTPS endpoint. |\n| `inlineCloudFunction` | `object (`[InlineCloudFunction](/assistant/actionssdk/reference/rest/Shared.Types/Webhook#InlineCloudFunction)`)` Metadata for cloud function deployed from code in the webhooks folder. |\n\nHandler\n-------\n\nDeclares the name of the webhoook handler. A webhook can have multiple handlers registered. These handlers can be called from multiple places in your Actions project.\n\n| YAML representation ||\n|----------------------|---|\n| ``` name: string ``` |\n\n| Fields ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Name of the handler. Must be unique across all handlers the Actions project. You can check the name of this handler to invoke the correct function in your fulfillment source code. |\n\nHttpsEndpoint\n-------------\n\nREST endpoint to notify if you're not using the inline editor.\n\n| YAML representation ||\n|---------------------------------------------------------------------------------|---|\n| ``` baseUrl: string httpHeaders: string: string endpointApiVersion: integer ``` |\n\n| Fields ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `baseUrl` | `string` The HTTPS base URL for your fulfillment endpoint (HTTP is not supported). Handler names are appended to the base URL path after a colon (following the style guide in \u003chttps://cloud.google.com/apis/design/custom_methods)\u003e. For example a base URL of 'https://gactions.service.com/api' would receive requests with URL 'https://gactions.service.com/api:{method}'. |\n| `httpHeaders` | `map (key: string, value: string)` Map of HTTP parameters to be included in the POST request. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `endpointApiVersion` | `integer` Version of the protocol used by the endpoint. This is the protocol shared by all fulfillment types and not specific to Google fulfillment type. |\n\nInlineCloudFunction\n-------------------\n\nHolds the metadata of an inline Cloud Function deployed from the webhooks folder.\n\n| YAML representation ||\n|---------------------------------|---|\n| ``` executeFunction: string ``` |\n\n| Fields ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `executeFunction` | `string` The name of the Cloud Function entry point. The value of this field should match the name of the method exported from the source code. |"]]