smooch-api 3.17.0 → 3.19.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 +3 -1
- data/docs/Integration.md +4 -2
- data/docs/IntegrationApi.md +72 -14
- data/docs/IntegrationCreate.md +4 -1
- data/docs/IntegrationProfileUpdate.md +14 -0
- data/docs/IntegrationUpdate.md +1 -0
- data/docs/MessageResponse.md +1 -0
- data/lib/smooch-api.rb +2 -1
- data/lib/smooch-api/api/app_api.rb +1 -1
- data/lib/smooch-api/api/app_user_api.rb +1 -1
- data/lib/smooch-api/api/attachments_api.rb +1 -1
- data/lib/smooch-api/api/conversation_api.rb +1 -1
- data/lib/smooch-api/api/integration_api.rb +67 -1
- data/lib/smooch-api/api/menu_api.rb +1 -1
- data/lib/smooch-api/api/service_account_api.rb +1 -1
- data/lib/smooch-api/api/template_api.rb +1 -1
- data/lib/smooch-api/api/webhook_api.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/app.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +1 -1
- data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +1 -1
- data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
- data/lib/smooch-api/models/app_user_response.rb +1 -1
- data/lib/smooch-api/models/app_user_update.rb +1 -1
- data/lib/smooch-api/models/attachment_remove.rb +1 -1
- data/lib/smooch-api/models/attachment_response.rb +1 -1
- data/lib/smooch-api/models/auth_code_response.rb +1 -1
- data/lib/smooch-api/models/business_system_item.rb +1 -1
- data/lib/smooch-api/models/channel_entity_item.rb +1 -1
- data/lib/smooch-api/models/client.rb +1 -1
- data/lib/smooch-api/models/client_info.rb +1 -1
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +1 -1
- data/lib/smooch-api/models/destination.rb +1 -1
- data/lib/smooch-api/models/display_settings.rb +1 -1
- data/lib/smooch-api/models/get_messages_response.rb +1 -1
- data/lib/smooch-api/models/integration.rb +24 -4
- data/lib/smooch-api/models/integration_create.rb +33 -3
- data/lib/smooch-api/models/integration_profile_update.rb +251 -0
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +15 -5
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
- data/lib/smooch-api/models/list_apps_response.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/list_templates_response.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/message_item.rb +1 -1
- data/lib/smooch-api/models/message_post.rb +1 -1
- data/lib/smooch-api/models/message_response.rb +14 -2
- data/lib/smooch-api/models/secret_key.rb +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/smooch-api/models/webhook.rb +1 -1
- 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 +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be4c7bd05691f46762124c3bbffcda0f812a3758
|
4
|
+
data.tar.gz: 53f314854a19309072fd6ae3324269fb04dcb0a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da0fe380400faef3ebb2dc8e9c6a397683b4de0df950ee270e9745d273c1b7e7fb727993113c9e5044025350a542688c2434a44766ef879e0bb99b099cc4618
|
7
|
+
data.tar.gz: 790c9155eda64a617a53665df1863c53e1b29cc06337e387b8d05de67323b386fef0366245b1ee94c7619634d755f49e7d976119d9aa28478705b18009a4a087
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ gem install smooch-api
|
|
16
16
|
|
17
17
|
Add this to the Gemfile:
|
18
18
|
|
19
|
-
gem 'smooch-api', '~> 3.
|
19
|
+
gem 'smooch-api', '~> 3.19.0'
|
20
20
|
|
21
21
|
## Getting Started
|
22
22
|
|
@@ -129,6 +129,7 @@ Class | Method | HTTP request | Description
|
|
129
129
|
*SmoochApi::IntegrationApi* | [**list_integrations**](docs/IntegrationApi.md#list_integrations) | **GET** /v1/apps/{appId}/integrations |
|
130
130
|
*SmoochApi::IntegrationApi* | [**update_integration**](docs/IntegrationApi.md#update_integration) | **PUT** /v1/apps/{appId}/integrations/{integrationId} |
|
131
131
|
*SmoochApi::IntegrationApi* | [**update_integration_menu**](docs/IntegrationApi.md#update_integration_menu) | **PUT** /v1/apps/{appId}/integrations/{integrationId}/menu |
|
132
|
+
*SmoochApi::IntegrationApi* | [**update_integration_profile**](docs/IntegrationApi.md#update_integration_profile) | **PUT** /v1/apps/{appId}/integrations/{integrationId}/profile |
|
132
133
|
*SmoochApi::MenuApi* | [**delete_menu**](docs/MenuApi.md#delete_menu) | **DELETE** /v1/apps/{appId}/menu |
|
133
134
|
*SmoochApi::MenuApi* | [**get_menu**](docs/MenuApi.md#get_menu) | **GET** /v1/apps/{appId}/menu |
|
134
135
|
*SmoochApi::MenuApi* | [**update_menu**](docs/MenuApi.md#update_menu) | **PUT** /v1/apps/{appId}/menu |
|
@@ -183,6 +184,7 @@ Class | Method | HTTP request | Description
|
|
183
184
|
- [SmoochApi::GetMessagesResponse](docs/GetMessagesResponse.md)
|
184
185
|
- [SmoochApi::Integration](docs/Integration.md)
|
185
186
|
- [SmoochApi::IntegrationCreate](docs/IntegrationCreate.md)
|
187
|
+
- [SmoochApi::IntegrationProfileUpdate](docs/IntegrationProfileUpdate.md)
|
186
188
|
- [SmoochApi::IntegrationResponse](docs/IntegrationResponse.md)
|
187
189
|
- [SmoochApi::IntegrationUpdate](docs/IntegrationUpdate.md)
|
188
190
|
- [SmoochApi::JwtResponse](docs/JwtResponse.md)
|
data/docs/Integration.md
CHANGED
@@ -25,7 +25,9 @@ Name | Type | Description | Notes
|
|
25
25
|
**encoding_aes_key** | **String** | AES Encoding Key. (Optional) Used for *wechat* integrations. | [optional]
|
26
26
|
**from_address** | **String** | Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. | [optional]
|
27
27
|
**certificate** | **String** | The binary of your APN certificate base64 encoded. Required for *apn* integrations. | [optional]
|
28
|
-
**
|
28
|
+
**base_url** | **String** | Your WhatsApp API client's URL. Required for *WhatsApp* integrations. | [optional]
|
29
|
+
**hsm_fallback_language** | **String** | Specification of a fallback language. (Optional) Used for *WhatsApp* integrations. | [optional]
|
30
|
+
**password** | **String** | The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (Optional) Used for *apn* integrations. | [optional]
|
29
31
|
**auto_update_badge** | **BOOLEAN** | Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations. | [optional]
|
30
32
|
**production** | **BOOLEAN** | Flag specifying whether the certificate is production. Returned on successful *apn* integrations. | [optional]
|
31
33
|
**server_key** | **String** | Your server key from the fcm console. Required for *fcm* integrations. | [optional]
|
@@ -37,7 +39,7 @@ Name | Type | Description | Notes
|
|
37
39
|
**access_token_key** | **String** | The access token key obtained from your user via oauth. Required for *twitter* integrations. | [optional]
|
38
40
|
**access_token_secret** | **String** | The access token secret obtained from your user via oauth. Required for *twitter* integrations. | [optional]
|
39
41
|
**user_id** | **String** | The twitter userId. Returned on successful *twitter* integrations. | [optional]
|
40
|
-
**username** | **String** | The username for the account. Returned on successful *twitter* and *telegram* integrations. | [optional]
|
42
|
+
**username** | **String** | The username for the account. Required for *WhatsApp* integrations. Returned on successful *twitter* and *telegram* integrations. | [optional]
|
41
43
|
**api_key** | **String** | The public API key of your Mailgun account. Required for *mailgun* integrations. | [optional]
|
42
44
|
**domain** | **String** | The domain used to relay email. Required for *mailgun* integrations. | [optional]
|
43
45
|
**incoming_address** | **String** | Smooch will receive all emails sent to this address. Required for *mailgun* integrations. | [optional]
|
data/docs/IntegrationApi.md
CHANGED
@@ -13,6 +13,7 @@ Method | HTTP request | Description
|
|
13
13
|
[**list_integrations**](IntegrationApi.md#list_integrations) | **GET** /v1/apps/{appId}/integrations |
|
14
14
|
[**update_integration**](IntegrationApi.md#update_integration) | **PUT** /v1/apps/{appId}/integrations/{integrationId} |
|
15
15
|
[**update_integration_menu**](IntegrationApi.md#update_integration_menu) | **PUT** /v1/apps/{appId}/integrations/{integrationId}/menu |
|
16
|
+
[**update_integration_profile**](IntegrationApi.md#update_integration_profile) | **PUT** /v1/apps/{appId}/integrations/{integrationId}/profile |
|
16
17
|
|
17
18
|
|
18
19
|
# **create_integration**
|
@@ -71,7 +72,7 @@ Name | Type | Description | Notes
|
|
71
72
|
|
72
73
|
|
73
74
|
# **create_integration_menu**
|
74
|
-
> MenuResponse create_integration_menu(app_id,
|
75
|
+
> MenuResponse create_integration_menu(app_id, integration_id, menu_create_body)
|
75
76
|
|
76
77
|
|
77
78
|
|
@@ -98,7 +99,7 @@ menu_create_body = SmoochApi::Menu.new # Menu | Body for a createMenu request.
|
|
98
99
|
|
99
100
|
|
100
101
|
begin
|
101
|
-
result = api_instance.create_integration_menu(app_id,
|
102
|
+
result = api_instance.create_integration_menu(app_id, integration_id, menu_create_body)
|
102
103
|
p result
|
103
104
|
rescue SmoochApi::ApiError => e
|
104
105
|
puts "Exception when calling IntegrationApi->create_integration_menu: #{e}"
|
@@ -129,7 +130,7 @@ Name | Type | Description | Notes
|
|
129
130
|
|
130
131
|
|
131
132
|
# **delete_integration**
|
132
|
-
> delete_integration(app_id, integration_id)
|
133
|
+
> delete_integration(app_id, integration_id, )
|
133
134
|
|
134
135
|
|
135
136
|
|
@@ -154,7 +155,7 @@ integration_id = "integration_id_example" # String | Identifies the integration.
|
|
154
155
|
|
155
156
|
|
156
157
|
begin
|
157
|
-
api_instance.delete_integration(app_id, integration_id)
|
158
|
+
api_instance.delete_integration(app_id, integration_id, )
|
158
159
|
rescue SmoochApi::ApiError => e
|
159
160
|
puts "Exception when calling IntegrationApi->delete_integration: #{e}"
|
160
161
|
end
|
@@ -183,7 +184,7 @@ nil (empty response body)
|
|
183
184
|
|
184
185
|
|
185
186
|
# **delete_integration_menu**
|
186
|
-
> delete_integration_menu(app_id, integration_id)
|
187
|
+
> delete_integration_menu(app_id, integration_id, )
|
187
188
|
|
188
189
|
|
189
190
|
|
@@ -208,7 +209,7 @@ integration_id = "integration_id_example" # String | Identifies the integration.
|
|
208
209
|
|
209
210
|
|
210
211
|
begin
|
211
|
-
api_instance.delete_integration_menu(app_id, integration_id)
|
212
|
+
api_instance.delete_integration_menu(app_id, integration_id, )
|
212
213
|
rescue SmoochApi::ApiError => e
|
213
214
|
puts "Exception when calling IntegrationApi->delete_integration_menu: #{e}"
|
214
215
|
end
|
@@ -237,7 +238,7 @@ nil (empty response body)
|
|
237
238
|
|
238
239
|
|
239
240
|
# **get_integration**
|
240
|
-
> IntegrationResponse get_integration(app_id, integration_id)
|
241
|
+
> IntegrationResponse get_integration(app_id, integration_id, )
|
241
242
|
|
242
243
|
|
243
244
|
|
@@ -262,7 +263,7 @@ integration_id = "integration_id_example" # String | Identifies the integration.
|
|
262
263
|
|
263
264
|
|
264
265
|
begin
|
265
|
-
result = api_instance.get_integration(app_id, integration_id)
|
266
|
+
result = api_instance.get_integration(app_id, integration_id, )
|
266
267
|
p result
|
267
268
|
rescue SmoochApi::ApiError => e
|
268
269
|
puts "Exception when calling IntegrationApi->get_integration: #{e}"
|
@@ -292,7 +293,7 @@ Name | Type | Description | Notes
|
|
292
293
|
|
293
294
|
|
294
295
|
# **get_integration_menu**
|
295
|
-
> MenuResponse get_integration_menu(app_id, integration_id)
|
296
|
+
> MenuResponse get_integration_menu(app_id, integration_id, )
|
296
297
|
|
297
298
|
|
298
299
|
|
@@ -317,7 +318,7 @@ integration_id = "integration_id_example" # String | Identifies the integration.
|
|
317
318
|
|
318
319
|
|
319
320
|
begin
|
320
|
-
result = api_instance.get_integration_menu(app_id, integration_id)
|
321
|
+
result = api_instance.get_integration_menu(app_id, integration_id, )
|
321
322
|
p result
|
322
323
|
rescue SmoochApi::ApiError => e
|
323
324
|
puts "Exception when calling IntegrationApi->get_integration_menu: #{e}"
|
@@ -403,7 +404,7 @@ Name | Type | Description | Notes
|
|
403
404
|
|
404
405
|
|
405
406
|
# **update_integration**
|
406
|
-
> IntegrationResponse update_integration(app_id,
|
407
|
+
> IntegrationResponse update_integration(app_id, integration_id, integration_update_body)
|
407
408
|
|
408
409
|
|
409
410
|
|
@@ -430,7 +431,7 @@ integration_update_body = SmoochApi::IntegrationUpdate.new # IntegrationUpdate |
|
|
430
431
|
|
431
432
|
|
432
433
|
begin
|
433
|
-
result = api_instance.update_integration(app_id,
|
434
|
+
result = api_instance.update_integration(app_id, integration_id, integration_update_body)
|
434
435
|
p result
|
435
436
|
rescue SmoochApi::ApiError => e
|
436
437
|
puts "Exception when calling IntegrationApi->update_integration: #{e}"
|
@@ -461,7 +462,7 @@ Name | Type | Description | Notes
|
|
461
462
|
|
462
463
|
|
463
464
|
# **update_integration_menu**
|
464
|
-
> MenuResponse update_integration_menu(app_id,
|
465
|
+
> MenuResponse update_integration_menu(app_id, integration_id, menu_update_body)
|
465
466
|
|
466
467
|
|
467
468
|
|
@@ -488,7 +489,7 @@ menu_update_body = SmoochApi::Menu.new # Menu | Body for a updateMenu request.
|
|
488
489
|
|
489
490
|
|
490
491
|
begin
|
491
|
-
result = api_instance.update_integration_menu(app_id,
|
492
|
+
result = api_instance.update_integration_menu(app_id, integration_id, menu_update_body)
|
492
493
|
p result
|
493
494
|
rescue SmoochApi::ApiError => e
|
494
495
|
puts "Exception when calling IntegrationApi->update_integration_menu: #{e}"
|
@@ -518,3 +519,60 @@ Name | Type | Description | Notes
|
|
518
519
|
|
519
520
|
|
520
521
|
|
522
|
+
# **update_integration_profile**
|
523
|
+
> update_integration_profile(app_id, integration_id, integration_profile_body)
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
Update the specified integration’s profile.
|
528
|
+
|
529
|
+
### Example
|
530
|
+
```ruby
|
531
|
+
# load the gem
|
532
|
+
require 'smooch-api'
|
533
|
+
# setup authorization
|
534
|
+
SmoochApi.configure do |config|
|
535
|
+
# Configure API key authorization: jwt
|
536
|
+
config.api_key['Authorization'] = 'YOUR JWT'
|
537
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
538
|
+
end
|
539
|
+
|
540
|
+
api_instance = SmoochApi::IntegrationApi.new
|
541
|
+
|
542
|
+
app_id = "app_id_example" # String | Identifies the app.
|
543
|
+
|
544
|
+
integration_id = "integration_id_example" # String | Identifies the integration.
|
545
|
+
|
546
|
+
integration_profile_body = SmoochApi::IntegrationProfileUpdate.new # IntegrationProfileUpdate | Body for a profileUpdate request.
|
547
|
+
|
548
|
+
|
549
|
+
begin
|
550
|
+
api_instance.update_integration_profile(app_id, integration_id, integration_profile_body)
|
551
|
+
rescue SmoochApi::ApiError => e
|
552
|
+
puts "Exception when calling IntegrationApi->update_integration_profile: #{e}"
|
553
|
+
end
|
554
|
+
```
|
555
|
+
|
556
|
+
### Parameters
|
557
|
+
|
558
|
+
Name | Type | Description | Notes
|
559
|
+
------------- | ------------- | ------------- | -------------
|
560
|
+
**app_id** | **String**| Identifies the app. |
|
561
|
+
**integration_id** | **String**| Identifies the integration. |
|
562
|
+
**integration_profile_body** | [**IntegrationProfileUpdate**](IntegrationProfileUpdate.md)| Body for a profileUpdate request. |
|
563
|
+
|
564
|
+
### Return type
|
565
|
+
|
566
|
+
nil (empty response body)
|
567
|
+
|
568
|
+
### Authorization
|
569
|
+
|
570
|
+
[jwt](../README.md#jwt)
|
571
|
+
|
572
|
+
### HTTP request headers
|
573
|
+
|
574
|
+
- **Content-Type**: application/json
|
575
|
+
- **Accept**: application/json
|
576
|
+
|
577
|
+
|
578
|
+
|
data/docs/IntegrationCreate.md
CHANGED
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
|
|
9
9
|
**app_secret** | **String** | Facebook Page App Secret OR WeChat App Secret. Required for *messenger* and *wechat* integrations. | [optional]
|
10
10
|
**account_sid** | **String** | Twilio Account SID. Required for *twilio* integrations. | [optional]
|
11
11
|
**auth_token** | **String** | Twilio Auth Token. Required for *twilio* integrations. | [optional]
|
12
|
+
**base_url** | **String** | Your WhatsApp API client's URL. Required for *WhatsApp* integrations. | [optional]
|
13
|
+
**hsm_fallback_language** | **String** | Specification of a fallback language. (Optional) Used for *WhatsApp* integrations. | [optional]
|
12
14
|
**phone_number_sid** | **String** | SID for specific phone number. Required for *twilio* integrations. | [optional]
|
13
15
|
**token** | **String** | Telegram Bot Token OR Viber Public Account token. Required for *twilio* and *viber* integrations. | [optional]
|
14
16
|
**channel_id** | **String** | LINE Channel ID. Required for *line* integrations. | [optional]
|
@@ -17,7 +19,8 @@ Name | Type | Description | Notes
|
|
17
19
|
**encoding_aes_key** | **String** | AES Encoding Key. (Optional) Used for *wechat* integrations. | [optional]
|
18
20
|
**from_address** | **String** | Email will display as coming from this address. (Optional) Used for *frontendEmail* integrations. | [optional]
|
19
21
|
**certificate** | **String** | The binary of your APN certificate base64 encoded. Required for *apn* integrations. | [optional]
|
20
|
-
**password** | **String** | The password for your APN certificate. (Optional) Used for *apn* integrations. | [optional]
|
22
|
+
**password** | **String** | The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (Optional) Used for *apn* integrations. | [optional]
|
23
|
+
**username** | **String** | The username for the account. Required for *WhatsApp* integrations. Returned on successful *twitter* and *telegram* integrations. | [optional]
|
21
24
|
**auto_update_badge** | **BOOLEAN** | Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations. | [optional]
|
22
25
|
**server_key** | **String** | Your server key from the fcm console. Required for *fcm* integrations. | [optional]
|
23
26
|
**sender_id** | **String** | Your sender id from the fcm console. Required for *fcm* integrations. | [optional]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# SmoochApi::IntegrationProfileUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**about** | **String** | Text to display in your profile's About section. Can be used as a status update. Maximum of 139 characters. | [optional]
|
7
|
+
**address** | **String** | Address of the business. Maximum of 256 characters. | [optional]
|
8
|
+
**description** | **String** | Description of the business. Maximum of 256 characters. | [optional]
|
9
|
+
**email** | **String** | Email address to contact the business. Maximum of 128 characters. | [optional]
|
10
|
+
**photo_url** | **String** | URL where the business' profile photo is hosted. WhatsApp recommends an image with dimensions of 640x640 and max size of 63KB. | [optional]
|
11
|
+
**vertical** | **String** | Industry of the business. Maximum of 128 characters. | [optional]
|
12
|
+
**websites** | **Array<String>** | URLs associated with the business. Maximum of 2 websites. | [optional]
|
13
|
+
|
14
|
+
|
data/docs/IntegrationUpdate.md
CHANGED
@@ -18,5 +18,6 @@ Name | Type | Description | Notes
|
|
18
18
|
**origin_whitelist** | **Array<String>** | A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations. | [optional]
|
19
19
|
**channel_id** | **String** | LINE Channel ID. Required for *line* integrations. | [optional]
|
20
20
|
**channel_secret** | **String** | LINE Channel Secret. Required for *line* integrations. | [optional]
|
21
|
+
**hsm_fallback_language** | **String** | Specification of a fallback language. (Optional) Used for *WhatsApp* integrations. | [optional]
|
21
22
|
|
22
23
|
|
data/docs/MessageResponse.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**message** | [**Message**](Message.md) | The message. |
|
7
|
+
**extra_messages** | [**Array<Message>**](Message.md) | List of extra messages created. | [optional]
|
7
8
|
**conversation** | [**Conversation**](Conversation.md) | The conversation. |
|
8
9
|
|
9
10
|
|
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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -44,6 +44,7 @@ require 'smooch-api/models/display_settings'
|
|
44
44
|
require 'smooch-api/models/get_messages_response'
|
45
45
|
require 'smooch-api/models/integration'
|
46
46
|
require 'smooch-api/models/integration_create'
|
47
|
+
require 'smooch-api/models/integration_profile_update'
|
47
48
|
require 'smooch-api/models/integration_response'
|
48
49
|
require 'smooch-api/models/integration_update'
|
49
50
|
require 'smooch-api/models/jwt_response'
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -581,5 +581,71 @@ module SmoochApi
|
|
581
581
|
end
|
582
582
|
return data, status_code, headers
|
583
583
|
end
|
584
|
+
|
585
|
+
#
|
586
|
+
# Update the specified integration’s profile.
|
587
|
+
# @param app_id Identifies the app.
|
588
|
+
# @param integration_id Identifies the integration.
|
589
|
+
# @param integration_profile_body Body for a profileUpdate request.
|
590
|
+
# @param [Hash] opts the optional parameters
|
591
|
+
# @return [nil]
|
592
|
+
def update_integration_profile(app_id, integration_id, integration_profile_body, opts = {})
|
593
|
+
update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts)
|
594
|
+
return nil
|
595
|
+
end
|
596
|
+
|
597
|
+
#
|
598
|
+
# Update the specified integration’s profile.
|
599
|
+
# @param app_id Identifies the app.
|
600
|
+
# @param integration_id Identifies the integration.
|
601
|
+
# @param integration_profile_body Body for a profileUpdate request.
|
602
|
+
# @param [Hash] opts the optional parameters
|
603
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
604
|
+
def update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts = {})
|
605
|
+
if @api_client.config.debugging
|
606
|
+
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_profile ..."
|
607
|
+
end
|
608
|
+
# verify the required parameter 'app_id' is set
|
609
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
610
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_profile"
|
611
|
+
end
|
612
|
+
# verify the required parameter 'integration_id' is set
|
613
|
+
if @api_client.config.client_side_validation && integration_id.nil?
|
614
|
+
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_profile"
|
615
|
+
end
|
616
|
+
# verify the required parameter 'integration_profile_body' is set
|
617
|
+
if @api_client.config.client_side_validation && integration_profile_body.nil?
|
618
|
+
fail ArgumentError, "Missing the required parameter 'integration_profile_body' when calling IntegrationApi.update_integration_profile"
|
619
|
+
end
|
620
|
+
# resource path
|
621
|
+
local_var_path = "/v1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
622
|
+
|
623
|
+
# query parameters
|
624
|
+
query_params = {}
|
625
|
+
|
626
|
+
# header parameters
|
627
|
+
header_params = {}
|
628
|
+
# HTTP header 'Accept' (if needed)
|
629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
630
|
+
# HTTP header 'Content-Type'
|
631
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
632
|
+
|
633
|
+
# form parameters
|
634
|
+
form_params = {}
|
635
|
+
|
636
|
+
# http body (model)
|
637
|
+
post_body = @api_client.object_to_http_body(integration_profile_body)
|
638
|
+
auth_names = ['jwt']
|
639
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
640
|
+
:header_params => header_params,
|
641
|
+
:query_params => query_params,
|
642
|
+
:form_params => form_params,
|
643
|
+
:body => post_body,
|
644
|
+
:auth_names => auth_names)
|
645
|
+
if @api_client.config.debugging
|
646
|
+
@api_client.config.logger.debug "API called: IntegrationApi#update_integration_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
647
|
+
end
|
648
|
+
return data, status_code, headers
|
649
|
+
end
|
584
650
|
end
|
585
651
|
end
|
@@ -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: 3.
|
6
|
+
OpenAPI spec version: 3.19
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|