Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arux_app

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arux_app

  • 3.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

AruxApp Gem

Gem for connecting to APIs for Arux.app common services.

Installation

Add this line to your application's Gemfile:

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:

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:

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

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc