smooch-api 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/docs/Action.md +2 -2
- data/docs/App.md +2 -2
- data/docs/AppApi.md +48 -48
- data/docs/AppSettings.md +2 -2
- data/docs/AppUser.md +6 -6
- data/docs/AppUserApi.md +78 -78
- data/docs/AppUserBusinessSystemsResponse.md +1 -1
- data/docs/AppUserLink.md +2 -2
- data/docs/AppUserPreCreate.md +3 -3
- data/docs/AppUserResponse.md +1 -1
- data/docs/AppUserUpdate.md +2 -2
- data/docs/AttachmentRemove.md +1 -1
- data/docs/AttachmentResponse.md +2 -2
- data/docs/AttachmentsApi.md +16 -16
- data/docs/AuthCodeResponse.md +1 -1
- data/docs/BusinessSystemItem.md +4 -4
- data/docs/ChannelEntityItem.md +3 -3
- data/docs/Client.md +4 -4
- data/docs/ClientInfo.md +8 -8
- data/docs/Conversation.md +2 -2
- data/docs/ConversationApi.md +42 -42
- data/docs/Destination.md +2 -2
- data/docs/DisplaySettings.md +1 -1
- data/docs/GetMessagesResponse.md +1 -1
- data/docs/Integration.md +44 -44
- data/docs/IntegrationApi.md +66 -66
- data/docs/IntegrationCreate.md +36 -36
- data/docs/IntegrationProfileUpdate.md +1 -1
- data/docs/IntegrationUpdate.md +16 -16
- data/docs/LinkRequestResponse.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListAppsResponse.md +1 -1
- data/docs/ListServiceAccountsResponse.md +2 -2
- data/docs/ListTemplatesResponse.md +1 -1
- data/docs/MenuApi.md +14 -14
- data/docs/Message.md +6 -6
- data/docs/MessageItem.md +2 -2
- data/docs/MessageOverride.md +8 -0
- data/docs/MessageOverrideWhatsapp.md +8 -0
- data/docs/MessagePost.md +4 -3
- data/docs/MessageResponse.md +1 -1
- data/docs/SecretKey.md +1 -1
- data/docs/ServiceAccount.md +1 -1
- data/docs/ServiceAccountApi.md +46 -46
- data/docs/ServiceAccountResponse.md +1 -1
- data/docs/Template.md +1 -1
- data/docs/TemplateApi.md +30 -30
- data/docs/TypingActivityTrigger.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookApi.md +30 -30
- data/lib/smooch-api.rb +3 -1
- data/lib/smooch-api/api/app_api.rb +112 -112
- data/lib/smooch-api/api/app_user_api.rb +190 -190
- data/lib/smooch-api/api/attachments_api.rb +34 -34
- data/lib/smooch-api/api/conversation_api.rb +102 -102
- data/lib/smooch-api/api/integration_api.rb +161 -161
- data/lib/smooch-api/api/menu_api.rb +34 -34
- data/lib/smooch-api/api/service_account_api.rb +109 -109
- data/lib/smooch-api/api/template_api.rb +73 -73
- data/lib/smooch-api/api/webhook_api.rb +73 -73
- data/lib/smooch-api/api_client.rb +1 -1
- data/lib/smooch-api/api_error.rb +1 -1
- data/lib/smooch-api/configuration.rb +1 -1
- data/lib/smooch-api/models/action.rb +12 -12
- data/lib/smooch-api/models/app.rb +18 -18
- data/lib/smooch-api/models/app_create.rb +1 -1
- data/lib/smooch-api/models/app_response.rb +1 -1
- data/lib/smooch-api/models/app_settings.rb +12 -12
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +38 -38
- data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +12 -12
- data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
- data/lib/smooch-api/models/app_user_response.rb +10 -10
- data/lib/smooch-api/models/app_user_update.rb +12 -12
- data/lib/smooch-api/models/attachment_remove.rb +10 -10
- data/lib/smooch-api/models/attachment_response.rb +18 -18
- data/lib/smooch-api/models/auth_code_response.rb +10 -10
- data/lib/smooch-api/models/business_system_item.rb +22 -22
- data/lib/smooch-api/models/channel_entity_item.rb +17 -17
- data/lib/smooch-api/models/client.rb +22 -22
- data/lib/smooch-api/models/client_info.rb +42 -42
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +18 -18
- data/lib/smooch-api/models/destination.rb +18 -18
- data/lib/smooch-api/models/display_settings.rb +7 -7
- data/lib/smooch-api/models/get_messages_response.rb +7 -7
- data/lib/smooch-api/models/integration.rb +225 -225
- data/lib/smooch-api/models/integration_create.rb +182 -182
- data/lib/smooch-api/models/integration_profile_update.rb +7 -7
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +82 -82
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +7 -7
- data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
- data/lib/smooch-api/models/list_apps_response.rb +7 -7
- data/lib/smooch-api/models/list_integrations_response.rb +1 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
- data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
- data/lib/smooch-api/models/list_templates_response.rb +7 -7
- data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
- data/lib/smooch-api/models/menu.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +1 -1
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +41 -41
- data/lib/smooch-api/models/message_item.rb +12 -12
- data/lib/smooch-api/models/message_override.rb +188 -0
- data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
- data/lib/smooch-api/models/message_post.rb +30 -20
- data/lib/smooch-api/models/message_response.rb +7 -7
- data/lib/smooch-api/models/secret_key.rb +10 -10
- data/lib/smooch-api/models/secret_key_create.rb +1 -1
- data/lib/smooch-api/models/secret_key_response.rb +1 -1
- data/lib/smooch-api/models/service_account.rb +10 -10
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +7 -7
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/template.rb +10 -10
- data/lib/smooch-api/models/template_create.rb +1 -1
- data/lib/smooch-api/models/template_response.rb +1 -1
- data/lib/smooch-api/models/template_update.rb +1 -1
- data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
- data/lib/smooch-api/models/webhook.rb +10 -10
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- data/lib/smooch-api/version.rb +2 -2
- data/smooch-api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -2
@@ -3,6 +3,6 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**serviceAccount** | [**ServiceAccount**](ServiceAccount.md) | The service account. | [optional]
|
7
7
|
|
8
8
|
|
data/docs/Template.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**id** | **String** | The template ID, generated automatically. |
|
7
7
|
**name** | **String** | The name for the template, used when sending via [shorthand](https://docs.smooch.io/guide/shorthand/#sending-template-message-with-inline-syntax). |
|
8
8
|
**message** | [**Message**](Message.md) | The message sent when referencing the template via syntax. |
|
9
9
|
|
data/docs/TemplateApi.md
CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|
12
12
|
|
13
13
|
|
14
14
|
# **create_template**
|
15
|
-
> TemplateResponse create_template(
|
15
|
+
> TemplateResponse create_template(appId, templateCreateBody)
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -31,13 +31,13 @@ end
|
|
31
31
|
|
32
32
|
api_instance = SmoochApi::TemplateApi.new
|
33
33
|
|
34
|
-
|
34
|
+
appId = "appId_example" # String | Identifies the app.
|
35
35
|
|
36
|
-
|
36
|
+
templateCreateBody = SmoochApi::TemplateCreate.new # TemplateCreate | Body for a createTemplate request.
|
37
37
|
|
38
38
|
|
39
39
|
begin
|
40
|
-
result = api_instance.create_template(
|
40
|
+
result = api_instance.create_template(appId, templateCreateBody)
|
41
41
|
p result
|
42
42
|
rescue SmoochApi::ApiError => e
|
43
43
|
puts "Exception when calling TemplateApi->create_template: #{e}"
|
@@ -48,8 +48,8 @@ end
|
|
48
48
|
|
49
49
|
Name | Type | Description | Notes
|
50
50
|
------------- | ------------- | ------------- | -------------
|
51
|
-
**
|
52
|
-
**
|
51
|
+
**appId** | **String**| Identifies the app. |
|
52
|
+
**templateCreateBody** | [**TemplateCreate**](TemplateCreate.md)| Body for a createTemplate request. |
|
53
53
|
|
54
54
|
### Return type
|
55
55
|
|
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
|
|
67
67
|
|
68
68
|
|
69
69
|
# **delete_template**
|
70
|
-
> delete_template(
|
70
|
+
> delete_template(appId, templateId)
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -86,13 +86,13 @@ end
|
|
86
86
|
|
87
87
|
api_instance = SmoochApi::TemplateApi.new
|
88
88
|
|
89
|
-
|
89
|
+
appId = "appId_example" # String | Identifies the app.
|
90
90
|
|
91
|
-
|
91
|
+
templateId = "templateId_example" # String | Identifies the template.
|
92
92
|
|
93
93
|
|
94
94
|
begin
|
95
|
-
api_instance.delete_template(
|
95
|
+
api_instance.delete_template(appId, templateId)
|
96
96
|
rescue SmoochApi::ApiError => e
|
97
97
|
puts "Exception when calling TemplateApi->delete_template: #{e}"
|
98
98
|
end
|
@@ -102,8 +102,8 @@ end
|
|
102
102
|
|
103
103
|
Name | Type | Description | Notes
|
104
104
|
------------- | ------------- | ------------- | -------------
|
105
|
-
**
|
106
|
-
**
|
105
|
+
**appId** | **String**| Identifies the app. |
|
106
|
+
**templateId** | **String**| Identifies the template. |
|
107
107
|
|
108
108
|
### Return type
|
109
109
|
|
@@ -121,7 +121,7 @@ nil (empty response body)
|
|
121
121
|
|
122
122
|
|
123
123
|
# **get_template**
|
124
|
-
> TemplateResponse get_template(
|
124
|
+
> TemplateResponse get_template(appId, templateId)
|
125
125
|
|
126
126
|
|
127
127
|
|
@@ -140,13 +140,13 @@ end
|
|
140
140
|
|
141
141
|
api_instance = SmoochApi::TemplateApi.new
|
142
142
|
|
143
|
-
|
143
|
+
appId = "appId_example" # String | Identifies the app.
|
144
144
|
|
145
|
-
|
145
|
+
templateId = "templateId_example" # String | Identifies the template.
|
146
146
|
|
147
147
|
|
148
148
|
begin
|
149
|
-
result = api_instance.get_template(
|
149
|
+
result = api_instance.get_template(appId, templateId)
|
150
150
|
p result
|
151
151
|
rescue SmoochApi::ApiError => e
|
152
152
|
puts "Exception when calling TemplateApi->get_template: #{e}"
|
@@ -157,8 +157,8 @@ end
|
|
157
157
|
|
158
158
|
Name | Type | Description | Notes
|
159
159
|
------------- | ------------- | ------------- | -------------
|
160
|
-
**
|
161
|
-
**
|
160
|
+
**appId** | **String**| Identifies the app. |
|
161
|
+
**templateId** | **String**| Identifies the template. |
|
162
162
|
|
163
163
|
### Return type
|
164
164
|
|
@@ -176,7 +176,7 @@ Name | Type | Description | Notes
|
|
176
176
|
|
177
177
|
|
178
178
|
# **list_templates**
|
179
|
-
> ListTemplatesResponse list_templates(
|
179
|
+
> ListTemplatesResponse list_templates(appId, , opts)
|
180
180
|
|
181
181
|
|
182
182
|
|
@@ -195,7 +195,7 @@ end
|
|
195
195
|
|
196
196
|
api_instance = SmoochApi::TemplateApi.new
|
197
197
|
|
198
|
-
|
198
|
+
appId = "appId_example" # String | Identifies the app.
|
199
199
|
|
200
200
|
opts = {
|
201
201
|
limit: 25, # Integer | The number of records to return.
|
@@ -203,7 +203,7 @@ opts = {
|
|
203
203
|
}
|
204
204
|
|
205
205
|
begin
|
206
|
-
result = api_instance.list_templates(
|
206
|
+
result = api_instance.list_templates(appId, , opts)
|
207
207
|
p result
|
208
208
|
rescue SmoochApi::ApiError => e
|
209
209
|
puts "Exception when calling TemplateApi->list_templates: #{e}"
|
@@ -214,7 +214,7 @@ end
|
|
214
214
|
|
215
215
|
Name | Type | Description | Notes
|
216
216
|
------------- | ------------- | ------------- | -------------
|
217
|
-
**
|
217
|
+
**appId** | **String**| Identifies the app. |
|
218
218
|
**limit** | **Integer**| The number of records to return. | [optional] [default to 25]
|
219
219
|
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional] [default to 0]
|
220
220
|
|
@@ -234,7 +234,7 @@ Name | Type | Description | Notes
|
|
234
234
|
|
235
235
|
|
236
236
|
# **update_template**
|
237
|
-
> TemplateResponse update_template(
|
237
|
+
> TemplateResponse update_template(appId, templateIdtemplateUpdateBody)
|
238
238
|
|
239
239
|
|
240
240
|
|
@@ -253,15 +253,15 @@ end
|
|
253
253
|
|
254
254
|
api_instance = SmoochApi::TemplateApi.new
|
255
255
|
|
256
|
-
|
256
|
+
appId = "appId_example" # String | Identifies the app.
|
257
257
|
|
258
|
-
|
258
|
+
templateId = "templateId_example" # String | Identifies the template.
|
259
259
|
|
260
|
-
|
260
|
+
templateUpdateBody = SmoochApi::TemplateUpdate.new # TemplateUpdate | Body for an updateTemplate request.
|
261
261
|
|
262
262
|
|
263
263
|
begin
|
264
|
-
result = api_instance.update_template(
|
264
|
+
result = api_instance.update_template(appId, templateIdtemplateUpdateBody)
|
265
265
|
p result
|
266
266
|
rescue SmoochApi::ApiError => e
|
267
267
|
puts "Exception when calling TemplateApi->update_template: #{e}"
|
@@ -272,9 +272,9 @@ end
|
|
272
272
|
|
273
273
|
Name | Type | Description | Notes
|
274
274
|
------------- | ------------- | ------------- | -------------
|
275
|
-
**
|
276
|
-
**
|
277
|
-
**
|
275
|
+
**appId** | **String**| Identifies the app. |
|
276
|
+
**templateId** | **String**| Identifies the template. |
|
277
|
+
**templateUpdateBody** | [**TemplateUpdate**](TemplateUpdate.md)| Body for an updateTemplate request. |
|
278
278
|
|
279
279
|
### Return type
|
280
280
|
|
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**role** | **String** | The role of the actor. Must be *appMaker*. |
|
7
7
|
**type** | **String** | The type of activity to trigger. Must be either *typing:start* or *typing:stop*. |
|
8
8
|
**name** | **String** | The name of the app maker that starts or stops typing a response. | [optional]
|
9
|
-
**
|
9
|
+
**avatarUrl** | **String** | The avatar URL of the app maker that starts typing a response. | [optional]
|
10
10
|
|
11
11
|
|
data/docs/Webhook.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**id** | **String** | The webhook ID, generated automatically. |
|
7
7
|
**target** | **String** | URL to be called when the webhook is triggered. |
|
8
8
|
**triggers** | **Array<String>** | An array of triggers you wish to have the webhook listen to. If unspecified the default trigger is *message*. |
|
9
9
|
**secret** | **String** | Secret which will be transmitted with each webhook invocation and can be used to verify the authenticity of the caller. |
|
data/docs/WebhookApi.md
CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
|
|
12
12
|
|
13
13
|
|
14
14
|
# **create_webhook**
|
15
|
-
> WebhookResponse create_webhook(
|
15
|
+
> WebhookResponse create_webhook(appId, webhookCreateBody)
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -31,13 +31,13 @@ end
|
|
31
31
|
|
32
32
|
api_instance = SmoochApi::WebhookApi.new
|
33
33
|
|
34
|
-
|
34
|
+
appId = "appId_example" # String | Identifies the app.
|
35
35
|
|
36
|
-
|
36
|
+
webhookCreateBody = SmoochApi::WebhookCreate.new # WebhookCreate | Body for a createWebhook request.
|
37
37
|
|
38
38
|
|
39
39
|
begin
|
40
|
-
result = api_instance.create_webhook(
|
40
|
+
result = api_instance.create_webhook(appId, webhookCreateBody)
|
41
41
|
p result
|
42
42
|
rescue SmoochApi::ApiError => e
|
43
43
|
puts "Exception when calling WebhookApi->create_webhook: #{e}"
|
@@ -48,8 +48,8 @@ end
|
|
48
48
|
|
49
49
|
Name | Type | Description | Notes
|
50
50
|
------------- | ------------- | ------------- | -------------
|
51
|
-
**
|
52
|
-
**
|
51
|
+
**appId** | **String**| Identifies the app. |
|
52
|
+
**webhookCreateBody** | [**WebhookCreate**](WebhookCreate.md)| Body for a createWebhook request. |
|
53
53
|
|
54
54
|
### Return type
|
55
55
|
|
@@ -67,7 +67,7 @@ Name | Type | Description | Notes
|
|
67
67
|
|
68
68
|
|
69
69
|
# **delete_webhook**
|
70
|
-
> delete_webhook(
|
70
|
+
> delete_webhook(appId, webhookId)
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -86,13 +86,13 @@ end
|
|
86
86
|
|
87
87
|
api_instance = SmoochApi::WebhookApi.new
|
88
88
|
|
89
|
-
|
89
|
+
appId = "appId_example" # String | Identifies the app.
|
90
90
|
|
91
|
-
|
91
|
+
webhookId = "webhookId_example" # String | Identifies the webhook.
|
92
92
|
|
93
93
|
|
94
94
|
begin
|
95
|
-
api_instance.delete_webhook(
|
95
|
+
api_instance.delete_webhook(appId, webhookId)
|
96
96
|
rescue SmoochApi::ApiError => e
|
97
97
|
puts "Exception when calling WebhookApi->delete_webhook: #{e}"
|
98
98
|
end
|
@@ -102,8 +102,8 @@ end
|
|
102
102
|
|
103
103
|
Name | Type | Description | Notes
|
104
104
|
------------- | ------------- | ------------- | -------------
|
105
|
-
**
|
106
|
-
**
|
105
|
+
**appId** | **String**| Identifies the app. |
|
106
|
+
**webhookId** | **String**| Identifies the webhook. |
|
107
107
|
|
108
108
|
### Return type
|
109
109
|
|
@@ -121,7 +121,7 @@ nil (empty response body)
|
|
121
121
|
|
122
122
|
|
123
123
|
# **get_webhook**
|
124
|
-
> WebhookResponse get_webhook(
|
124
|
+
> WebhookResponse get_webhook(appId, webhookId)
|
125
125
|
|
126
126
|
|
127
127
|
|
@@ -140,13 +140,13 @@ end
|
|
140
140
|
|
141
141
|
api_instance = SmoochApi::WebhookApi.new
|
142
142
|
|
143
|
-
|
143
|
+
appId = "appId_example" # String | Identifies the app.
|
144
144
|
|
145
|
-
|
145
|
+
webhookId = "webhookId_example" # String | Identifies the webhook.
|
146
146
|
|
147
147
|
|
148
148
|
begin
|
149
|
-
result = api_instance.get_webhook(
|
149
|
+
result = api_instance.get_webhook(appId, webhookId)
|
150
150
|
p result
|
151
151
|
rescue SmoochApi::ApiError => e
|
152
152
|
puts "Exception when calling WebhookApi->get_webhook: #{e}"
|
@@ -157,8 +157,8 @@ end
|
|
157
157
|
|
158
158
|
Name | Type | Description | Notes
|
159
159
|
------------- | ------------- | ------------- | -------------
|
160
|
-
**
|
161
|
-
**
|
160
|
+
**appId** | **String**| Identifies the app. |
|
161
|
+
**webhookId** | **String**| Identifies the webhook. |
|
162
162
|
|
163
163
|
### Return type
|
164
164
|
|
@@ -176,7 +176,7 @@ Name | Type | Description | Notes
|
|
176
176
|
|
177
177
|
|
178
178
|
# **list_webhooks**
|
179
|
-
> ListWebhooksResponse list_webhooks(
|
179
|
+
> ListWebhooksResponse list_webhooks(appId, )
|
180
180
|
|
181
181
|
|
182
182
|
|
@@ -195,11 +195,11 @@ end
|
|
195
195
|
|
196
196
|
api_instance = SmoochApi::WebhookApi.new
|
197
197
|
|
198
|
-
|
198
|
+
appId = "appId_example" # String | Identifies the app.
|
199
199
|
|
200
200
|
|
201
201
|
begin
|
202
|
-
result = api_instance.list_webhooks(
|
202
|
+
result = api_instance.list_webhooks(appId, )
|
203
203
|
p result
|
204
204
|
rescue SmoochApi::ApiError => e
|
205
205
|
puts "Exception when calling WebhookApi->list_webhooks: #{e}"
|
@@ -210,7 +210,7 @@ end
|
|
210
210
|
|
211
211
|
Name | Type | Description | Notes
|
212
212
|
------------- | ------------- | ------------- | -------------
|
213
|
-
**
|
213
|
+
**appId** | **String**| Identifies the app. |
|
214
214
|
|
215
215
|
### Return type
|
216
216
|
|
@@ -228,7 +228,7 @@ Name | Type | Description | Notes
|
|
228
228
|
|
229
229
|
|
230
230
|
# **update_webhook**
|
231
|
-
> WebhookResponse update_webhook(
|
231
|
+
> WebhookResponse update_webhook(appId, webhookIdwebhookUpdateBody)
|
232
232
|
|
233
233
|
|
234
234
|
|
@@ -247,15 +247,15 @@ end
|
|
247
247
|
|
248
248
|
api_instance = SmoochApi::WebhookApi.new
|
249
249
|
|
250
|
-
|
250
|
+
appId = "appId_example" # String | Identifies the app.
|
251
251
|
|
252
|
-
|
252
|
+
webhookId = "webhookId_example" # String | Identifies the webhook.
|
253
253
|
|
254
|
-
|
254
|
+
webhookUpdateBody = SmoochApi::WebhookUpdate.new # WebhookUpdate | Body for an updateWebhook request.
|
255
255
|
|
256
256
|
|
257
257
|
begin
|
258
|
-
result = api_instance.update_webhook(
|
258
|
+
result = api_instance.update_webhook(appId, webhookIdwebhookUpdateBody)
|
259
259
|
p result
|
260
260
|
rescue SmoochApi::ApiError => e
|
261
261
|
puts "Exception when calling WebhookApi->update_webhook: #{e}"
|
@@ -266,9 +266,9 @@ end
|
|
266
266
|
|
267
267
|
Name | Type | Description | Notes
|
268
268
|
------------- | ------------- | ------------- | -------------
|
269
|
-
**
|
270
|
-
**
|
271
|
-
**
|
269
|
+
**appId** | **String**| Identifies the app. |
|
270
|
+
**webhookId** | **String**| Identifies the webhook. |
|
271
|
+
**webhookUpdateBody** | [**WebhookUpdate**](WebhookUpdate.md)| Body for an updateWebhook request. |
|
272
272
|
|
273
273
|
### Return type
|
274
274
|
|
data/lib/smooch-api.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -61,6 +61,8 @@ require 'smooch-api/models/menu_item'
|
|
61
61
|
require 'smooch-api/models/menu_response'
|
62
62
|
require 'smooch-api/models/message'
|
63
63
|
require 'smooch-api/models/message_item'
|
64
|
+
require 'smooch-api/models/message_override'
|
65
|
+
require 'smooch-api/models/message_override_whatsapp'
|
64
66
|
require 'smooch-api/models/message_post'
|
65
67
|
require 'smooch-api/models/message_response'
|
66
68
|
require 'smooch-api/models/secret_key'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -22,26 +22,26 @@ module SmoochApi
|
|
22
22
|
|
23
23
|
#
|
24
24
|
# Create a new app.
|
25
|
-
# @param
|
25
|
+
# @param appCreateBody Body for a createApp request.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [AppResponse]
|
28
|
-
def create_app(
|
29
|
-
data, _status_code, _headers = create_app_with_http_info(
|
28
|
+
def create_app(appCreateBody, opts = {})
|
29
|
+
data, _status_code, _headers = create_app_with_http_info(appCreateBody, opts)
|
30
30
|
return data
|
31
31
|
end
|
32
32
|
|
33
33
|
#
|
34
34
|
# Create a new app.
|
35
|
-
# @param
|
35
|
+
# @param appCreateBody Body for a createApp request.
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
|
38
|
-
def create_app_with_http_info(
|
38
|
+
def create_app_with_http_info(appCreateBody, opts = {})
|
39
39
|
if @api_client.config.debugging
|
40
40
|
@api_client.config.logger.debug "Calling API: AppApi.create_app ..."
|
41
41
|
end
|
42
|
-
# verify the required parameter '
|
43
|
-
if @api_client.config.client_side_validation &&
|
44
|
-
fail ArgumentError, "Missing the required parameter '
|
42
|
+
# verify the required parameter 'appCreateBody' is set
|
43
|
+
if @api_client.config.client_side_validation && appCreateBody.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'appCreateBody' when calling AppApi.create_app"
|
45
45
|
end
|
46
46
|
# resource path
|
47
47
|
local_var_path = "/v1.1/apps"
|
@@ -60,7 +60,7 @@ module SmoochApi
|
|
60
60
|
form_params = {}
|
61
61
|
|
62
62
|
# http body (model)
|
63
|
-
post_body = @api_client.object_to_http_body(
|
63
|
+
post_body = @api_client.object_to_http_body(appCreateBody)
|
64
64
|
auth_names = ['jwt']
|
65
65
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
66
66
|
:header_params => header_params,
|
@@ -77,35 +77,35 @@ module SmoochApi
|
|
77
77
|
|
78
78
|
#
|
79
79
|
# Create a secret key for the specified app.
|
80
|
-
# @param
|
81
|
-
# @param
|
80
|
+
# @param appId Identifies the app.
|
81
|
+
# @param secretKeyCreateBody Body for a createSecretKey request.
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
83
|
# @return [SecretKeyResponse]
|
84
|
-
def create_secret_key(
|
85
|
-
data, _status_code, _headers = create_secret_key_with_http_info(
|
84
|
+
def create_secret_key(appId, secretKeyCreateBody, opts = {})
|
85
|
+
data, _status_code, _headers = create_secret_key_with_http_info(appId, secretKeyCreateBody, opts)
|
86
86
|
return data
|
87
87
|
end
|
88
88
|
|
89
89
|
#
|
90
90
|
# Create a secret key for the specified app.
|
91
|
-
# @param
|
92
|
-
# @param
|
91
|
+
# @param appId Identifies the app.
|
92
|
+
# @param secretKeyCreateBody Body for a createSecretKey request.
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
95
|
-
def create_secret_key_with_http_info(
|
95
|
+
def create_secret_key_with_http_info(appId, secretKeyCreateBody, opts = {})
|
96
96
|
if @api_client.config.debugging
|
97
97
|
@api_client.config.logger.debug "Calling API: AppApi.create_secret_key ..."
|
98
98
|
end
|
99
|
-
# verify the required parameter '
|
100
|
-
if @api_client.config.client_side_validation &&
|
101
|
-
fail ArgumentError, "Missing the required parameter '
|
99
|
+
# verify the required parameter 'appId' is set
|
100
|
+
if @api_client.config.client_side_validation && appId.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.create_secret_key"
|
102
102
|
end
|
103
|
-
# verify the required parameter '
|
104
|
-
if @api_client.config.client_side_validation &&
|
105
|
-
fail ArgumentError, "Missing the required parameter '
|
103
|
+
# verify the required parameter 'secretKeyCreateBody' is set
|
104
|
+
if @api_client.config.client_side_validation && secretKeyCreateBody.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'secretKeyCreateBody' when calling AppApi.create_secret_key"
|
106
106
|
end
|
107
107
|
# resource path
|
108
|
-
local_var_path = "/v1.1/apps/{appId}/keys".sub('{' + 'appId' + '}',
|
108
|
+
local_var_path = "/v1.1/apps/{appId}/keys".sub('{' + 'appId' + '}', appId.to_s)
|
109
109
|
|
110
110
|
# query parameters
|
111
111
|
query_params = {}
|
@@ -121,7 +121,7 @@ module SmoochApi
|
|
121
121
|
form_params = {}
|
122
122
|
|
123
123
|
# http body (model)
|
124
|
-
post_body = @api_client.object_to_http_body(
|
124
|
+
post_body = @api_client.object_to_http_body(secretKeyCreateBody)
|
125
125
|
auth_names = ['jwt']
|
126
126
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
127
127
|
:header_params => header_params,
|
@@ -138,29 +138,29 @@ module SmoochApi
|
|
138
138
|
|
139
139
|
#
|
140
140
|
# Delete the specified app.
|
141
|
-
# @param
|
141
|
+
# @param appId Identifies the app.
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
143
|
# @return [nil]
|
144
|
-
def delete_app(
|
145
|
-
delete_app_with_http_info(
|
144
|
+
def delete_app(appId, opts = {})
|
145
|
+
delete_app_with_http_info(appId, opts)
|
146
146
|
return nil
|
147
147
|
end
|
148
148
|
|
149
149
|
#
|
150
150
|
# Delete the specified app.
|
151
|
-
# @param
|
151
|
+
# @param appId Identifies the app.
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
154
|
-
def delete_app_with_http_info(
|
154
|
+
def delete_app_with_http_info(appId, opts = {})
|
155
155
|
if @api_client.config.debugging
|
156
156
|
@api_client.config.logger.debug "Calling API: AppApi.delete_app ..."
|
157
157
|
end
|
158
|
-
# verify the required parameter '
|
159
|
-
if @api_client.config.client_side_validation &&
|
160
|
-
fail ArgumentError, "Missing the required parameter '
|
158
|
+
# verify the required parameter 'appId' is set
|
159
|
+
if @api_client.config.client_side_validation && appId.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.delete_app"
|
161
161
|
end
|
162
162
|
# resource path
|
163
|
-
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}',
|
163
|
+
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}', appId.to_s)
|
164
164
|
|
165
165
|
# query parameters
|
166
166
|
query_params = {}
|
@@ -192,35 +192,35 @@ module SmoochApi
|
|
192
192
|
|
193
193
|
#
|
194
194
|
# Delete the specified secret key.
|
195
|
-
# @param
|
196
|
-
# @param
|
195
|
+
# @param appId Identifies the app.
|
196
|
+
# @param keyId Identifies the secret key.
|
197
197
|
# @param [Hash] opts the optional parameters
|
198
198
|
# @return [nil]
|
199
|
-
def delete_secret_key(
|
200
|
-
delete_secret_key_with_http_info(
|
199
|
+
def delete_secret_key(appId, keyId, opts = {})
|
200
|
+
delete_secret_key_with_http_info(appId, keyId, opts)
|
201
201
|
return nil
|
202
202
|
end
|
203
203
|
|
204
204
|
#
|
205
205
|
# Delete the specified secret key.
|
206
|
-
# @param
|
207
|
-
# @param
|
206
|
+
# @param appId Identifies the app.
|
207
|
+
# @param keyId Identifies the secret key.
|
208
208
|
# @param [Hash] opts the optional parameters
|
209
209
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
210
|
-
def delete_secret_key_with_http_info(
|
210
|
+
def delete_secret_key_with_http_info(appId, keyId, opts = {})
|
211
211
|
if @api_client.config.debugging
|
212
212
|
@api_client.config.logger.debug "Calling API: AppApi.delete_secret_key ..."
|
213
213
|
end
|
214
|
-
# verify the required parameter '
|
215
|
-
if @api_client.config.client_side_validation &&
|
216
|
-
fail ArgumentError, "Missing the required parameter '
|
214
|
+
# verify the required parameter 'appId' is set
|
215
|
+
if @api_client.config.client_side_validation && appId.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.delete_secret_key"
|
217
217
|
end
|
218
|
-
# verify the required parameter '
|
219
|
-
if @api_client.config.client_side_validation &&
|
220
|
-
fail ArgumentError, "Missing the required parameter '
|
218
|
+
# verify the required parameter 'keyId' is set
|
219
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling AppApi.delete_secret_key"
|
221
221
|
end
|
222
222
|
# resource path
|
223
|
-
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}',
|
223
|
+
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
224
224
|
|
225
225
|
# query parameters
|
226
226
|
query_params = {}
|
@@ -252,29 +252,29 @@ module SmoochApi
|
|
252
252
|
|
253
253
|
#
|
254
254
|
# Get the specified app.
|
255
|
-
# @param
|
255
|
+
# @param appId Identifies the app.
|
256
256
|
# @param [Hash] opts the optional parameters
|
257
257
|
# @return [AppResponse]
|
258
|
-
def get_app(
|
259
|
-
data, _status_code, _headers = get_app_with_http_info(
|
258
|
+
def get_app(appId, opts = {})
|
259
|
+
data, _status_code, _headers = get_app_with_http_info(appId, opts)
|
260
260
|
return data
|
261
261
|
end
|
262
262
|
|
263
263
|
#
|
264
264
|
# Get the specified app.
|
265
|
-
# @param
|
265
|
+
# @param appId Identifies the app.
|
266
266
|
# @param [Hash] opts the optional parameters
|
267
267
|
# @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
|
268
|
-
def get_app_with_http_info(
|
268
|
+
def get_app_with_http_info(appId, opts = {})
|
269
269
|
if @api_client.config.debugging
|
270
270
|
@api_client.config.logger.debug "Calling API: AppApi.get_app ..."
|
271
271
|
end
|
272
|
-
# verify the required parameter '
|
273
|
-
if @api_client.config.client_side_validation &&
|
274
|
-
fail ArgumentError, "Missing the required parameter '
|
272
|
+
# verify the required parameter 'appId' is set
|
273
|
+
if @api_client.config.client_side_validation && appId.nil?
|
274
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.get_app"
|
275
275
|
end
|
276
276
|
# resource path
|
277
|
-
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}',
|
277
|
+
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}', appId.to_s)
|
278
278
|
|
279
279
|
# query parameters
|
280
280
|
query_params = {}
|
@@ -307,35 +307,35 @@ module SmoochApi
|
|
307
307
|
|
308
308
|
#
|
309
309
|
# Get an app-scoped JWT for the specified secret key.
|
310
|
-
# @param
|
311
|
-
# @param
|
310
|
+
# @param appId Identifies the app.
|
311
|
+
# @param keyId Identifies the secret key.
|
312
312
|
# @param [Hash] opts the optional parameters
|
313
313
|
# @return [JwtResponse]
|
314
|
-
def get_app_jwt(
|
315
|
-
data, _status_code, _headers = get_app_jwt_with_http_info(
|
314
|
+
def get_app_jwt(appId, keyId, opts = {})
|
315
|
+
data, _status_code, _headers = get_app_jwt_with_http_info(appId, keyId, opts)
|
316
316
|
return data
|
317
317
|
end
|
318
318
|
|
319
319
|
#
|
320
320
|
# Get an app-scoped JWT for the specified secret key.
|
321
|
-
# @param
|
322
|
-
# @param
|
321
|
+
# @param appId Identifies the app.
|
322
|
+
# @param keyId Identifies the secret key.
|
323
323
|
# @param [Hash] opts the optional parameters
|
324
324
|
# @return [Array<(JwtResponse, Fixnum, Hash)>] JwtResponse data, response status code and response headers
|
325
|
-
def get_app_jwt_with_http_info(
|
325
|
+
def get_app_jwt_with_http_info(appId, keyId, opts = {})
|
326
326
|
if @api_client.config.debugging
|
327
327
|
@api_client.config.logger.debug "Calling API: AppApi.get_app_jwt ..."
|
328
328
|
end
|
329
|
-
# verify the required parameter '
|
330
|
-
if @api_client.config.client_side_validation &&
|
331
|
-
fail ArgumentError, "Missing the required parameter '
|
329
|
+
# verify the required parameter 'appId' is set
|
330
|
+
if @api_client.config.client_side_validation && appId.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.get_app_jwt"
|
332
332
|
end
|
333
|
-
# verify the required parameter '
|
334
|
-
if @api_client.config.client_side_validation &&
|
335
|
-
fail ArgumentError, "Missing the required parameter '
|
333
|
+
# verify the required parameter 'keyId' is set
|
334
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling AppApi.get_app_jwt"
|
336
336
|
end
|
337
337
|
# resource path
|
338
|
-
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}',
|
338
|
+
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
339
339
|
|
340
340
|
# query parameters
|
341
341
|
query_params = {}
|
@@ -368,35 +368,35 @@ module SmoochApi
|
|
368
368
|
|
369
369
|
#
|
370
370
|
# Get the specified secret key.
|
371
|
-
# @param
|
372
|
-
# @param
|
371
|
+
# @param appId Identifies the app.
|
372
|
+
# @param keyId Identifies the secret key.
|
373
373
|
# @param [Hash] opts the optional parameters
|
374
374
|
# @return [SecretKeyResponse]
|
375
|
-
def get_secret_key(
|
376
|
-
data, _status_code, _headers = get_secret_key_with_http_info(
|
375
|
+
def get_secret_key(appId, keyId, opts = {})
|
376
|
+
data, _status_code, _headers = get_secret_key_with_http_info(appId, keyId, opts)
|
377
377
|
return data
|
378
378
|
end
|
379
379
|
|
380
380
|
#
|
381
381
|
# Get the specified secret key.
|
382
|
-
# @param
|
383
|
-
# @param
|
382
|
+
# @param appId Identifies the app.
|
383
|
+
# @param keyId Identifies the secret key.
|
384
384
|
# @param [Hash] opts the optional parameters
|
385
385
|
# @return [Array<(SecretKeyResponse, Fixnum, Hash)>] SecretKeyResponse data, response status code and response headers
|
386
|
-
def get_secret_key_with_http_info(
|
386
|
+
def get_secret_key_with_http_info(appId, keyId, opts = {})
|
387
387
|
if @api_client.config.debugging
|
388
388
|
@api_client.config.logger.debug "Calling API: AppApi.get_secret_key ..."
|
389
389
|
end
|
390
|
-
# verify the required parameter '
|
391
|
-
if @api_client.config.client_side_validation &&
|
392
|
-
fail ArgumentError, "Missing the required parameter '
|
390
|
+
# verify the required parameter 'appId' is set
|
391
|
+
if @api_client.config.client_side_validation && appId.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.get_secret_key"
|
393
393
|
end
|
394
|
-
# verify the required parameter '
|
395
|
-
if @api_client.config.client_side_validation &&
|
396
|
-
fail ArgumentError, "Missing the required parameter '
|
394
|
+
# verify the required parameter 'keyId' is set
|
395
|
+
if @api_client.config.client_side_validation && keyId.nil?
|
396
|
+
fail ArgumentError, "Missing the required parameter 'keyId' when calling AppApi.get_secret_key"
|
397
397
|
end
|
398
398
|
# resource path
|
399
|
-
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}',
|
399
|
+
local_var_path = "/v1.1/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'keyId' + '}', keyId.to_s)
|
400
400
|
|
401
401
|
# query parameters
|
402
402
|
query_params = {}
|
@@ -432,7 +432,7 @@ module SmoochApi
|
|
432
432
|
# @param [Hash] opts the optional parameters
|
433
433
|
# @option opts [Integer] :limit The number of records to return. (default to 25)
|
434
434
|
# @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
|
435
|
-
# @option opts [String] :
|
435
|
+
# @option opts [String] :serviceAccountId The service account ID for which to list apps. (default to )
|
436
436
|
# @return [ListAppsResponse]
|
437
437
|
def list_apps(opts = {})
|
438
438
|
data, _status_code, _headers = list_apps_with_http_info(opts)
|
@@ -444,7 +444,7 @@ module SmoochApi
|
|
444
444
|
# @param [Hash] opts the optional parameters
|
445
445
|
# @option opts [Integer] :limit The number of records to return.
|
446
446
|
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
|
447
|
-
# @option opts [String] :
|
447
|
+
# @option opts [String] :serviceAccountId The service account ID for which to list apps.
|
448
448
|
# @return [Array<(ListAppsResponse, Fixnum, Hash)>] ListAppsResponse data, response status code and response headers
|
449
449
|
def list_apps_with_http_info(opts = {})
|
450
450
|
if @api_client.config.debugging
|
@@ -457,7 +457,7 @@ module SmoochApi
|
|
457
457
|
query_params = {}
|
458
458
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
459
459
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
460
|
-
query_params[:'serviceAccountId'] = opts[:'
|
460
|
+
query_params[:'serviceAccountId'] = opts[:'serviceAccountId'] if !opts[:'serviceAccountId'].nil?
|
461
461
|
|
462
462
|
# header parameters
|
463
463
|
header_params = {}
|
@@ -487,29 +487,29 @@ module SmoochApi
|
|
487
487
|
|
488
488
|
#
|
489
489
|
# List the secret keys for the specified app.
|
490
|
-
# @param
|
490
|
+
# @param appId Identifies the app.
|
491
491
|
# @param [Hash] opts the optional parameters
|
492
492
|
# @return [ListSecretKeysResponse]
|
493
|
-
def list_secret_keys(
|
494
|
-
data, _status_code, _headers = list_secret_keys_with_http_info(
|
493
|
+
def list_secret_keys(appId, opts = {})
|
494
|
+
data, _status_code, _headers = list_secret_keys_with_http_info(appId, opts)
|
495
495
|
return data
|
496
496
|
end
|
497
497
|
|
498
498
|
#
|
499
499
|
# List the secret keys for the specified app.
|
500
|
-
# @param
|
500
|
+
# @param appId Identifies the app.
|
501
501
|
# @param [Hash] opts the optional parameters
|
502
502
|
# @return [Array<(ListSecretKeysResponse, Fixnum, Hash)>] ListSecretKeysResponse data, response status code and response headers
|
503
|
-
def list_secret_keys_with_http_info(
|
503
|
+
def list_secret_keys_with_http_info(appId, opts = {})
|
504
504
|
if @api_client.config.debugging
|
505
505
|
@api_client.config.logger.debug "Calling API: AppApi.list_secret_keys ..."
|
506
506
|
end
|
507
|
-
# verify the required parameter '
|
508
|
-
if @api_client.config.client_side_validation &&
|
509
|
-
fail ArgumentError, "Missing the required parameter '
|
507
|
+
# verify the required parameter 'appId' is set
|
508
|
+
if @api_client.config.client_side_validation && appId.nil?
|
509
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.list_secret_keys"
|
510
510
|
end
|
511
511
|
# resource path
|
512
|
-
local_var_path = "/v1.1/apps/{appId}/keys".sub('{' + 'appId' + '}',
|
512
|
+
local_var_path = "/v1.1/apps/{appId}/keys".sub('{' + 'appId' + '}', appId.to_s)
|
513
513
|
|
514
514
|
# query parameters
|
515
515
|
query_params = {}
|
@@ -542,35 +542,35 @@ module SmoochApi
|
|
542
542
|
|
543
543
|
#
|
544
544
|
# Update the specified app.
|
545
|
-
# @param
|
546
|
-
# @param
|
545
|
+
# @param appId Identifies the app.
|
546
|
+
# @param appUpdateBody Body for an updateApp request.
|
547
547
|
# @param [Hash] opts the optional parameters
|
548
548
|
# @return [AppResponse]
|
549
|
-
def update_app(
|
550
|
-
data, _status_code, _headers = update_app_with_http_info(
|
549
|
+
def update_app(appId, appUpdateBody, opts = {})
|
550
|
+
data, _status_code, _headers = update_app_with_http_info(appId, appUpdateBody, opts)
|
551
551
|
return data
|
552
552
|
end
|
553
553
|
|
554
554
|
#
|
555
555
|
# Update the specified app.
|
556
|
-
# @param
|
557
|
-
# @param
|
556
|
+
# @param appId Identifies the app.
|
557
|
+
# @param appUpdateBody Body for an updateApp request.
|
558
558
|
# @param [Hash] opts the optional parameters
|
559
559
|
# @return [Array<(AppResponse, Fixnum, Hash)>] AppResponse data, response status code and response headers
|
560
|
-
def update_app_with_http_info(
|
560
|
+
def update_app_with_http_info(appId, appUpdateBody, opts = {})
|
561
561
|
if @api_client.config.debugging
|
562
562
|
@api_client.config.logger.debug "Calling API: AppApi.update_app ..."
|
563
563
|
end
|
564
|
-
# verify the required parameter '
|
565
|
-
if @api_client.config.client_side_validation &&
|
566
|
-
fail ArgumentError, "Missing the required parameter '
|
564
|
+
# verify the required parameter 'appId' is set
|
565
|
+
if @api_client.config.client_side_validation && appId.nil?
|
566
|
+
fail ArgumentError, "Missing the required parameter 'appId' when calling AppApi.update_app"
|
567
567
|
end
|
568
|
-
# verify the required parameter '
|
569
|
-
if @api_client.config.client_side_validation &&
|
570
|
-
fail ArgumentError, "Missing the required parameter '
|
568
|
+
# verify the required parameter 'appUpdateBody' is set
|
569
|
+
if @api_client.config.client_side_validation && appUpdateBody.nil?
|
570
|
+
fail ArgumentError, "Missing the required parameter 'appUpdateBody' when calling AppApi.update_app"
|
571
571
|
end
|
572
572
|
# resource path
|
573
|
-
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}',
|
573
|
+
local_var_path = "/v1.1/apps/{appId}".sub('{' + 'appId' + '}', appId.to_s)
|
574
574
|
|
575
575
|
# query parameters
|
576
576
|
query_params = {}
|
@@ -586,7 +586,7 @@ module SmoochApi
|
|
586
586
|
form_params = {}
|
587
587
|
|
588
588
|
# http body (model)
|
589
|
-
post_body = @api_client.object_to_http_body(
|
589
|
+
post_body = @api_client.object_to_http_body(appUpdateBody)
|
590
590
|
auth_names = ['jwt']
|
591
591
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
592
592
|
:header_params => header_params,
|