sms_works_sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +120 -0
  4. data/Rakefile +8 -0
  5. data/docs/ApiKeyResponse.md +9 -0
  6. data/docs/AuthApi.md +102 -0
  7. data/docs/BatchMessage.md +11 -0
  8. data/docs/BatchMessageResponse.md +9 -0
  9. data/docs/BatchMessagesApi.md +224 -0
  10. data/docs/CancelledMessageResponse.md +9 -0
  11. data/docs/ErrorModel.md +9 -0
  12. data/docs/ExtendedErrorModel.md +10 -0
  13. data/docs/HelloWorldResponse.md +8 -0
  14. data/docs/Login.md +10 -0
  15. data/docs/Message.md +12 -0
  16. data/docs/MessageResponse.md +19 -0
  17. data/docs/MessagesApi.md +278 -0
  18. data/docs/MessagesResponse.md +8 -0
  19. data/docs/MessagesResponseMessages.md +8 -0
  20. data/docs/Query.md +13 -0
  21. data/docs/ScheduledBatchResponse.md +9 -0
  22. data/docs/ScheduledMessageResponse.md +9 -0
  23. data/docs/SendMessageResponse.md +10 -0
  24. data/docs/TokenResponse.md +8 -0
  25. data/docs/UtilsApi.md +56 -0
  26. data/git_push.sh +55 -0
  27. data/lib/swagger_client.rb +60 -0
  28. data/lib/swagger_client/api/auth_api.rb +134 -0
  29. data/lib/swagger_client/api/batch_messages_api.rb +243 -0
  30. data/lib/swagger_client/api/messages_api.rb +298 -0
  31. data/lib/swagger_client/api/utils_api.rb +75 -0
  32. data/lib/swagger_client/api_client.rb +389 -0
  33. data/lib/swagger_client/api_error.rb +38 -0
  34. data/lib/swagger_client/configuration.rb +209 -0
  35. data/lib/swagger_client/models/api_key_response.rb +207 -0
  36. data/lib/swagger_client/models/batch_message.rb +241 -0
  37. data/lib/swagger_client/models/batch_message_response.rb +207 -0
  38. data/lib/swagger_client/models/cancelled_message_response.rb +207 -0
  39. data/lib/swagger_client/models/error_model.rb +235 -0
  40. data/lib/swagger_client/models/extended_error_model.rb +249 -0
  41. data/lib/swagger_client/models/hello_world_response.rb +193 -0
  42. data/lib/swagger_client/models/login.rb +209 -0
  43. data/lib/swagger_client/models/message.rb +249 -0
  44. data/lib/swagger_client/models/message_response.rb +347 -0
  45. data/lib/swagger_client/models/messages_response.rb +188 -0
  46. data/lib/swagger_client/models/messages_response_messages.rb +188 -0
  47. data/lib/swagger_client/models/query.rb +239 -0
  48. data/lib/swagger_client/models/scheduled_batch_response.rb +207 -0
  49. data/lib/swagger_client/models/scheduled_message_response.rb +207 -0
  50. data/lib/swagger_client/models/send_message_response.rb +221 -0
  51. data/lib/swagger_client/models/token_response.rb +193 -0
  52. data/lib/swagger_client/version.rb +15 -0
  53. data/spec/api/auth_api_spec.rb +59 -0
  54. data/spec/api/batch_messages_api_spec.rb +83 -0
  55. data/spec/api/messages_api_spec.rb +95 -0
  56. data/spec/api/utils_api_spec.rb +47 -0
  57. data/spec/api_client_spec.rb +226 -0
  58. data/spec/configuration_spec.rb +42 -0
  59. data/spec/models/api_key_response_spec.rb +48 -0
  60. data/spec/models/batch_message_response_spec.rb +48 -0
  61. data/spec/models/batch_message_spec.rb +60 -0
  62. data/spec/models/cancelled_message_response_spec.rb +48 -0
  63. data/spec/models/error_model_spec.rb +48 -0
  64. data/spec/models/extended_error_model_spec.rb +54 -0
  65. data/spec/models/hello_world_response_spec.rb +42 -0
  66. data/spec/models/login_spec.rb +54 -0
  67. data/spec/models/message_response_spec.rb +108 -0
  68. data/spec/models/message_spec.rb +66 -0
  69. data/spec/models/messages_response_messages_spec.rb +42 -0
  70. data/spec/models/messages_response_spec.rb +42 -0
  71. data/spec/models/query_spec.rb +72 -0
  72. data/spec/models/scheduled_batch_response_spec.rb +48 -0
  73. data/spec/models/scheduled_message_response_spec.rb +48 -0
  74. data/spec/models/send_message_response_spec.rb +54 -0
  75. data/spec/models/token_response_spec.rb +42 -0
  76. data/spec/spec_helper.rb +111 -0
  77. data/swagger_client.gemspec +46 -0
  78. metadata +323 -0
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #The SMS Works API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'swagger_client/api_client'
15
+ require 'swagger_client/api_error'
16
+ require 'swagger_client/version'
17
+ require 'swagger_client/configuration'
18
+
19
+ # Models
20
+ require 'swagger_client/models/api_key_response'
21
+ require 'swagger_client/models/batch_message'
22
+ require 'swagger_client/models/batch_message_response'
23
+ require 'swagger_client/models/cancelled_message_response'
24
+ require 'swagger_client/models/error_model'
25
+ require 'swagger_client/models/hello_world_response'
26
+ require 'swagger_client/models/login'
27
+ require 'swagger_client/models/message'
28
+ require 'swagger_client/models/message_response'
29
+ require 'swagger_client/models/messages_response'
30
+ require 'swagger_client/models/messages_response_messages'
31
+ require 'swagger_client/models/query'
32
+ require 'swagger_client/models/scheduled_batch_response'
33
+ require 'swagger_client/models/scheduled_message_response'
34
+ require 'swagger_client/models/send_message_response'
35
+ require 'swagger_client/models/token_response'
36
+ require 'swagger_client/models/extended_error_model'
37
+
38
+ # APIs
39
+ require 'swagger_client/api/auth_api'
40
+ require 'swagger_client/api/batch_messages_api'
41
+ require 'swagger_client/api/messages_api'
42
+ require 'swagger_client/api/utils_api'
43
+
44
+ module SwaggerClient
45
+ class << self
46
+ # Customize default settings for the SDK using block.
47
+ # SwaggerClient.configure do |config|
48
+ # config.username = "xxx"
49
+ # config.password = "xxx"
50
+ # end
51
+ # If no block given, return the default Configuration object.
52
+ def configure
53
+ if block_given?
54
+ yield(Configuration.default)
55
+ else
56
+ Configuration.default
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,134 @@
1
+ =begin
2
+ #The SMS Works API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module SwaggerClient
16
+ class AuthApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ #
24
+ # Generates an API Key/Secret pair
25
+ # @param customerid The Customer ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [ApiKeyResponse]
28
+ def key_secret(customerid, opts = {})
29
+ data, _status_code, _headers = key_secret_with_http_info(customerid, opts)
30
+ return data
31
+ end
32
+
33
+ #
34
+ # Generates an API Key/Secret pair
35
+ # @param customerid The Customer ID
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(ApiKeyResponse, Fixnum, Hash)>] ApiKeyResponse data, response status code and response headers
38
+ def key_secret_with_http_info(customerid, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: AuthApi.key_secret ..."
41
+ end
42
+ # verify the required parameter 'customerid' is set
43
+ if @api_client.config.client_side_validation && customerid.nil?
44
+ fail ArgumentError, "Missing the required parameter 'customerid' when calling AuthApi.key_secret"
45
+ end
46
+ # resource path
47
+ local_var_path = "/auth/getApiKey"
48
+
49
+ # query parameters
50
+ query_params = {}
51
+ query_params[:'customerid'] = customerid
52
+
53
+ # header parameters
54
+ header_params = {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
57
+ # HTTP header 'Content-Type'
58
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = {}
62
+
63
+ # http body (model)
64
+ post_body = nil
65
+ auth_names = []
66
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => 'ApiKeyResponse')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: AuthApi#key_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ #
80
+ # Generates a Json Web Token
81
+ # @param credentials API Key &amp; Secret
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [TokenResponse]
84
+ def login(credentials, opts = {})
85
+ data, _status_code, _headers = login_with_http_info(credentials, opts)
86
+ return data
87
+ end
88
+
89
+ #
90
+ # Generates a Json Web Token
91
+ # @param credentials API Key &amp; Secret
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [Array<(TokenResponse, Fixnum, Hash)>] TokenResponse data, response status code and response headers
94
+ def login_with_http_info(credentials, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: AuthApi.login ..."
97
+ end
98
+ # verify the required parameter 'credentials' is set
99
+ if @api_client.config.client_side_validation && credentials.nil?
100
+ fail ArgumentError, "Missing the required parameter 'credentials' when calling AuthApi.login"
101
+ end
102
+ # resource path
103
+ local_var_path = "/auth/token"
104
+
105
+ # query parameters
106
+ query_params = {}
107
+
108
+ # header parameters
109
+ header_params = {}
110
+ # HTTP header 'Accept' (if needed)
111
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
112
+ # HTTP header 'Content-Type'
113
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
114
+
115
+ # form parameters
116
+ form_params = {}
117
+
118
+ # http body (model)
119
+ post_body = @api_client.object_to_http_body(credentials)
120
+ auth_names = []
121
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => 'TokenResponse')
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: AuthApi#login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,243 @@
1
+ =begin
2
+ #The SMS Works API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module SwaggerClient
16
+ class BatchMessagesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ #
24
+ # Cancels a scheduled SMS message
25
+ # @param batchid The ID of the batch you would like returned
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [CancelledMessageResponse]
28
+ def cancel_scheduled_batch_job(batchid, opts = {})
29
+ data, _status_code, _headers = cancel_scheduled_batch_job_with_http_info(batchid, opts)
30
+ return data
31
+ end
32
+
33
+ #
34
+ # Cancels a scheduled SMS message
35
+ # @param batchid The ID of the batch you would like returned
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(CancelledMessageResponse, Fixnum, Hash)>] CancelledMessageResponse data, response status code and response headers
38
+ def cancel_scheduled_batch_job_with_http_info(batchid, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: BatchMessagesApi.cancel_scheduled_batch_job ..."
41
+ end
42
+ # verify the required parameter 'batchid' is set
43
+ if @api_client.config.client_side_validation && batchid.nil?
44
+ fail ArgumentError, "Missing the required parameter 'batchid' when calling BatchMessagesApi.cancel_scheduled_batch_job"
45
+ end
46
+ # resource path
47
+ local_var_path = "/batches/schedule/{batchid}".sub('{' + 'batchid' + '}', batchid.to_s)
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = ['JWT']
65
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'CancelledMessageResponse')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: BatchMessagesApi#cancel_scheduled_batch_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+
78
+ #
79
+ # Retrieve all messages in a batch with the given batch ID
80
+ # @param batchid The ID of the batch you would like returned
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [MessagesResponse]
83
+ def get_batch_by_id(batchid, opts = {})
84
+ data, _status_code, _headers = get_batch_by_id_with_http_info(batchid, opts)
85
+ return data
86
+ end
87
+
88
+ #
89
+ # Retrieve all messages in a batch with the given batch ID
90
+ # @param batchid The ID of the batch you would like returned
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Array<(MessagesResponse, Fixnum, Hash)>] MessagesResponse data, response status code and response headers
93
+ def get_batch_by_id_with_http_info(batchid, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "Calling API: BatchMessagesApi.get_batch_by_id ..."
96
+ end
97
+ # verify the required parameter 'batchid' is set
98
+ if @api_client.config.client_side_validation && batchid.nil?
99
+ fail ArgumentError, "Missing the required parameter 'batchid' when calling BatchMessagesApi.get_batch_by_id"
100
+ end
101
+ # resource path
102
+ local_var_path = "/batch/{batchid}".sub('{' + 'batchid' + '}', batchid.to_s)
103
+
104
+ # query parameters
105
+ query_params = {}
106
+
107
+ # header parameters
108
+ header_params = {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
111
+ # HTTP header 'Content-Type'
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
113
+
114
+ # form parameters
115
+ form_params = {}
116
+
117
+ # http body (model)
118
+ post_body = nil
119
+ auth_names = ['JWT']
120
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => 'MessagesResponse')
127
+ if @api_client.config.debugging
128
+ @api_client.config.logger.debug "API called: BatchMessagesApi#get_batch_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
129
+ end
130
+ return data, status_code, headers
131
+ end
132
+
133
+ #
134
+ # Schedules a batch of SMS messages to be sent at the date-time you specify
135
+ # @param sms_message Message properties
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [ScheduledBatchResponse]
138
+ def schedule_batch(sms_message, opts = {})
139
+ data, _status_code, _headers = schedule_batch_with_http_info(sms_message, opts)
140
+ return data
141
+ end
142
+
143
+ #
144
+ # Schedules a batch of SMS messages to be sent at the date-time you specify
145
+ # @param sms_message Message properties
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [Array<(ScheduledBatchResponse, Fixnum, Hash)>] ScheduledBatchResponse data, response status code and response headers
148
+ def schedule_batch_with_http_info(sms_message, opts = {})
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "Calling API: BatchMessagesApi.schedule_batch ..."
151
+ end
152
+ # verify the required parameter 'sms_message' is set
153
+ if @api_client.config.client_side_validation && sms_message.nil?
154
+ fail ArgumentError, "Missing the required parameter 'sms_message' when calling BatchMessagesApi.schedule_batch"
155
+ end
156
+ # resource path
157
+ local_var_path = "/batch/schedule"
158
+
159
+ # query parameters
160
+ query_params = {}
161
+
162
+ # header parameters
163
+ header_params = {}
164
+ # HTTP header 'Accept' (if needed)
165
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
166
+ # HTTP header 'Content-Type'
167
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
168
+
169
+ # form parameters
170
+ form_params = {}
171
+
172
+ # http body (model)
173
+ post_body = @api_client.object_to_http_body(sms_message)
174
+ auth_names = ['JWT']
175
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
176
+ :header_params => header_params,
177
+ :query_params => query_params,
178
+ :form_params => form_params,
179
+ :body => post_body,
180
+ :auth_names => auth_names,
181
+ :return_type => 'ScheduledBatchResponse')
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug "API called: BatchMessagesApi#schedule_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
+ end
185
+ return data, status_code, headers
186
+ end
187
+
188
+ #
189
+ # Send a single SMS message to multiple recipients
190
+ # @param sms_message Message properties
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [BatchMessageResponse]
193
+ def send_batch(sms_message, opts = {})
194
+ data, _status_code, _headers = send_batch_with_http_info(sms_message, opts)
195
+ return data
196
+ end
197
+
198
+ #
199
+ # Send a single SMS message to multiple recipients
200
+ # @param sms_message Message properties
201
+ # @param [Hash] opts the optional parameters
202
+ # @return [Array<(BatchMessageResponse, Fixnum, Hash)>] BatchMessageResponse data, response status code and response headers
203
+ def send_batch_with_http_info(sms_message, opts = {})
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "Calling API: BatchMessagesApi.send_batch ..."
206
+ end
207
+ # verify the required parameter 'sms_message' is set
208
+ if @api_client.config.client_side_validation && sms_message.nil?
209
+ fail ArgumentError, "Missing the required parameter 'sms_message' when calling BatchMessagesApi.send_batch"
210
+ end
211
+ # resource path
212
+ local_var_path = "/batch/send"
213
+
214
+ # query parameters
215
+ query_params = {}
216
+
217
+ # header parameters
218
+ header_params = {}
219
+ # HTTP header 'Accept' (if needed)
220
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8'])
221
+ # HTTP header 'Content-Type'
222
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
223
+
224
+ # form parameters
225
+ form_params = {}
226
+
227
+ # http body (model)
228
+ post_body = @api_client.object_to_http_body(sms_message)
229
+ auth_names = ['JWT']
230
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
231
+ :header_params => header_params,
232
+ :query_params => query_params,
233
+ :form_params => form_params,
234
+ :body => post_body,
235
+ :auth_names => auth_names,
236
+ :return_type => 'BatchMessageResponse')
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug "API called: BatchMessagesApi#send_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
239
+ end
240
+ return data, status_code, headers
241
+ end
242
+ end
243
+ end