smooch-api 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +181 -0
  4. data/Rakefile +8 -0
  5. data/docs/Action.md +16 -0
  6. data/docs/App.md +10 -0
  7. data/docs/AppApi.md +609 -0
  8. data/docs/AppCreate.md +8 -0
  9. data/docs/AppResponse.md +8 -0
  10. data/docs/AppUser.md +18 -0
  11. data/docs/AppUserApi.md +561 -0
  12. data/docs/AppUserLink.md +9 -0
  13. data/docs/AppUserPreCreate.md +14 -0
  14. data/docs/AppUserResponse.md +8 -0
  15. data/docs/AppUserUpdate.md +12 -0
  16. data/docs/Client.md +14 -0
  17. data/docs/ClientInfo.md +15 -0
  18. data/docs/Conversation.md +9 -0
  19. data/docs/ConversationApi.md +282 -0
  20. data/docs/Destination.md +9 -0
  21. data/docs/DeviceInit.md +12 -0
  22. data/docs/DeviceResponse.md +8 -0
  23. data/docs/DeviceUpdate.md +10 -0
  24. data/docs/DisplaySettings.md +8 -0
  25. data/docs/Event.md +8 -0
  26. data/docs/GetMessagesResponse.md +10 -0
  27. data/docs/Init.md +9 -0
  28. data/docs/InitApi.md +61 -0
  29. data/docs/InitResponse.md +9 -0
  30. data/docs/Integration.md +24 -0
  31. data/docs/IntegrationApi.md +121 -0
  32. data/docs/IntegrationCreate.md +23 -0
  33. data/docs/IntegrationResponse.md +8 -0
  34. data/docs/JwtResponse.md +8 -0
  35. data/docs/ListAppsResponse.md +10 -0
  36. data/docs/ListIntegrationsResponse.md +8 -0
  37. data/docs/ListSecretKeysResponse.md +8 -0
  38. data/docs/ListWebhooksResponse.md +8 -0
  39. data/docs/Menu.md +9 -0
  40. data/docs/MenuApi.md +155 -0
  41. data/docs/MenuItem.md +11 -0
  42. data/docs/MenuResponse.md +8 -0
  43. data/docs/Message.md +23 -0
  44. data/docs/MessageItem.md +13 -0
  45. data/docs/MessagePost.md +20 -0
  46. data/docs/MessageResponse.md +9 -0
  47. data/docs/PostMessagesResponse.md +9 -0
  48. data/docs/SecretKey.md +10 -0
  49. data/docs/SecretKeyCreate.md +8 -0
  50. data/docs/SecretKeyResponse.md +8 -0
  51. data/docs/TrackEventResponse.md +8 -0
  52. data/docs/TypingActivityTrigger.md +11 -0
  53. data/docs/Webhook.md +11 -0
  54. data/docs/WebhookApi.md +287 -0
  55. data/docs/WebhookCreate.md +9 -0
  56. data/docs/WebhookResponse.md +8 -0
  57. data/docs/WebhookUpdate.md +9 -0
  58. data/git_push.sh +55 -0
  59. data/lib/smooch-api.rb +91 -0
  60. data/lib/smooch-api/api/app_api.rb +628 -0
  61. data/lib/smooch-api/api/app_user_api.rb +585 -0
  62. data/lib/smooch-api/api/conversation_api.rb +298 -0
  63. data/lib/smooch-api/api/init_api.rb +75 -0
  64. data/lib/smooch-api/api/integration_api.rb +135 -0
  65. data/lib/smooch-api/api/menu_api.rb +173 -0
  66. data/lib/smooch-api/api/webhook_api.rb +306 -0
  67. data/lib/smooch-api/api_client.rb +376 -0
  68. data/lib/smooch-api/api_error.rb +37 -0
  69. data/lib/smooch-api/configuration.rb +202 -0
  70. data/lib/smooch-api/models/action.rb +311 -0
  71. data/lib/smooch-api/models/app.rb +223 -0
  72. data/lib/smooch-api/models/app_create.rb +193 -0
  73. data/lib/smooch-api/models/app_response.rb +188 -0
  74. data/lib/smooch-api/models/app_user.rb +307 -0
  75. data/lib/smooch-api/models/app_user_link.rb +236 -0
  76. data/lib/smooch-api/models/app_user_pre_create.rb +253 -0
  77. data/lib/smooch-api/models/app_user_response.rb +193 -0
  78. data/lib/smooch-api/models/app_user_update.rb +228 -0
  79. data/lib/smooch-api/models/client.rb +290 -0
  80. data/lib/smooch-api/models/client_info.rb +258 -0
  81. data/lib/smooch-api/models/conversation.rb +208 -0
  82. data/lib/smooch-api/models/destination.rb +208 -0
  83. data/lib/smooch-api/models/device_init.rb +270 -0
  84. data/lib/smooch-api/models/device_response.rb +188 -0
  85. data/lib/smooch-api/models/device_update.rb +207 -0
  86. data/lib/smooch-api/models/display_settings.rb +188 -0
  87. data/lib/smooch-api/models/event.rb +193 -0
  88. data/lib/smooch-api/models/get_messages_response.rb +210 -0
  89. data/lib/smooch-api/models/init.rb +202 -0
  90. data/lib/smooch-api/models/init_response.rb +208 -0
  91. data/lib/smooch-api/models/integration.rb +358 -0
  92. data/lib/smooch-api/models/integration_create.rb +343 -0
  93. data/lib/smooch-api/models/integration_response.rb +188 -0
  94. data/lib/smooch-api/models/jwt_response.rb +188 -0
  95. data/lib/smooch-api/models/list_apps_response.rb +210 -0
  96. data/lib/smooch-api/models/list_integrations_response.rb +190 -0
  97. data/lib/smooch-api/models/list_secret_keys_response.rb +190 -0
  98. data/lib/smooch-api/models/list_webhooks_response.rb +195 -0
  99. data/lib/smooch-api/models/menu.rb +205 -0
  100. data/lib/smooch-api/models/menu_item.rb +228 -0
  101. data/lib/smooch-api/models/menu_response.rb +193 -0
  102. data/lib/smooch-api/models/message.rb +415 -0
  103. data/lib/smooch-api/models/message_item.rb +250 -0
  104. data/lib/smooch-api/models/message_post.rb +355 -0
  105. data/lib/smooch-api/models/message_response.rb +208 -0
  106. data/lib/smooch-api/models/post_messages_response.rb +200 -0
  107. data/lib/smooch-api/models/secret_key.rb +223 -0
  108. data/lib/smooch-api/models/secret_key_create.rb +193 -0
  109. data/lib/smooch-api/models/secret_key_response.rb +188 -0
  110. data/lib/smooch-api/models/track_event_response.rb +188 -0
  111. data/lib/smooch-api/models/typing_activity_trigger.rb +228 -0
  112. data/lib/smooch-api/models/webhook.rb +261 -0
  113. data/lib/smooch-api/models/webhook_create.rb +226 -0
  114. data/lib/smooch-api/models/webhook_response.rb +193 -0
  115. data/lib/smooch-api/models/webhook_update.rb +221 -0
  116. data/lib/smooch-api/version.rb +14 -0
  117. data/smooch-api.gemspec +44 -0
  118. data/spec/api_client_spec.rb +225 -0
  119. data/spec/configuration_spec.rb +41 -0
  120. data/spec/spec_helper.rb +110 -0
  121. metadata +349 -0
data/docs/Init.md ADDED
@@ -0,0 +1,9 @@
1
+ # SmoochApi::Init
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **device** | [**DeviceInit**](DeviceInit.md) | |
7
+ **user_id** | **String** | The app user's userId. If specified, this ID can be used to invoke APIs. If left blank, an ID will automatically be generated. | [optional]
8
+
9
+
data/docs/InitApi.md ADDED
@@ -0,0 +1,61 @@
1
+ # SmoochApi::InitApi
2
+
3
+ All URIs are relative to *https://api.smooch.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**init**](InitApi.md#init) | **POST** /init |
8
+
9
+
10
+ # **init**
11
+ > InitResponse init(init_body)
12
+
13
+
14
+
15
+ This API is called by an iOS, Android, or browser client when the app is first loaded. It serves a number of purposes. 1. Initializes a new *appUser* and *client* if they don’t yet exist. 2. Updates an existing app user’s profile and client information. 3. Authenticates the *appUser* if *jwt* credentials are provided.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'smooch-api'
21
+ # setup authorization
22
+ SmoochApi.configure do |config|
23
+ # Configure API key authorization: jwt
24
+ config.api_key['Authorization'] = 'YOUR JWT'
25
+ config.api_key_prefix['Authorization'] = 'Bearer'
26
+ end
27
+
28
+ api_instance = SmoochApi::InitApi.new
29
+
30
+ init_body = SmoochApi::Init.new # Init | Body for an init request.
31
+
32
+
33
+ begin
34
+ result = api_instance.init(init_body)
35
+ p result
36
+ rescue SmoochApi::ApiError => e
37
+ puts "Exception when calling InitApi->init: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **init_body** | [**Init**](Init.md)| Body for an init request. |
46
+
47
+ ### Return type
48
+
49
+ [**InitResponse**](InitResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [jwt](../README.md#jwt)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
59
+
60
+
61
+
@@ -0,0 +1,9 @@
1
+ # SmoochApi::InitResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **app_user** | [**AppUser**](AppUser.md) | The app user. |
7
+ **app** | [**App**](App.md) | The app. |
8
+
9
+
@@ -0,0 +1,24 @@
1
+ # SmoochApi::Integration
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **_id** | **String** | The integration ID, generated automatically. |
7
+ **type** | **String** | The integration type. |
8
+ **page_access_token** | **String** | Facebook Page Access Token. Required for *messenger* integrations. | [optional]
9
+ **app_id** | **String** | Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations. | [optional]
10
+ **app_secret** | **String** | Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations. | [optional]
11
+ **account_sid** | **String** | Twilio Account SID. Required for *twilio* integrations. | [optional]
12
+ **auth_token** | **String** | Twilio Auth Token. Required for *twilio* integrations. | [optional]
13
+ **phone_number_sid** | **String** | SID for specific phone number. Required for *twilio* integrations. | [optional]
14
+ **token** | **String** | Telegram Bot Token OR Viber Public Account token. Required for *twilio* and *viber* integrations. | [optional]
15
+ **channel_access_token** | **String** | LINE Channel Access Token. Required for *line* integrations. | [optional]
16
+ **encoding_aes_key** | **String** | AES Encoding Key. (Optional) Used for *wechat* integrations. | [optional]
17
+ **from_address** | **String** | Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. | [optional]
18
+ **certificate** | **String** | The binary of your APN certificate base64 encoded. Required for *apn* integrations. | [optional]
19
+ **password** | **String** | The password for your APN certificate. (Optional) Used for *apn* integrations. | [optional]
20
+ **auto_update_badge** | **BOOLEAN** | Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations. | [optional]
21
+ **server_key** | **String** | Your server key from the fcm console. Required for *fcm* integrations. | [optional]
22
+ **sender_id** | **String** | Your sender id from the fcm console. Required for *fcm* integrations. | [optional]
23
+
24
+
@@ -0,0 +1,121 @@
1
+ # SmoochApi::IntegrationApi
2
+
3
+ All URIs are relative to *https://api.smooch.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_integration**](IntegrationApi.md#create_integration) | **POST** /apps/{appId}/integrations |
8
+ [**list_integrations**](IntegrationApi.md#list_integrations) | **GET** /apps/{appId}/integrations |
9
+
10
+
11
+ # **create_integration**
12
+ > IntegrationResponse create_integration(app_id, integration_create_body)
13
+
14
+
15
+
16
+ Create an integration for the specified app.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'smooch-api'
22
+ # setup authorization
23
+ SmoochApi.configure do |config|
24
+ # Configure API key authorization: jwt
25
+ config.api_key['Authorization'] = 'YOUR JWT'
26
+ config.api_key_prefix['Authorization'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = SmoochApi::IntegrationApi.new
30
+
31
+ app_id = "app_id_example" # String | Identifies the app.
32
+
33
+ integration_create_body = SmoochApi::IntegrationCreate.new # IntegrationCreate | Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
34
+
35
+
36
+ begin
37
+ result = api_instance.create_integration(app_id, integration_create_body)
38
+ p result
39
+ rescue SmoochApi::ApiError => e
40
+ puts "Exception when calling IntegrationApi->create_integration: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **app_id** | **String**| Identifies the app. |
49
+ **integration_create_body** | [**IntegrationCreate**](IntegrationCreate.md)| Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration) |
50
+
51
+ ### Return type
52
+
53
+ [**IntegrationResponse**](IntegrationResponse.md)
54
+
55
+ ### Authorization
56
+
57
+ [jwt](../README.md#jwt)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+
66
+ # **list_integrations**
67
+ > ListIntegrationsResponse list_integrations(app_id, , opts)
68
+
69
+
70
+
71
+ List integrations for the specified app.
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'smooch-api'
77
+ # setup authorization
78
+ SmoochApi.configure do |config|
79
+ # Configure API key authorization: jwt
80
+ config.api_key['Authorization'] = 'YOUR JWT'
81
+ config.api_key_prefix['Authorization'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = SmoochApi::IntegrationApi.new
85
+
86
+ app_id = "app_id_example" # String | Identifies the app.
87
+
88
+ opts = {
89
+ types: "types_example" # String | List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
90
+ }
91
+
92
+ begin
93
+ result = api_instance.list_integrations(app_id, , opts)
94
+ p result
95
+ rescue SmoochApi::ApiError => e
96
+ puts "Exception when calling IntegrationApi->list_integrations: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **app_id** | **String**| Identifies the app. |
105
+ **types** | **String**| List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*. | [optional]
106
+
107
+ ### Return type
108
+
109
+ [**ListIntegrationsResponse**](ListIntegrationsResponse.md)
110
+
111
+ ### Authorization
112
+
113
+ [jwt](../README.md#jwt)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: application/json
118
+ - **Accept**: application/json
119
+
120
+
121
+
@@ -0,0 +1,23 @@
1
+ # SmoochApi::IntegrationCreate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | The integration type. |
7
+ **page_access_token** | **String** | Facebook Page Access Token. Required for *messenger* integrations. | [optional]
8
+ **app_id** | **String** | Facebook App ID OR WeChat App ID. Required for *messenger* and *wechat* integrations. | [optional]
9
+ **app_secret** | **String** | Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations. | [optional]
10
+ **account_sid** | **String** | Twilio Account SID. Required for *twilio* integrations. | [optional]
11
+ **auth_token** | **String** | Twilio Auth Token. Required for *twilio* integrations. | [optional]
12
+ **phone_number_sid** | **String** | SID for specific phone number. Required for *twilio* integrations. | [optional]
13
+ **token** | **String** | Telegram Bot Token OR Viber Public Account token. Required for *twilio* and *viber* integrations. | [optional]
14
+ **channel_access_token** | **String** | LINE Channel Access Token. Required for *line* integrations. | [optional]
15
+ **encoding_aes_key** | **String** | AES Encoding Key. (Optional) Used for *wechat* integrations. | [optional]
16
+ **from_address** | **String** | Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. | [optional]
17
+ **certificate** | **String** | The binary of your APN certificate base64 encoded. Required for *apn* integrations. | [optional]
18
+ **password** | **String** | The password for your APN certificate. (Optional) Used for *apn* integrations. | [optional]
19
+ **auto_update_badge** | **BOOLEAN** | Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations. | [optional]
20
+ **server_key** | **String** | Your server key from the fcm console. Required for *fcm* integrations. | [optional]
21
+ **sender_id** | **String** | Your sender id from the fcm console. Required for *fcm* integrations. | [optional]
22
+
23
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::IntegrationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **integration** | [**Integration**](Integration.md) | The integration. | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::JwtResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **jwt** | **String** | The JWT. | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # SmoochApi::ListAppsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **apps** | [**Array<App>**](App.md) | The list of apps. | [optional]
7
+ **has_more** | **BOOLEAN** | Flag indicating if there are more apps that are not present in the response. | [optional]
8
+ **offset** | **Integer** | The number of app records skipped in the returned list. | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::ListIntegrationsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **integrations** | [**Array<Integration>**](Integration.md) | The list of integrations. | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::ListSecretKeysResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **keys** | [**Array<SecretKey>**](SecretKey.md) | The list of secret keys. | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::ListWebhooksResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **webhooks** | [**Array<Webhook>**](Webhook.md) | The list of webhooks. |
7
+
8
+
data/docs/Menu.md ADDED
@@ -0,0 +1,9 @@
1
+ # SmoochApi::Menu
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The name of the menu. | [optional]
7
+ **items** | [**Array<MenuItem>**](MenuItem.md) | A list of menu items. |
8
+
9
+
data/docs/MenuApi.md ADDED
@@ -0,0 +1,155 @@
1
+ # SmoochApi::MenuApi
2
+
3
+ All URIs are relative to *https://api.smooch.io/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_menu**](MenuApi.md#delete_menu) | **DELETE** /menu |
8
+ [**get_menu**](MenuApi.md#get_menu) | **GET** /menu |
9
+ [**update_menu**](MenuApi.md#update_menu) | **PUT** /menu |
10
+
11
+
12
+ # **delete_menu**
13
+ > MenuResponse delete_menu
14
+
15
+
16
+
17
+ Remove the specified app’s menu.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'smooch-api'
23
+ # setup authorization
24
+ SmoochApi.configure do |config|
25
+ # Configure API key authorization: jwt
26
+ config.api_key['Authorization'] = 'YOUR JWT'
27
+ config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = SmoochApi::MenuApi.new
31
+
32
+ begin
33
+ result = api_instance.delete_menu
34
+ p result
35
+ rescue SmoochApi::ApiError => e
36
+ puts "Exception when calling MenuApi->delete_menu: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+ This endpoint does not need any parameter.
42
+
43
+ ### Return type
44
+
45
+ [**MenuResponse**](MenuResponse.md)
46
+
47
+ ### Authorization
48
+
49
+ [jwt](../README.md#jwt)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: application/json
54
+ - **Accept**: application/json
55
+
56
+
57
+
58
+ # **get_menu**
59
+ > MenuResponse get_menu
60
+
61
+
62
+
63
+ Get the specified app’s menu.
64
+
65
+ ### Example
66
+ ```ruby
67
+ # load the gem
68
+ require 'smooch-api'
69
+ # setup authorization
70
+ SmoochApi.configure do |config|
71
+ # Configure API key authorization: jwt
72
+ config.api_key['Authorization'] = 'YOUR JWT'
73
+ config.api_key_prefix['Authorization'] = 'Bearer'
74
+ end
75
+
76
+ api_instance = SmoochApi::MenuApi.new
77
+
78
+ begin
79
+ result = api_instance.get_menu
80
+ p result
81
+ rescue SmoochApi::ApiError => e
82
+ puts "Exception when calling MenuApi->get_menu: #{e}"
83
+ end
84
+ ```
85
+
86
+ ### Parameters
87
+ This endpoint does not need any parameter.
88
+
89
+ ### Return type
90
+
91
+ [**MenuResponse**](MenuResponse.md)
92
+
93
+ ### Authorization
94
+
95
+ [jwt](../README.md#jwt)
96
+
97
+ ### HTTP request headers
98
+
99
+ - **Content-Type**: application/json
100
+ - **Accept**: application/json
101
+
102
+
103
+
104
+ # **update_menu**
105
+ > MenuResponse update_menu(menu_update_body)
106
+
107
+
108
+
109
+ Configure the specified app’s menu.
110
+
111
+ ### Example
112
+ ```ruby
113
+ # load the gem
114
+ require 'smooch-api'
115
+ # setup authorization
116
+ SmoochApi.configure do |config|
117
+ # Configure API key authorization: jwt
118
+ config.api_key['Authorization'] = 'YOUR JWT'
119
+ config.api_key_prefix['Authorization'] = 'Bearer'
120
+ end
121
+
122
+ api_instance = SmoochApi::MenuApi.new
123
+
124
+ menu_update_body = SmoochApi::Menu.new # Menu | Body for a updateMenu request.
125
+
126
+
127
+ begin
128
+ result = api_instance.update_menu(menu_update_body)
129
+ p result
130
+ rescue SmoochApi::ApiError => e
131
+ puts "Exception when calling MenuApi->update_menu: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ Name | Type | Description | Notes
138
+ ------------- | ------------- | ------------- | -------------
139
+ **menu_update_body** | [**Menu**](Menu.md)| Body for a updateMenu request. |
140
+
141
+ ### Return type
142
+
143
+ [**MenuResponse**](MenuResponse.md)
144
+
145
+ ### Authorization
146
+
147
+ [jwt](../README.md#jwt)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: application/json
152
+ - **Accept**: application/json
153
+
154
+
155
+