Git Product home page Git Product logo

wealthforge-ruby's Introduction

WealthForge API Client for Ruby

The WealthForge API acts as a connection between WealthForge's back-end transaction engine, CapitalForge, and your front-end website. This client seamlessly integrates into your Ruby application to provide an interface to the WealthForge API web service.

Installation

Add this line to your application's Gemfile:

gem 'wealth_forge'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wealthforge-ruby

Configuration

Before you can use this gem, you'll need to configure it with the key and cert, which you'll have after registering with WealthForge. If using with Rails, put this code in the initializer.

WealthForge.configure do |config|
  config.client_secret = ENV['WF_CLIENT_SECRET']
  config.client_id     = ENV['WF_CLIENT_ID']
  config.environment = 'development'
end

Usage

Please refer to the official WealthForge API documentation for a full list of API calls. Note that this is currently a partial implementation of the most commonly used functionality.

Available Calls

Investment

WealthForge::Investment.create params
WealthForge::Investment.get investment_id
WealthForge::Investment.file_upload path, mime_type, title, subscription_id

Issuer

WealthForge::Issuer.create params

Offering

WealthForge::Offering.create params

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dinosimone/wealthforge-ruby.

Tests

All tests can be run by typing rspec. Prior to running tests, you'll need to export your cert and key as such:

export WF_CLIENT_SECRET=[secret]
export WF_CLIENT_ID=[client-id]

License

The gem is available as open source under the terms of the MIT License.

Disclaimer

This project and the code therein was not created by and is not supported by WealthForge.

Author

Dino Simone ([email protected]) | dinosimone.com

wealthforge-ruby's People

Contributors

dinosimone avatar

Stargazers

 avatar  avatar Andrew Batz avatar

Watchers

James Cloos avatar  avatar Andrew Batz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.