Class: Notifo::AppsApi
- Inherits:
-
Object
- Object
- Notifo::AppsApi
- Defined in:
- lib/notifo/api/apps_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#apps_delete_contributor(app_id, contributor_id, opts = {}) ⇒ AppDetailsDto
Delete an app contributor.
-
#apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Delete an app contributor.
-
#apps_delete_email_template(app_id, language, opts = {}) ⇒ nil
Delete an app email template.
-
#apps_delete_email_template_with_http_info(app_id, language, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an app email template.
-
#apps_get_app(app_id, opts = {}) ⇒ AppDetailsDto
Get app by id.
-
#apps_get_app_with_http_info(app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Get app by id.
-
#apps_get_apps(opts = {}) ⇒ Array<AppDto>
Get the user apps.
-
#apps_get_apps_with_http_info(opts = {}) ⇒ Array<(Array<AppDto>, Integer, Hash)>
Get the user apps.
-
#apps_get_email_templates(app_id, opts = {}) ⇒ EmailTemplatesDto
Get the app email templates.
-
#apps_get_email_templates_with_http_info(app_id, opts = {}) ⇒ Array<(EmailTemplatesDto, Integer, Hash)>
Get the app email templates.
-
#apps_post_app(body, opts = {}) ⇒ AppDto
Create an app.
-
#apps_post_app_with_http_info(body, opts = {}) ⇒ Array<(AppDto, Integer, Hash)>
Create an app.
-
#apps_post_contributor(body, app_id, opts = {}) ⇒ AppDetailsDto
Add an app contributor.
-
#apps_post_contributor_with_http_info(body, app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Add an app contributor.
-
#apps_post_email_template(body, app_id, opts = {}) ⇒ EmailTemplateDto
Create an app email template.
-
#apps_post_email_template_with_http_info(body, app_id, opts = {}) ⇒ Array<(EmailTemplateDto, Integer, Hash)>
Create an app email template.
-
#apps_put_app(body, app_id, opts = {}) ⇒ AppDetailsDto
Update an app.
-
#apps_put_app_with_http_info(body, app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Update an app.
-
#apps_put_email_template(body, app_id, language, opts = {}) ⇒ nil
Update an app email template.
-
#apps_put_email_template_with_http_info(body, app_id, language, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Update an app email template.
-
#initialize(api_client = ApiClient.default) ⇒ AppsApi
constructor
A new instance of AppsApi.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/notifo/api/apps_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#apps_delete_contributor(app_id, contributor_id, opts = {}) ⇒ AppDetailsDto
Delete an app contributor.
24 25 26 27 |
# File 'lib/notifo/api/apps_api.rb', line 24 def apps_delete_contributor(app_id, contributor_id, opts = {}) data, _status_code, _headers = apps_delete_contributor_with_http_info(app_id, contributor_id, opts) data end |
#apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Delete an app contributor.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/notifo/api/apps_api.rb', line 34 def apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_contributor ...' end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_contributor" end # verify the required parameter 'contributor_id' is set if @api_client.config.client_side_validation && contributor_id.nil? fail ArgumentError, "Missing the required parameter 'contributor_id' when calling AppsApi.apps_delete_contributor" end # resource path local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'contributorId' + '}', contributor_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'AppDetailsDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_delete_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_delete_email_template(app_id, language, opts = {}) ⇒ nil
Delete an app email template.
84 85 86 87 |
# File 'lib/notifo/api/apps_api.rb', line 84 def apps_delete_email_template(app_id, language, opts = {}) apps_delete_email_template_with_http_info(app_id, language, opts) nil end |
#apps_delete_email_template_with_http_info(app_id, language, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete an app email template.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/notifo/api/apps_api.rb', line 94 def apps_delete_email_template_with_http_info(app_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_email_template ...' end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_email_template" end # verify the required parameter 'language' is set if @api_client.config.client_side_validation && language.nil? fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_delete_email_template" end # resource path local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_get_app(app_id, opts = {}) ⇒ AppDetailsDto
Get app by id.
143 144 145 146 |
# File 'lib/notifo/api/apps_api.rb', line 143 def apps_get_app(app_id, opts = {}) data, _status_code, _headers = apps_get_app_with_http_info(app_id, opts) data end |
#apps_get_app_with_http_info(app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Get app by id.
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/notifo/api/apps_api.rb', line 152 def apps_get_app_with_http_info(app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_app ...' end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_app" end # resource path local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'AppDetailsDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_get_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_get_apps(opts = {}) ⇒ Array<AppDto>
Get the user apps.
196 197 198 199 |
# File 'lib/notifo/api/apps_api.rb', line 196 def apps_get_apps(opts = {}) data, _status_code, _headers = apps_get_apps_with_http_info(opts) data end |
#apps_get_apps_with_http_info(opts = {}) ⇒ Array<(Array<AppDto>, Integer, Hash)>
Get the user apps.
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/notifo/api/apps_api.rb', line 204 def apps_get_apps_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_apps ...' end # resource path local_var_path = '/api/apps' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<AppDto>' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_get_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_get_email_templates(app_id, opts = {}) ⇒ EmailTemplatesDto
Get the app email templates.
245 246 247 248 |
# File 'lib/notifo/api/apps_api.rb', line 245 def apps_get_email_templates(app_id, opts = {}) data, _status_code, _headers = apps_get_email_templates_with_http_info(app_id, opts) data end |
#apps_get_email_templates_with_http_info(app_id, opts = {}) ⇒ Array<(EmailTemplatesDto, Integer, Hash)>
Get the app email templates.
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/notifo/api/apps_api.rb', line 254 def apps_get_email_templates_with_http_info(app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_email_templates ...' end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_email_templates" end # resource path local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'EmailTemplatesDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_post_app(body, opts = {}) ⇒ AppDto
Create an app.
299 300 301 302 |
# File 'lib/notifo/api/apps_api.rb', line 299 def apps_post_app(body, opts = {}) data, _status_code, _headers = apps_post_app_with_http_info(body, opts) data end |
#apps_post_app_with_http_info(body, opts = {}) ⇒ Array<(AppDto, Integer, Hash)>
Create an app.
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/notifo/api/apps_api.rb', line 308 def apps_post_app_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_app ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_app" end # resource path local_var_path = '/api/apps' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'AppDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_post_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_post_contributor(body, app_id, opts = {}) ⇒ AppDetailsDto
Add an app contributor.
356 357 358 359 |
# File 'lib/notifo/api/apps_api.rb', line 356 def apps_post_contributor(body, app_id, opts = {}) data, _status_code, _headers = apps_post_contributor_with_http_info(body, app_id, opts) data end |
#apps_post_contributor_with_http_info(body, app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Add an app contributor.
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/notifo/api/apps_api.rb', line 366 def apps_post_contributor_with_http_info(body, app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_contributor ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_contributor" end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_contributor" end # resource path local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'AppDetailsDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_post_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_post_email_template(body, app_id, opts = {}) ⇒ EmailTemplateDto
Create an app email template.
418 419 420 421 |
# File 'lib/notifo/api/apps_api.rb', line 418 def apps_post_email_template(body, app_id, opts = {}) data, _status_code, _headers = apps_post_email_template_with_http_info(body, app_id, opts) data end |
#apps_post_email_template_with_http_info(body, app_id, opts = {}) ⇒ Array<(EmailTemplateDto, Integer, Hash)>
Create an app email template.
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/notifo/api/apps_api.rb', line 428 def apps_post_email_template_with_http_info(body, app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_email_template" end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_email_template" end # resource path local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'EmailTemplateDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_post_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_put_app(body, app_id, opts = {}) ⇒ AppDetailsDto
Update an app.
480 481 482 483 |
# File 'lib/notifo/api/apps_api.rb', line 480 def apps_put_app(body, app_id, opts = {}) data, _status_code, _headers = apps_put_app_with_http_info(body, app_id, opts) data end |
#apps_put_app_with_http_info(body, app_id, opts = {}) ⇒ Array<(AppDetailsDto, Integer, Hash)>
Update an app.
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/notifo/api/apps_api.rb', line 490 def apps_put_app_with_http_info(body, app_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_app ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_app" end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_app" end # resource path local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'AppDetailsDto' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_put_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#apps_put_email_template(body, app_id, language, opts = {}) ⇒ nil
Update an app email template.
543 544 545 546 |
# File 'lib/notifo/api/apps_api.rb', line 543 def apps_put_email_template(body, app_id, language, opts = {}) apps_put_email_template_with_http_info(body, app_id, language, opts) nil end |
#apps_put_email_template_with_http_info(body, app_id, language, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Update an app email template.
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 |
# File 'lib/notifo/api/apps_api.rb', line 554 def apps_put_email_template_with_http_info(body, app_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_email_template ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_email_template" end # verify the required parameter 'app_id' is set if @api_client.config.client_side_validation && app_id.nil? fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_email_template" end # verify the required parameter 'language' is set if @api_client.config.client_side_validation && language.nil? fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_put_email_template" end # resource path local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: AppsApi#apps_put_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |