All URIs are relative to https://api.messente.com/v1
| Method | HTTP request | Description |
|---|---|---|
| get_pricelist | GET /pricelist | Get pricelist for account |
| get_prices | GET /prices | Get pricing for a specific country |
String get_pricelist(username, password)
Get pricelist for account
require 'time'
require 'messente_api'
# setup authorization
MessenteApi.configure do |config|
# Configure API key authorization: apiPassword
config.api_key['password'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['password'] = 'Bearer'
# Configure API key authorization: apiUsername
config.api_key['username'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['username'] = 'Bearer'
end
api_instance = MessenteApi::PricingApi.new
username = 'username_example' # String | The API username
password = 'password_example' # String | The API password
begin
# Get pricelist for account
result = api_instance.get_pricelist(username, password)
p result
rescue MessenteApi::ApiError => e
puts "Error when calling PricingApi->get_pricelist: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(String, Integer, Hash)> get_pricelist_with_http_info(username, password)
begin
# Get pricelist for account
data, status_code, headers = api_instance.get_pricelist_with_http_info(username, password)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue MessenteApi::ApiError => e
puts "Error when calling PricingApi->get_pricelist_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| username | String | The API username | |
| password | String | The API password |
String
- Content-Type: Not defined
- Accept: text/plain
get_prices(username, password, country, opts)
Get pricing for a specific country
require 'time'
require 'messente_api'
# setup authorization
MessenteApi.configure do |config|
# Configure API key authorization: apiPassword
config.api_key['password'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['password'] = 'Bearer'
# Configure API key authorization: apiUsername
config.api_key['username'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['username'] = 'Bearer'
end
api_instance = MessenteApi::PricingApi.new
username = 'username_example' # String | The API username
password = 'password_example' # String | The API password
country = 'EE' # String | The country code, for which to get the prices
opts = {
format: 'format_example' # String | The format of the response. Can be either 'json' or 'xml'. If not specified, defaults to 'json'.
}
begin
# Get pricing for a specific country
result = api_instance.get_prices(username, password, country, opts)
p result
rescue MessenteApi::ApiError => e
puts "Error when calling PricingApi->get_prices: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_prices_with_http_info(username, password, country, opts)
begin
# Get pricing for a specific country
data, status_code, headers = api_instance.get_prices_with_http_info(username, password, country, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Price>
rescue MessenteApi::ApiError => e
puts "Error when calling PricingApi->get_prices_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| username | String | The API username | |
| password | String | The API password | |
| country | String | The country code, for which to get the prices | |
| format | String | The format of the response. Can be either 'json' or 'xml'. If not specified, defaults to 'json'. | [optional] |
- Content-Type: Not defined
- Accept: application/json, application/xml, text/plain; charset=utf-8