Sha256: 26c974d5c816a32050b1df6da7a30f1b9623e3f1eb7794bf2f420ee515877c9b
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
# AruxApp Gem Gem for connecting to APIs for Arux.app common services. ## Installation Add this line to your application's Gemfile: ```ruby gem 'arux_app' ``` And then execute: $ bundle Or install it yourself as: $ gem install arux_app ## Usage Here is an example of how to get bank information for ACH purposes: ```ruby bi = AruxApp::API::BankInfo.new bi.get("091000019") => {"city"=>"MINNEAPOLIS", "addr1"=>"255 2ND AVE SOUTH", "name"=>"WELLS FARGO BANK NA (MINNESOTA)", "zip"=>"55479", "routing_number"=>"091000019", "id"=>"1cb7cd2e-c1c6-11e2-8fb0-12313d062143", "zip_ext"=>"0000", "office_type"=>"Main", "last_updated"=>"2004-02-20T00:00:00+00:00", "phone"=>"(800) 745-2426", "state"=>"MN"} ``` Here is an example of setting up an oauth2 flow: ```ruby class LoginController < ActionController::Base API_CONFIG = {client_id: "EXAMPLE-CLIENT-ID", client_secret: "EXAMPLE-CLIENT-SECRET", district_subdomain: "test", redirect_uri: "https://example.org/login"} def login code = params[:code] if code.blank? redirect_to AruxApp::API::Auth.new(API_CONFIG).authorization_url and return else auth = AruxApp::API::Auth.new(API_CONFIG) access_token = auth.access_token(code) user_data = access_token.user_data # log the user in based on the user_data json end end end ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/arux_app_gem/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arux_app-3.0.1 | README.md |
arux_app-3.0.0 | README.md |
arux_app-1.0.0 | README.md |