docs/WebhookApi.md in smooch-api-4.1.0 vs docs/WebhookApi.md in smooch-api-4.2.0

- old
+ new

@@ -10,11 +10,11 @@ [**list_webhooks**](WebhookApi.md#list_webhooks) | **GET** /v1.1/apps/{appId}/webhooks | [**update_webhook**](WebhookApi.md#update_webhook) | **PUT** /v1.1/apps/{appId}/webhooks/{webhookId} | # **create_webhook** -> WebhookResponse create_webhook(app_id, webhook_create_body) +> WebhookResponse create_webhook(appId, webhookCreateBody) Create a webhook for the specified app. @@ -29,29 +29,29 @@ config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = SmoochApi::WebhookApi.new -app_id = "app_id_example" # String | Identifies the app. +appId = "appId_example" # String | Identifies the app. -webhook_create_body = SmoochApi::WebhookCreate.new # WebhookCreate | Body for a createWebhook request. +webhookCreateBody = SmoochApi::WebhookCreate.new # WebhookCreate | Body for a createWebhook request. begin - result = api_instance.create_webhook(app_id, webhook_create_body) + result = api_instance.create_webhook(appId, webhookCreateBody) p result rescue SmoochApi::ApiError => e puts "Exception when calling WebhookApi->create_webhook: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **app_id** | **String**| Identifies the app. | - **webhook_create_body** | [**WebhookCreate**](WebhookCreate.md)| Body for a createWebhook request. | + **appId** | **String**| Identifies the app. | + **webhookCreateBody** | [**WebhookCreate**](WebhookCreate.md)| Body for a createWebhook request. | ### Return type [**WebhookResponse**](WebhookResponse.md) @@ -65,11 +65,11 @@ - **Accept**: application/json # **delete_webhook** -> delete_webhook(app_id, webhook_id) +> delete_webhook(appId, webhookId) Delete the specified webhook. @@ -84,28 +84,28 @@ config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = SmoochApi::WebhookApi.new -app_id = "app_id_example" # String | Identifies the app. +appId = "appId_example" # String | Identifies the app. -webhook_id = "webhook_id_example" # String | Identifies the webhook. +webhookId = "webhookId_example" # String | Identifies the webhook. begin - api_instance.delete_webhook(app_id, webhook_id) + api_instance.delete_webhook(appId, webhookId) rescue SmoochApi::ApiError => e puts "Exception when calling WebhookApi->delete_webhook: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **app_id** | **String**| Identifies the app. | - **webhook_id** | **String**| Identifies the webhook. | + **appId** | **String**| Identifies the app. | + **webhookId** | **String**| Identifies the webhook. | ### Return type nil (empty response body) @@ -119,11 +119,11 @@ - **Accept**: application/json # **get_webhook** -> WebhookResponse get_webhook(app_id, webhook_id) +> WebhookResponse get_webhook(appId, webhookId) Get the specified webhook. @@ -138,29 +138,29 @@ config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = SmoochApi::WebhookApi.new -app_id = "app_id_example" # String | Identifies the app. +appId = "appId_example" # String | Identifies the app. -webhook_id = "webhook_id_example" # String | Identifies the webhook. +webhookId = "webhookId_example" # String | Identifies the webhook. begin - result = api_instance.get_webhook(app_id, webhook_id) + result = api_instance.get_webhook(appId, webhookId) p result rescue SmoochApi::ApiError => e puts "Exception when calling WebhookApi->get_webhook: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **app_id** | **String**| Identifies the app. | - **webhook_id** | **String**| Identifies the webhook. | + **appId** | **String**| Identifies the app. | + **webhookId** | **String**| Identifies the webhook. | ### Return type [**WebhookResponse**](WebhookResponse.md) @@ -174,11 +174,11 @@ - **Accept**: application/json # **list_webhooks** -> ListWebhooksResponse list_webhooks(app_id, ) +> ListWebhooksResponse list_webhooks(appId, ) List webhooks for the specified app. @@ -193,26 +193,26 @@ config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = SmoochApi::WebhookApi.new -app_id = "app_id_example" # String | Identifies the app. +appId = "appId_example" # String | Identifies the app. begin - result = api_instance.list_webhooks(app_id, ) + result = api_instance.list_webhooks(appId, ) p result rescue SmoochApi::ApiError => e puts "Exception when calling WebhookApi->list_webhooks: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **app_id** | **String**| Identifies the app. | + **appId** | **String**| Identifies the app. | ### Return type [**ListWebhooksResponse**](ListWebhooksResponse.md) @@ -226,11 +226,11 @@ - **Accept**: application/json # **update_webhook** -> WebhookResponse update_webhook(app_id, webhook_idwebhook_update_body) +> WebhookResponse update_webhook(appId, webhookIdwebhookUpdateBody) Update the specified webhook. @@ -245,31 +245,31 @@ config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = SmoochApi::WebhookApi.new -app_id = "app_id_example" # String | Identifies the app. +appId = "appId_example" # String | Identifies the app. -webhook_id = "webhook_id_example" # String | Identifies the webhook. +webhookId = "webhookId_example" # String | Identifies the webhook. -webhook_update_body = SmoochApi::WebhookUpdate.new # WebhookUpdate | Body for an updateWebhook request. +webhookUpdateBody = SmoochApi::WebhookUpdate.new # WebhookUpdate | Body for an updateWebhook request. begin - result = api_instance.update_webhook(app_id, webhook_idwebhook_update_body) + result = api_instance.update_webhook(appId, webhookIdwebhookUpdateBody) p result rescue SmoochApi::ApiError => e puts "Exception when calling WebhookApi->update_webhook: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **app_id** | **String**| Identifies the app. | - **webhook_id** | **String**| Identifies the webhook. | - **webhook_update_body** | [**WebhookUpdate**](WebhookUpdate.md)| Body for an updateWebhook request. | + **appId** | **String**| Identifies the app. | + **webhookId** | **String**| Identifies the webhook. | + **webhookUpdateBody** | [**WebhookUpdate**](WebhookUpdate.md)| Body for an updateWebhook request. | ### Return type [**WebhookResponse**](WebhookResponse.md)