Permalink
Browse files

Generate version 1.2.0

  • Loading branch information...
Smooch Bot
Smooch Bot committed May 12, 2017
1 parent 60f3104 commit f2739dbf1df0b13fb8c9ad9670e21e8ec2c1e7fb
Showing with 337 additions and 137 deletions.
  1. +1 −1 README.md
  2. +4 −4 docs/AppApi.md
  3. +2 −1 lib/smooch-api.rb
  4. +40 −15 lib/smooch-api/api/app_api.rb
  5. +56 −19 lib/smooch-api/api/app_user_api.rb
  6. +23 −8 lib/smooch-api/api/conversation_api.rb
  7. +5 −2 lib/smooch-api/api/init_api.rb
  8. +53 −18 lib/smooch-api/api/integration_api.rb
  9. +5 −2 lib/smooch-api/api/menu_api.rb
  10. +32 −11 lib/smooch-api/api/webhook_api.rb
  11. +2 −1 lib/smooch-api/api_client.rb
  12. +2 −1 lib/smooch-api/api_error.rb
  13. +8 −1 lib/smooch-api/configuration.rb
  14. +2 −1 lib/smooch-api/models/action.rb
  15. +2 −1 lib/smooch-api/models/app.rb
  16. +2 −1 lib/smooch-api/models/app_create.rb
  17. +2 −1 lib/smooch-api/models/app_response.rb
  18. +2 −1 lib/smooch-api/models/app_user.rb
  19. +2 −1 lib/smooch-api/models/app_user_link.rb
  20. +2 −1 lib/smooch-api/models/app_user_pre_create.rb
  21. +2 −1 lib/smooch-api/models/app_user_response.rb
  22. +2 −1 lib/smooch-api/models/app_user_update.rb
  23. +2 −1 lib/smooch-api/models/client.rb
  24. +2 −1 lib/smooch-api/models/client_info.rb
  25. +2 −1 lib/smooch-api/models/conversation.rb
  26. +2 −1 lib/smooch-api/models/destination.rb
  27. +2 −1 lib/smooch-api/models/device_init.rb
  28. +2 −1 lib/smooch-api/models/device_response.rb
  29. +2 −1 lib/smooch-api/models/device_update.rb
  30. +2 −1 lib/smooch-api/models/display_settings.rb
  31. +2 −1 lib/smooch-api/models/event.rb
  32. +2 −1 lib/smooch-api/models/get_messages_response.rb
  33. +2 −1 lib/smooch-api/models/init.rb
  34. +2 −1 lib/smooch-api/models/init_response.rb
  35. +2 −1 lib/smooch-api/models/integration.rb
  36. +2 −1 lib/smooch-api/models/integration_create.rb
  37. +2 −1 lib/smooch-api/models/integration_response.rb
  38. +2 −1 lib/smooch-api/models/jwt_response.rb
  39. +2 −1 lib/smooch-api/models/list_apps_response.rb
  40. +2 −1 lib/smooch-api/models/list_integrations_response.rb
  41. +2 −1 lib/smooch-api/models/list_secret_keys_response.rb
  42. +2 −1 lib/smooch-api/models/list_webhooks_response.rb
  43. +2 −1 lib/smooch-api/models/menu.rb
  44. +2 −1 lib/smooch-api/models/menu_item.rb
  45. +2 −1 lib/smooch-api/models/menu_response.rb
  46. +2 −1 lib/smooch-api/models/message.rb
  47. +2 −1 lib/smooch-api/models/message_item.rb
  48. +2 −1 lib/smooch-api/models/message_post.rb
  49. +2 −1 lib/smooch-api/models/message_response.rb
  50. +2 −1 lib/smooch-api/models/post_messages_response.rb
  51. +2 −1 lib/smooch-api/models/secret_key.rb
  52. +2 −1 lib/smooch-api/models/secret_key_create.rb
  53. +2 −1 lib/smooch-api/models/secret_key_response.rb
  54. +2 −1 lib/smooch-api/models/track_event_response.rb
  55. +2 −1 lib/smooch-api/models/typing_activity_trigger.rb
  56. +2 −1 lib/smooch-api/models/webhook.rb
  57. +2 −1 lib/smooch-api/models/webhook_create.rb
  58. +2 −1 lib/smooch-api/models/webhook_response.rb
  59. +2 −1 lib/smooch-api/models/webhook_update.rb
  60. +3 −2 lib/smooch-api/version.rb
  61. +3 −2 smooch-api.gemspec
  62. +2 −1 spec/api_client_spec.rb
  63. +2 −1 spec/configuration_spec.rb
  64. +2 −1 spec/spec_helper.rb
@@ -16,7 +16,7 @@ gem install smooch-api
Add this to the Gemfile:
gem 'smooch-api', '~> 1.1.0'
gem 'smooch-api', '~> 1.2.0'
## Getting Started
@@ -410,8 +410,8 @@ end
api_instance = SmoochApi::AppApi.new
opts = {
limit: 56, # Integer | The number of records to return.
offset: 56 # Integer | The number of initial records to skip before picking records to return.
limit: 0, # Integer | The number of records to return.
offset: 0 # Integer | The number of initial records to skip before picking records to return.
}
begin
@@ -426,8 +426,8 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**limit** | **Integer**| The number of records to return. | [optional]
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional]
**limit** | **Integer**| The number of records to return. | [optional] [default to 0]
**offset** | **Integer**| The number of initial records to skip before picking records to return. | [optional] [default to 0]
### Return type
@@ -3,9 +3,10 @@
#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).
OpenAPI spec version: 1.1
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -3,9 +3,10 @@
#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).
OpenAPI spec version: 1.1
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -39,7 +40,9 @@ def create_app_with_http_info(app_create_body, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.create_app ..."
end
# verify the required parameter 'app_create_body' is set
fail ArgumentError, "Missing the required parameter 'app_create_body' when calling AppApi.create_app" if app_create_body.nil?
if @api_client.config.client_side_validation && app_create_body.nil?
fail ArgumentError, "Missing the required parameter 'app_create_body' when calling AppApi.create_app"
end
# resource path
local_var_path = "/apps"
@@ -94,9 +97,13 @@ def create_secret_key_with_http_info(app_id, secret_key_create_body, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.create_secret_key ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.create_secret_key" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.create_secret_key"
end
# verify the required parameter 'secret_key_create_body' is set
fail ArgumentError, "Missing the required parameter 'secret_key_create_body' when calling AppApi.create_secret_key" if secret_key_create_body.nil?
if @api_client.config.client_side_validation && secret_key_create_body.nil?
fail ArgumentError, "Missing the required parameter 'secret_key_create_body' when calling AppApi.create_secret_key"
end
# resource path
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
@@ -149,7 +156,9 @@ def delete_app_with_http_info(app_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.delete_app ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_app" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_app"
end
# resource path
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
@@ -203,9 +212,13 @@ def delete_secret_key_with_http_info(app_id, key_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.delete_secret_key ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_secret_key" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.delete_secret_key"
end
# verify the required parameter 'key_id' is set
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.delete_secret_key" if key_id.nil?
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.delete_secret_key"
end
# resource path
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
@@ -257,7 +270,9 @@ def get_app_with_http_info(app_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.get_app ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app"
end
# resource path
local_var_path = "/apps/{appId}".sub('{' + 'appId' + '}', app_id.to_s)
@@ -312,9 +327,13 @@ def get_app_jwt_with_http_info(app_id, key_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.get_app_jwt ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app_jwt" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_app_jwt"
end
# verify the required parameter 'key_id' is set
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_app_jwt" if key_id.nil?
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_app_jwt"
end
# resource path
local_var_path = "/apps/{appId}/keys/{keyId}/jwt".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
@@ -369,9 +388,13 @@ def get_secret_key_with_http_info(app_id, key_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.get_secret_key ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_secret_key" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.get_secret_key"
end
# verify the required parameter 'key_id' is set
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_secret_key" if key_id.nil?
if @api_client.config.client_side_validation && key_id.nil?
fail ArgumentError, "Missing the required parameter 'key_id' when calling AppApi.get_secret_key"
end
# resource path
local_var_path = "/apps/{appId}/keys/{keyId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
@@ -407,8 +430,8 @@ def get_secret_key_with_http_info(app_id, key_id, opts = {})
#
# List all apps configured.
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The number of records to return.
# @option opts [Integer] :offset The number of initial records to skip before picking records to return.
# @option opts [Integer] :limit The number of records to return. (default to 0)
# @option opts [Integer] :offset The number of initial records to skip before picking records to return. (default to 0)
# @return [ListAppsResponse]
def list_apps(opts = {})
data, _status_code, _headers = list_apps_with_http_info(opts)
@@ -479,7 +502,9 @@ def list_secret_keys_with_http_info(app_id, opts = {})
@api_client.config.logger.debug "Calling API: AppApi.list_secret_keys ..."
end
# verify the required parameter 'app_id' is set
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.list_secret_keys" if app_id.nil?
if @api_client.config.client_side_validation && app_id.nil?
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppApi.list_secret_keys"
end
# resource path
local_var_path = "/apps/{appId}/keys".sub('{' + 'appId' + '}', app_id.to_s)
@@ -3,9 +3,10 @@
#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).
OpenAPI spec version: 1.1
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -43,11 +44,17 @@ def app_user_device_update_with_http_info(user_id, device_id, app_user_device_up
@api_client.config.logger.debug "Calling API: AppUserApi.app_user_device_update ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.app_user_device_update" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.app_user_device_update"
end
# verify the required parameter 'device_id' is set
fail ArgumentError, "Missing the required parameter 'device_id' when calling AppUserApi.app_user_device_update" if device_id.nil?
if @api_client.config.client_side_validation && device_id.nil?
fail ArgumentError, "Missing the required parameter 'device_id' when calling AppUserApi.app_user_device_update"
end
# verify the required parameter 'app_user_device_update_body' is set
fail ArgumentError, "Missing the required parameter 'app_user_device_update_body' when calling AppUserApi.app_user_device_update" if app_user_device_update_body.nil?
if @api_client.config.client_side_validation && app_user_device_update_body.nil?
fail ArgumentError, "Missing the required parameter 'app_user_device_update_body' when calling AppUserApi.app_user_device_update"
end
# resource path
local_var_path = "/appusers/{userId}/devices/{deviceId}".sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'deviceId' + '}', device_id.to_s)
@@ -100,7 +107,9 @@ def delete_app_user_profile_with_http_info(user_id, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.delete_app_user_profile ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.delete_app_user_profile" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.delete_app_user_profile"
end
# resource path
local_var_path = "/appusers/{userId}/profile".sub('{' + 'userId' + '}', user_id.to_s)
@@ -153,7 +162,9 @@ def get_app_user_with_http_info(user_id, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.get_app_user ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user"
end
# resource path
local_var_path = "/appusers/{userId}".sub('{' + 'userId' + '}', user_id.to_s)
@@ -206,7 +217,9 @@ def get_app_user_entity_ids_with_http_info(user_id, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.get_app_user_entity_ids ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user_entity_ids" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.get_app_user_entity_ids"
end
# resource path
local_var_path = "/appusers/{userId}/channels".sub('{' + 'userId' + '}', user_id.to_s)
@@ -261,9 +274,13 @@ def link_app_user_with_http_info(user_id, app_user_link_body, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.link_app_user ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.link_app_user" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.link_app_user"
end
# verify the required parameter 'app_user_link_body' is set
fail ArgumentError, "Missing the required parameter 'app_user_link_body' when calling AppUserApi.link_app_user" if app_user_link_body.nil?
if @api_client.config.client_side_validation && app_user_link_body.nil?
fail ArgumentError, "Missing the required parameter 'app_user_link_body' when calling AppUserApi.link_app_user"
end
# resource path
local_var_path = "/appusers/{userId}/channels".sub('{' + 'userId' + '}', user_id.to_s)
@@ -320,11 +337,17 @@ def post_image_message_with_http_info(user_id, source, role, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.post_image_message ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.post_image_message" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.post_image_message"
end
# verify the required parameter 'source' is set
fail ArgumentError, "Missing the required parameter 'source' when calling AppUserApi.post_image_message" if source.nil?
if @api_client.config.client_side_validation && source.nil?
fail ArgumentError, "Missing the required parameter 'source' when calling AppUserApi.post_image_message"
end
# verify the required parameter 'role' is set
fail ArgumentError, "Missing the required parameter 'role' when calling AppUserApi.post_image_message" if role.nil?
if @api_client.config.client_side_validation && role.nil?
fail ArgumentError, "Missing the required parameter 'role' when calling AppUserApi.post_image_message"
end
# resource path
local_var_path = "/appusers/{userId}/images".sub('{' + 'userId' + '}', user_id.to_s)
@@ -379,7 +402,9 @@ def pre_create_app_user_with_http_info(app_user_pre_create_body, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.pre_create_app_user ..."
end
# verify the required parameter 'app_user_pre_create_body' is set
fail ArgumentError, "Missing the required parameter 'app_user_pre_create_body' when calling AppUserApi.pre_create_app_user" if app_user_pre_create_body.nil?
if @api_client.config.client_side_validation && app_user_pre_create_body.nil?
fail ArgumentError, "Missing the required parameter 'app_user_pre_create_body' when calling AppUserApi.pre_create_app_user"
end
# resource path
local_var_path = "/appusers"
@@ -434,9 +459,13 @@ def track_event_with_http_info(user_id, track_event_body, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.track_event ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.track_event" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.track_event"
end
# verify the required parameter 'track_event_body' is set
fail ArgumentError, "Missing the required parameter 'track_event_body' when calling AppUserApi.track_event" if track_event_body.nil?
if @api_client.config.client_side_validation && track_event_body.nil?
fail ArgumentError, "Missing the required parameter 'track_event_body' when calling AppUserApi.track_event"
end
# resource path
local_var_path = "/appusers/{userId}/events".sub('{' + 'userId' + '}', user_id.to_s)
@@ -491,9 +520,13 @@ def unlink_app_user_with_http_info(user_id, channel, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.unlink_app_user ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.unlink_app_user" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.unlink_app_user"
end
# verify the required parameter 'channel' is set
fail ArgumentError, "Missing the required parameter 'channel' when calling AppUserApi.unlink_app_user" if channel.nil?
if @api_client.config.client_side_validation && channel.nil?
fail ArgumentError, "Missing the required parameter 'channel' when calling AppUserApi.unlink_app_user"
end
# resource path
local_var_path = "/appusers/{userId}/channels/{channel}".sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'channel' + '}', channel.to_s)
@@ -547,9 +580,13 @@ def update_app_user_with_http_info(user_id, app_user_update_body, opts = {})
@api_client.config.logger.debug "Calling API: AppUserApi.update_app_user ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.update_app_user" if user_id.nil?
if @api_client.config.client_side_validation && user_id.nil?
fail ArgumentError, "Missing the required parameter 'user_id' when calling AppUserApi.update_app_user"
end
# verify the required parameter 'app_user_update_body' is set
fail ArgumentError, "Missing the required parameter 'app_user_update_body' when calling AppUserApi.update_app_user" if app_user_update_body.nil?
if @api_client.config.client_side_validation && app_user_update_body.nil?
fail ArgumentError, "Missing the required parameter 'app_user_update_body' when calling AppUserApi.update_app_user"
end
# resource path
local_var_path = "/appusers/{userId}".sub('{' + 'userId' + '}', user_id.to_s)
Oops, something went wrong.

0 comments on commit f2739db

Please sign in to comment.