class Notifo::AppsApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/notifo/api/apps_api.rb, line 16
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

apps_delete_contributor(app_id, contributor_id, opts = {}) click to toggle source

Delete an app contributor. @param app_id The id of the app. @param contributor_id The contributor to remove. @param [Hash] opts the optional parameters @return [AppDetailsDto]

# 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 = {}) click to toggle source

Delete an app contributor. @param app_id The id of the app. @param contributor_id The contributor to remove. @param [Hash] opts the optional parameters @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers

# 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 = {}) click to toggle source

Delete an app email template. @param app_id The id of the app where the email templates belong to. @param language The language. @param [Hash] opts the optional parameters @return [nil]

# 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 = {}) click to toggle source

Delete an app email template. @param app_id The id of the app where the email templates belong to. @param language The language. @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# 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(:DELETE, 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_delete_integration(app_id, id, opts = {}) click to toggle source

Delete an app integration. @param app_id The id of the app where the email templates belong to. @param id The id of the integration. @param [Hash] opts the optional parameters @return [nil]

# File lib/notifo/api/apps_api.rb, line 144
def apps_delete_integration(app_id, id, opts = {})
  apps_delete_integration_with_http_info(app_id, id, opts)
  nil
end
apps_delete_integration_with_http_info(app_id, id, opts = {}) click to toggle source

Delete an app integration. @param app_id The id of the app where the email templates belong to. @param id The id of the integration. @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 154
def apps_delete_integration_with_http_info(app_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_integration ...'
  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_integration"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_delete_integration"
  end
  # resource path
  local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', 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] 

  auth_names = opts[:auth_names] || []
  data, status_code, headers = @api_client.call_api(:DELETE, 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_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
apps_get_app(app_id, opts = {}) click to toggle source

Get app by id. @param app_id The id of the app. @param [Hash] opts the optional parameters @return [AppDetailsDto]

# File lib/notifo/api/apps_api.rb, line 203
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 = {}) click to toggle source

Get app by id. @param app_id The id of the app. @param [Hash] opts the optional parameters @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 212
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 = {}) click to toggle source

Get the user apps. @param [Hash] opts the optional parameters @return [Array<AppDto>]

# File lib/notifo/api/apps_api.rb, line 256
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 = {}) click to toggle source

Get the user apps. @param [Hash] opts the optional parameters @return [Array<(Array<AppDto>, Integer, Hash)>] Array<AppDto> data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 264
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 = {}) click to toggle source

Get the app email templates. @param app_id The id of the app where the email templates belong to. @param [Hash] opts the optional parameters @return [EmailTemplatesDto]

# File lib/notifo/api/apps_api.rb, line 305
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 = {}) click to toggle source

Get the app email templates. @param app_id The id of the app where the email templates belong to. @param [Hash] opts the optional parameters @return [Array<(EmailTemplatesDto, Integer, Hash)>] EmailTemplatesDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 314
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_get_integrations(app_id, opts = {}) click to toggle source

Get the app integrations. @param app_id The id of the app where the integrations belong to. @param [Hash] opts the optional parameters @return [ConfiguredIntegrationsDto]

# File lib/notifo/api/apps_api.rb, line 359
def apps_get_integrations(app_id, opts = {})
  data, _status_code, _headers = apps_get_integrations_with_http_info(app_id, opts)
  data
end
apps_get_integrations_with_http_info(app_id, opts = {}) click to toggle source

Get the app integrations. @param app_id The id of the app where the integrations belong to. @param [Hash] opts the optional parameters @return [Array<(ConfiguredIntegrationsDto, Integer, Hash)>] ConfiguredIntegrationsDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 368
def apps_get_integrations_with_http_info(app_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_integrations ...'
  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_integrations"
  end
  # resource path
  local_var_path = '/api/apps/{appId}/integrations'.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] || 'ConfiguredIntegrationsDto' 

  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_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
apps_post_app(body, opts = {}) click to toggle source

Create an app. @param body The request object. @param [Hash] opts the optional parameters @return [AppDto]

# File lib/notifo/api/apps_api.rb, line 413
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 = {}) click to toggle source

Create an app. @param body The request object. @param [Hash] opts the optional parameters @return [Array<(AppDto, Integer, Hash)>] AppDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 422
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 = {}) click to toggle source

Add an app contributor. @param body The request object. @param app_id The id of the app. @param [Hash] opts the optional parameters @return [AppDetailsDto]

# File lib/notifo/api/apps_api.rb, line 470
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 = {}) click to toggle source

Add an app contributor. @param body The request object. @param app_id The id of the app. @param [Hash] opts the optional parameters @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 480
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 = {}) click to toggle source

Create an app email template. @param body The request object. @param app_id The id of the app where the email templates belong to. @param [Hash] opts the optional parameters @return [EmailTemplateDto]

# File lib/notifo/api/apps_api.rb, line 532
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 = {}) click to toggle source

Create an app email template. @param body The request object. @param app_id The id of the app where the email templates belong to. @param [Hash] opts the optional parameters @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 542
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_post_integration(body, app_id, opts = {}) click to toggle source

Create an app integrations. @param body The request object. @param app_id The id of the app where the integration belong to. @param [Hash] opts the optional parameters @return [IntegrationCreatedDto]

# File lib/notifo/api/apps_api.rb, line 594
def apps_post_integration(body, app_id, opts = {})
  data, _status_code, _headers = apps_post_integration_with_http_info(body, app_id, opts)
  data
end
apps_post_integration_with_http_info(body, app_id, opts = {}) click to toggle source

Create an app integrations. @param body The request object. @param app_id The id of the app where the integration belong to. @param [Hash] opts the optional parameters @return [Array<(IntegrationCreatedDto, Integer, Hash)>] IntegrationCreatedDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 604
def apps_post_integration_with_http_info(body, app_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_integration ...'
  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_integration"
  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_integration"
  end
  # resource path
  local_var_path = '/api/apps/{appId}/integration'.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] || 'IntegrationCreatedDto' 

  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_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
apps_put_app(body, app_id, opts = {}) click to toggle source

Update an app. @param body The request object. @param app_id The app id to update. @param [Hash] opts the optional parameters @return [AppDetailsDto]

# File lib/notifo/api/apps_api.rb, line 656
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 = {}) click to toggle source

Update an app. @param body The request object. @param app_id The app id to update. @param [Hash] opts the optional parameters @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 666
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 = {}) click to toggle source

Update an app email template. @param body The request object. @param app_id The id of the app where the email templates belong to. @param language The language. @param [Hash] opts the optional parameters @return [nil]

# File lib/notifo/api/apps_api.rb, line 719
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 = {}) click to toggle source

Update an app email template. @param body The request object. @param app_id The id of the app where the email templates belong to. @param language The language. @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 730
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
apps_put_integration(body, app_id, id, opts = {}) click to toggle source

Update an app integration. @param body The request object. @param app_id The id of the app where the integration belong to. @param id The id of the integration. @param [Hash] opts the optional parameters @return [nil]

# File lib/notifo/api/apps_api.rb, line 787
def apps_put_integration(body, app_id, id, opts = {})
  apps_put_integration_with_http_info(body, app_id, id, opts)
  nil
end
apps_put_integration_with_http_info(body, app_id, id, opts = {}) click to toggle source

Update an app integration. @param body The request object. @param app_id The id of the app where the integration belong to. @param id The id of the integration. @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers

# File lib/notifo/api/apps_api.rb, line 798
def apps_put_integration_with_http_info(body, app_id, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_integration ...'
  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_integration"
  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_integration"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_put_integration"
  end
  # resource path
  local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', 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] 

  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_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end