Hydrogen Proton API
Hydrogen Proton API
For more information, please visit https://www.hydrogenplatform.com/apis
Documentation
https://www.hydrogenplatform.com/docs/proton/v1
Requirements
- Ruby 2.7+
Installation
Install via Ruby Gems
Install the gem:
gem install hydrogen-proton-api
The add this to the Gemfile:
gem 'hydrogen-proton-api', '~> 1.9', '>= 1.9.2'
Getting Started
Please first follow the installation instructions. Then make sure you use the proper base URL:
Base URL
Create an object of Environment and use the set_environment method to update the environment.
Sandbox URL
environment_config = ProtonApi::Environment.new
environment_config.set_environment(environment_config.SANDBOX)
Production URL
environment_config = ProtonApi::Environment.new
environment_config.set_environment(environment_config.PRODUCTION)
require 'proton_api'
environment_config = ProtonApi::Environment.new
environment_config.set_environment(environment_config.PRODUCTION)
ProtonApi.configure do |config|
config.create_client_credential("CLIENT_ID", "CLIENT_SECRET");
config.create_password_credential("CLIENT_ID", "CLIENT_SECRET", "USERNAME", "PASSWORD");
config.create_client_token_credential("CLIENT_ID", "CLIENT_SECRET", "CLIENT_TOKEN")
end
api_instance = ProtonApi::AnnuitiesApi.new
annuity_calculator_accumulation_horizon_request = ProtonApi::AnnuityCalculatorAccumulationHorizonRequest.new
begin
result = api_instance.annuity_calculator_accumulation_horizon(annuity_calculator_accumulation_horizon_request)
p result
rescue ProtonApi::ApiError => e
puts "Exception when calling AnnuitiesApi->annuity_calculator_accumulation_horizon: #{e}"
end
Author
The Hydrogen Technology Corporation
https://www.hydrogenplatform.com
Generated using Swagger Codegen