Method: IntegrationApi::UtilsApi#get_widget_link_using_get_with_http_info

Defined in:
lib/integration_api/api/utils_api.rb

Retrieve widget link Retrieve the widget link.

Parameters:

  • nucleus_client_id

    nucleus_client_id

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :is_mobile_webview (BOOLEAN)

    is_mobile_webview

  • :mode (String)

    mode

  • :vendor_name (String)

    vendor_name

Returns:

  • (Array<(WidgetUrlVO, Fixnum, Hash)>)

    WidgetUrlVO data, response status code and response headers



231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/integration_api/api/utils_api.rb', line 231

def get_widget_link_using_get_with_http_info(nucleus_client_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: UtilsApi.get_widget_link_using_get ...'
  end
  # verify the required parameter 'nucleus_client_id' is set
  if @api_client.config.client_side_validation && nucleus_client_id.nil?
    fail ArgumentError, "Missing the required parameter 'nucleus_client_id' when calling UtilsApi.get_widget_link_using_get"
  end
  # resource path
  local_var_path = '/widget_link/{nucleus_client_id}'.sub('{' + 'nucleus_client_id' + '}', nucleus_client_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'is_mobile_webview'] = opts[:'is_mobile_webview'] if !opts[:'is_mobile_webview'].nil?
  query_params[:'mode'] = opts[:'mode'] if !opts[:'mode'].nil?
  query_params[:'vendor_name'] = opts[:'vendor_name'] if !opts[:'vendor_name'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['*/*'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['oauth2']
  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 => 'WidgetUrlVO')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UtilsApi#get_widget_link_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end