# MoneyKit (ALPHA RELEASE) MoneyKit - the Ruby gem for the MoneyKit API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1.0 - Package version: 0.0.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen ## Installation ### Build a gem To build the Ruby code into a gem: ```shell gem build moneykit.gemspec ``` Then either install the gem locally: ```shell gem install ./moneykit-0.0.0.gem ``` (for development, run `gem install --dev ./moneykit-0.0.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: gem 'moneykit', '~> 0.0.0' ### Install from Git If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile: gem 'moneykit', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git' ### Include the Ruby code directly Include the Ruby code directly using `-I` as follows: ```shell ruby -Ilib script.rb ``` ## Getting Started Please follow the [installation](#installation) procedure and then run the following code: ```ruby # Load the gem require 'moneykit' # Setup authorization MoneyKit.configure do |config| # Configure Bearer authorization config.access_token = 'YOUR_BEARER_TOKEN' # Configure faraday connection config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' } end api_instance = MoneyKit::AccessTokenApi.new opts = { moneykit_version: 'moneykit_version_example', # String | grant_type: 'grant_type_example', # String | Token grant type. Only `client_credentials` supported. scope: 'scope_example', # String | Actions to be allowed for this token, given as one or more strings separated by spaces. If omitted, all actions allowed for your application will be granted to this token. client_id: 'client_id_example', # String | Your application's MoneyKit client ID. client_secret: 'client_secret_example' # String | Your application's MoneyKit client secret. } begin #/auth/token result = api_instance.generate_access_token(opts) p result rescue MoneyKit::ApiError => e puts "Exception when calling AccessTokenApi->generate_access_token: #{e}" end ```