smooch-api 5.5.0 → 5.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/docs/AppUserLink.md +1 -1
  4. data/docs/GetIntegrationProfileResponse.md +8 -0
  5. data/docs/IntegrationApi.md +115 -0
  6. data/docs/UploadIntegrationProfilePhotoResponse.md +8 -0
  7. data/lib/smooch-api/api/app_api.rb +1 -1
  8. data/lib/smooch-api/api/app_user_api.rb +1 -1
  9. data/lib/smooch-api/api/attachments_api.rb +1 -1
  10. data/lib/smooch-api/api/conversation_api.rb +1 -1
  11. data/lib/smooch-api/api/integration_api.rb +130 -1
  12. data/lib/smooch-api/api/menu_api.rb +1 -1
  13. data/lib/smooch-api/api/service_account_api.rb +1 -1
  14. data/lib/smooch-api/api/template_api.rb +1 -1
  15. data/lib/smooch-api/api/webhook_api.rb +1 -1
  16. data/lib/smooch-api/api_client.rb +1 -1
  17. data/lib/smooch-api/api_error.rb +1 -1
  18. data/lib/smooch-api/configuration.rb +1 -1
  19. data/lib/smooch-api/models/action.rb +1 -1
  20. data/lib/smooch-api/models/app.rb +1 -1
  21. data/lib/smooch-api/models/app_create.rb +1 -1
  22. data/lib/smooch-api/models/app_response.rb +1 -1
  23. data/lib/smooch-api/models/app_settings.rb +1 -1
  24. data/lib/smooch-api/models/app_update.rb +1 -1
  25. data/lib/smooch-api/models/app_user.rb +1 -1
  26. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  27. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  28. data/lib/smooch-api/models/app_user_link.rb +2 -2
  29. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  30. data/lib/smooch-api/models/app_user_response.rb +1 -1
  31. data/lib/smooch-api/models/app_user_update.rb +1 -1
  32. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  33. data/lib/smooch-api/models/attachment_response.rb +1 -1
  34. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  35. data/lib/smooch-api/models/business_system_item.rb +1 -1
  36. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  37. data/lib/smooch-api/models/client.rb +1 -1
  38. data/lib/smooch-api/models/client_info.rb +1 -1
  39. data/lib/smooch-api/models/confirmation.rb +1 -1
  40. data/lib/smooch-api/models/conversation.rb +1 -1
  41. data/lib/smooch-api/models/conversation_activity.rb +1 -1
  42. data/lib/smooch-api/models/destination.rb +1 -1
  43. data/lib/smooch-api/models/display_settings.rb +1 -1
  44. data/lib/smooch-api/models/enums.rb +1 -1
  45. data/lib/smooch-api/models/get_integration_profile_response.rb +189 -0
  46. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  47. data/lib/smooch-api/models/integration.rb +1 -1
  48. data/lib/smooch-api/models/integration_create.rb +1 -1
  49. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  50. data/lib/smooch-api/models/integration_response.rb +1 -1
  51. data/lib/smooch-api/models/integration_update.rb +1 -1
  52. data/lib/smooch-api/models/jwt_response.rb +1 -1
  53. data/lib/smooch-api/models/link_request_response.rb +1 -1
  54. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  55. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  56. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  57. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  58. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  59. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  60. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  61. data/lib/smooch-api/models/menu.rb +1 -1
  62. data/lib/smooch-api/models/menu_item.rb +1 -1
  63. data/lib/smooch-api/models/menu_response.rb +1 -1
  64. data/lib/smooch-api/models/message.rb +1 -1
  65. data/lib/smooch-api/models/message_item.rb +1 -1
  66. data/lib/smooch-api/models/message_override.rb +1 -1
  67. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  68. data/lib/smooch-api/models/message_post.rb +1 -1
  69. data/lib/smooch-api/models/message_response.rb +1 -1
  70. data/lib/smooch-api/models/secret_key.rb +1 -1
  71. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  72. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  73. data/lib/smooch-api/models/service_account.rb +1 -1
  74. data/lib/smooch-api/models/service_account_create.rb +1 -1
  75. data/lib/smooch-api/models/service_account_response.rb +1 -1
  76. data/lib/smooch-api/models/service_account_update.rb +1 -1
  77. data/lib/smooch-api/models/source.rb +1 -1
  78. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  79. data/lib/smooch-api/models/template.rb +1 -1
  80. data/lib/smooch-api/models/template_create.rb +1 -1
  81. data/lib/smooch-api/models/template_response.rb +1 -1
  82. data/lib/smooch-api/models/template_update.rb +1 -1
  83. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +194 -0
  84. data/lib/smooch-api/models/webhook.rb +1 -1
  85. data/lib/smooch-api/models/webhook_create.rb +1 -1
  86. data/lib/smooch-api/models/webhook_response.rb +1 -1
  87. data/lib/smooch-api/models/webhook_update.rb +1 -1
  88. data/lib/smooch-api/version.rb +2 -2
  89. data/lib/smooch-api.rb +3 -1
  90. data/smooch-api.gemspec +1 -1
  91. data/spec/api_client_spec.rb +1 -1
  92. data/spec/configuration_spec.rb +1 -1
  93. data/spec/spec_helper.rb +1 -1
  94. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1305e9a53caf50d3f5d88880c193e9a6c918b4a
4
- data.tar.gz: 465960a177a16d0d57faee9cc4f34f4777d0c6ba
3
+ metadata.gz: a431facd88915753cfafcb33f8d2bd7e502aa2b5
4
+ data.tar.gz: 994cbfe3ca1bfab7a57463d3c357c360c0e20ce4
5
5
  SHA512:
6
- metadata.gz: b57189fc4e3f4fdc2e6907bdc8719f084cc5b48c890597a0fb8c292037be2403d602cec6b6e513545f664d2c274b2321081ec8cf1cd1cdba95a512d1eddec0b5
7
- data.tar.gz: 125b3d5b84eb8ef83ec2efdf19b7846d494413baffee39df7663a74c904ffbd8170fd2eac86d3cd4254622dd395eade9987983e53b253dae428106e9b6dedae8
6
+ metadata.gz: 4437932df56ff2216e13071877ac80d2ebebd523172b342f3a068cf19f950ced0d98986946f3a75ffb07568fa99606d9f176049f7d27e6db490e40300571e1f4
7
+ data.tar.gz: 81fb53a364192099ed4fb2fe0cb2058cd28aef13914fcbe8a36be1e630b2968508189b2760497dd62720fa0bfce76e4dc024435277e7bf533fd711c01e0e0994
data/README.md CHANGED
@@ -25,7 +25,7 @@ gem install smooch-api
25
25
 
26
26
  Add this to the Gemfile:
27
27
 
28
- gem 'smooch-api', '~> 5.5.0'
28
+ gem 'smooch-api', '~> 5.6.0'
29
29
 
30
30
  ## Getting Started
31
31
 
@@ -135,10 +135,12 @@ Class | Method | HTTP request | Description
135
135
  *SmoochApi::IntegrationApi* | [**delete_integration_menu**](docs/IntegrationApi.md#delete_integration_menu) | **DELETE** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
136
136
  *SmoochApi::IntegrationApi* | [**get_integration**](docs/IntegrationApi.md#get_integration) | **GET** /v1.1/apps/{appId}/integrations/{integrationId} |
137
137
  *SmoochApi::IntegrationApi* | [**get_integration_menu**](docs/IntegrationApi.md#get_integration_menu) | **GET** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
138
+ *SmoochApi::IntegrationApi* | [**get_integration_profile**](docs/IntegrationApi.md#get_integration_profile) | **GET** /v1.1/apps/{appId}/integrations/{integrationId}/profile |
138
139
  *SmoochApi::IntegrationApi* | [**list_integrations**](docs/IntegrationApi.md#list_integrations) | **GET** /v1.1/apps/{appId}/integrations |
139
140
  *SmoochApi::IntegrationApi* | [**update_integration**](docs/IntegrationApi.md#update_integration) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId} |
140
141
  *SmoochApi::IntegrationApi* | [**update_integration_menu**](docs/IntegrationApi.md#update_integration_menu) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
141
142
  *SmoochApi::IntegrationApi* | [**update_integration_profile**](docs/IntegrationApi.md#update_integration_profile) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/profile |
143
+ *SmoochApi::IntegrationApi* | [**upload_integration_profile_photo**](docs/IntegrationApi.md#upload_integration_profile_photo) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/profile/photo |
142
144
  *SmoochApi::MenuApi* | [**delete_menu**](docs/MenuApi.md#delete_menu) | **DELETE** /v1.1/apps/{appId}/menu |
143
145
  *SmoochApi::MenuApi* | [**get_menu**](docs/MenuApi.md#get_menu) | **GET** /v1.1/apps/{appId}/menu |
144
146
  *SmoochApi::MenuApi* | [**update_menu**](docs/MenuApi.md#update_menu) | **PUT** /v1.1/apps/{appId}/menu |
@@ -192,6 +194,7 @@ Class | Method | HTTP request | Description
192
194
  - [SmoochApi::Destination](docs/Destination.md)
193
195
  - [SmoochApi::DisplaySettings](docs/DisplaySettings.md)
194
196
  - [SmoochApi::Enums](docs/Enums.md)
197
+ - [SmoochApi::GetIntegrationProfileResponse](docs/GetIntegrationProfileResponse.md)
195
198
  - [SmoochApi::GetMessagesResponse](docs/GetMessagesResponse.md)
196
199
  - [SmoochApi::Integration](docs/Integration.md)
197
200
  - [SmoochApi::IntegrationCreate](docs/IntegrationCreate.md)
@@ -229,6 +232,7 @@ Class | Method | HTTP request | Description
229
232
  - [SmoochApi::TemplateCreate](docs/TemplateCreate.md)
230
233
  - [SmoochApi::TemplateResponse](docs/TemplateResponse.md)
231
234
  - [SmoochApi::TemplateUpdate](docs/TemplateUpdate.md)
235
+ - [SmoochApi::UploadIntegrationProfilePhotoResponse](docs/UploadIntegrationProfilePhotoResponse.md)
232
236
  - [SmoochApi::Webhook](docs/Webhook.md)
233
237
  - [SmoochApi::WebhookCreate](docs/WebhookCreate.md)
234
238
  - [SmoochApi::WebhookResponse](docs/WebhookResponse.md)
data/docs/AppUserLink.md CHANGED
@@ -4,7 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **type** | **String** | The type of the channel to link. See Enums.md for available values. |
7
- **phoneNumber** | **String** | A String of the appUser’s phone number. It must contain the + prefix and the country code. Required for *messenger*, *twilio* and *messagebird* linking. | [optional]
7
+ **phoneNumber** | **String** | A String of the appUser’s phone number. It must contain the + prefix and the country code. Required for *messenger*, *twilio*, *messagebird* and *whatsapp* linking. | [optional]
8
8
  **address** | **String** | A String of the appUser’s email address. Required for *mailgun* linking. | [optional]
9
9
  **givenName** | **String** | A String of the appUser’s given name. Used as additional criteria to increase the likelihood of a match. (Optional) Used for *messenger* linking. | [optional]
10
10
  **surname** | **String** | A String of the appUser’s surname. Used as additional criteria to increase the likelihood of a match. (Optional) Used for *messenger* linking. | [optional]
@@ -0,0 +1,8 @@
1
+ # SmoochApi::GetIntegrationProfileResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **profile** | **Object** | JSON object containing the integration profile. [More info](https://docs.smooch.io/rest/#get-integration-profile) | [optional]
7
+
8
+
@@ -10,10 +10,12 @@ Method | HTTP request | Description
10
10
  [**delete_integration_menu**](IntegrationApi.md#delete_integration_menu) | **DELETE** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
11
11
  [**get_integration**](IntegrationApi.md#get_integration) | **GET** /v1.1/apps/{appId}/integrations/{integrationId} |
12
12
  [**get_integration_menu**](IntegrationApi.md#get_integration_menu) | **GET** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
13
+ [**get_integration_profile**](IntegrationApi.md#get_integration_profile) | **GET** /v1.1/apps/{appId}/integrations/{integrationId}/profile |
13
14
  [**list_integrations**](IntegrationApi.md#list_integrations) | **GET** /v1.1/apps/{appId}/integrations |
14
15
  [**update_integration**](IntegrationApi.md#update_integration) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId} |
15
16
  [**update_integration_menu**](IntegrationApi.md#update_integration_menu) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/menu |
16
17
  [**update_integration_profile**](IntegrationApi.md#update_integration_profile) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/profile |
18
+ [**upload_integration_profile_photo**](IntegrationApi.md#upload_integration_profile_photo) | **PUT** /v1.1/apps/{appId}/integrations/{integrationId}/profile/photo |
17
19
 
18
20
 
19
21
  # **create_integration**
@@ -347,6 +349,61 @@ Name | Type | Description | Notes
347
349
 
348
350
 
349
351
 
352
+ # **get_integration_profile**
353
+ > GetIntegrationProfileResponse get_integration_profile(appId, integrationId, )
354
+
355
+
356
+
357
+ Get the specified integration’s profile.
358
+
359
+ ### Example
360
+ ```ruby
361
+ # load the gem
362
+ require 'smooch-api'
363
+ # setup authorization
364
+ SmoochApi.configure do |config|
365
+ # Configure API key authorization: jwt
366
+ config.api_key['Authorization'] = 'YOUR JWT'
367
+ config.api_key_prefix['Authorization'] = 'Bearer'
368
+ end
369
+
370
+ api_instance = SmoochApi::IntegrationApi.new
371
+
372
+ appId = "appId_example" # String | Identifies the app.
373
+
374
+ integrationId = "integrationId_example" # String | Identifies the integration.
375
+
376
+
377
+ begin
378
+ result = api_instance.get_integration_profile(appId, integrationId, )
379
+ p result
380
+ rescue SmoochApi::ApiError => e
381
+ puts "Exception when calling IntegrationApi->get_integration_profile: #{e}"
382
+ end
383
+ ```
384
+
385
+ ### Parameters
386
+
387
+ Name | Type | Description | Notes
388
+ ------------- | ------------- | ------------- | -------------
389
+ **appId** | **String**| Identifies the app. |
390
+ **integrationId** | **String**| Identifies the integration. |
391
+
392
+ ### Return type
393
+
394
+ [**GetIntegrationProfileResponse**](GetIntegrationProfileResponse.md)
395
+
396
+ ### Authorization
397
+
398
+ [jwt](../README.md#jwt)
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: application/json
403
+ - **Accept**: application/json
404
+
405
+
406
+
350
407
  # **list_integrations**
351
408
  > ListIntegrationsResponse list_integrations(appId, , opts)
352
409
 
@@ -580,3 +637,61 @@ nil (empty response body)
580
637
 
581
638
 
582
639
 
640
+ # **upload_integration_profile_photo**
641
+ > UploadIntegrationProfilePhotoResponse upload_integration_profile_photo(appId, integrationId, source)
642
+
643
+
644
+
645
+ Upload a photo to be used for the the specified integration’s profile.
646
+
647
+ ### Example
648
+ ```ruby
649
+ # load the gem
650
+ require 'smooch-api'
651
+ # setup authorization
652
+ SmoochApi.configure do |config|
653
+ # Configure API key authorization: jwt
654
+ config.api_key['Authorization'] = 'YOUR JWT'
655
+ config.api_key_prefix['Authorization'] = 'Bearer'
656
+ end
657
+
658
+ api_instance = SmoochApi::IntegrationApi.new
659
+
660
+ appId = "appId_example" # String | Identifies the app.
661
+
662
+ integrationId = "integrationId_example" # String | Identifies the integration.
663
+
664
+ source = File.new("/path/to/file.txt") # File | Photo to be uploaded
665
+
666
+
667
+ begin
668
+ result = api_instance.upload_integration_profile_photo(appId, integrationId, source)
669
+ p result
670
+ rescue SmoochApi::ApiError => e
671
+ puts "Exception when calling IntegrationApi->upload_integration_profile_photo: #{e}"
672
+ end
673
+ ```
674
+
675
+ ### Parameters
676
+
677
+ Name | Type | Description | Notes
678
+ ------------- | ------------- | ------------- | -------------
679
+ **appId** | **String**| Identifies the app. |
680
+ **integrationId** | **String**| Identifies the integration. |
681
+ **source** | **File**| Photo to be uploaded |
682
+
683
+ ### Return type
684
+
685
+ [**UploadIntegrationProfilePhotoResponse**](UploadIntegrationProfilePhotoResponse.md)
686
+
687
+ ### Authorization
688
+
689
+ [jwt](../README.md#jwt)
690
+
691
+ ### HTTP request headers
692
+
693
+ - **Content-Type**: multipart/form-data
694
+ - **Accept**: application/json
695
+
696
+
697
+
@@ -0,0 +1,8 @@
1
+ # SmoochApi::UploadIntegrationProfilePhotoResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **photoUrl** | **String** | The photo URL after uploading. |
7
+
8
+
@@ -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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -390,6 +390,67 @@ module SmoochApi
390
390
  return data, status_code, headers
391
391
  end
392
392
 
393
+ #
394
+ # Get the specified integration’s profile.
395
+ # @param appId Identifies the app.
396
+ # @param integrationId Identifies the integration.
397
+ # @param [Hash] opts the optional parameters
398
+ # @return [GetIntegrationProfileResponse]
399
+ def get_integration_profile(appId, integrationId, opts = {})
400
+ data, _status_code, _headers = get_integration_profile_with_http_info(appId, integrationId, opts)
401
+ return data
402
+ end
403
+
404
+ #
405
+ # Get the specified integration’s profile.
406
+ # @param appId Identifies the app.
407
+ # @param integrationId Identifies the integration.
408
+ # @param [Hash] opts the optional parameters
409
+ # @return [Array<(GetIntegrationProfileResponse, Fixnum, Hash)>] GetIntegrationProfileResponse data, response status code and response headers
410
+ def get_integration_profile_with_http_info(appId, integrationId, opts = {})
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_profile ..."
413
+ end
414
+ # verify the required parameter 'appId' is set
415
+ if @api_client.config.client_side_validation && appId.nil?
416
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration_profile"
417
+ end
418
+ # verify the required parameter 'integrationId' is set
419
+ if @api_client.config.client_side_validation && integrationId.nil?
420
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration_profile"
421
+ end
422
+ # resource path
423
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
424
+
425
+ # query parameters
426
+ query_params = {}
427
+
428
+ # header parameters
429
+ header_params = {}
430
+ # HTTP header 'Accept' (if needed)
431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
432
+ # HTTP header 'Content-Type'
433
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
434
+
435
+ # form parameters
436
+ form_params = {}
437
+
438
+ # http body (model)
439
+ post_body = nil
440
+ auth_names = ['jwt']
441
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
442
+ :header_params => header_params,
443
+ :query_params => query_params,
444
+ :form_params => form_params,
445
+ :body => post_body,
446
+ :auth_names => auth_names,
447
+ :return_type => 'GetIntegrationProfileResponse')
448
+ if @api_client.config.debugging
449
+ @api_client.config.logger.debug "API called: IntegrationApi#get_integration_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
450
+ end
451
+ return data, status_code, headers
452
+ end
453
+
393
454
  #
394
455
  # List integrations for the specified app.
395
456
  # @param appId Identifies the app.
@@ -653,5 +714,73 @@ module SmoochApi
653
714
  end
654
715
  return data, status_code, headers
655
716
  end
717
+
718
+ #
719
+ # Upload a photo to be used for the the specified integration’s profile.
720
+ # @param appId Identifies the app.
721
+ # @param integrationId Identifies the integration.
722
+ # @param source Photo to be uploaded
723
+ # @param [Hash] opts the optional parameters
724
+ # @return [UploadIntegrationProfilePhotoResponse]
725
+ def upload_integration_profile_photo(appId, integrationId, source, opts = {})
726
+ data, _status_code, _headers = upload_integration_profile_photo_with_http_info(appId, integrationId, source, opts)
727
+ return data
728
+ end
729
+
730
+ #
731
+ # Upload a photo to be used for the the specified integration’s profile.
732
+ # @param appId Identifies the app.
733
+ # @param integrationId Identifies the integration.
734
+ # @param source Photo to be uploaded
735
+ # @param [Hash] opts the optional parameters
736
+ # @return [Array<(UploadIntegrationProfilePhotoResponse, Fixnum, Hash)>] UploadIntegrationProfilePhotoResponse data, response status code and response headers
737
+ def upload_integration_profile_photo_with_http_info(appId, integrationId, source, opts = {})
738
+ if @api_client.config.debugging
739
+ @api_client.config.logger.debug "Calling API: IntegrationApi.upload_integration_profile_photo ..."
740
+ end
741
+ # verify the required parameter 'appId' is set
742
+ if @api_client.config.client_side_validation && appId.nil?
743
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.upload_integration_profile_photo"
744
+ end
745
+ # verify the required parameter 'integrationId' is set
746
+ if @api_client.config.client_side_validation && integrationId.nil?
747
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.upload_integration_profile_photo"
748
+ end
749
+ # verify the required parameter 'source' is set
750
+ if @api_client.config.client_side_validation && source.nil?
751
+ fail ArgumentError, "Missing the required parameter 'source' when calling IntegrationApi.upload_integration_profile_photo"
752
+ end
753
+ # resource path
754
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile/photo".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
755
+
756
+ # query parameters
757
+ query_params = {}
758
+
759
+ # header parameters
760
+ header_params = {}
761
+ # HTTP header 'Accept' (if needed)
762
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
763
+ # HTTP header 'Content-Type'
764
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
765
+
766
+ # form parameters
767
+ form_params = {}
768
+ form_params["source"] = source
769
+
770
+ # http body (model)
771
+ post_body = nil
772
+ auth_names = ['jwt']
773
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
774
+ :header_params => header_params,
775
+ :query_params => query_params,
776
+ :form_params => form_params,
777
+ :body => post_body,
778
+ :auth_names => auth_names,
779
+ :return_type => 'UploadIntegrationProfilePhotoResponse')
780
+ if @api_client.config.debugging
781
+ @api_client.config.logger.debug "API called: IntegrationApi#upload_integration_profile_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
782
+ end
783
+ return data, status_code, headers
784
+ end
656
785
  end
657
786
  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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
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: 5.5
6
+ OpenAPI spec version: 5.6
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT