Method: Bitpesa::CurrencyInfoApi#info_currencies_out_with_http_info

Defined in:
lib/bitpesa-sdk/api/currency_info_api.rb

#info_currencies_out_with_http_info(opts = {}) ⇒ Array<(CurrencyExchangeListResponse, Fixnum, Hash)>

Getting a list of possible output currencies Fetches a list of currencies available to use as the output currency and their exchange rates against the available input currencies. Usually the 3-character alpha ISO 4217 currency code (eg. USD) is used as the identifier.

Parameters:

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

    the optional parameters

Returns:



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/bitpesa-sdk/api/currency_info_api.rb', line 133

def info_currencies_out_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: CurrencyInfoApi.info_currencies_out ...'
  end
  # resource path
  local_var_path = '/info/currencies/out'

  # query parameters
  query_params = {}

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

  # form parameters
  form_params = {}

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