/accounts
- Works? Yes
- Tests? Yes
/connections
- Works? Yes
- Tests? Yes
/transactions
- Works? Yes
- Tests? Yes
/users
- Works? Yes
- Tests? Yes
Endpoints used in Quovo's Connect UI widget (/auth
, /challenges
, etc.) may not come any time soon, so if you want
them, fork and open up a PR for them.
Developed on 2.5.1, will probably work on anything 2.3 and above.
Needed for caching the API's JWT.
Add this line to your application's Gemfile
:
gem 'quovo-ruby'
Run:
bundle
Or install it yourself as:
gem install quovo-ruby
Go to wherever your initializers reside and create quovo.rb
:
require 'quovo-ruby'
Quovo.configure do |config|
# Quovo API dashboard credentials
config.username = ''
config.password = ''
# Outputs verbose HTTParty logging to stdout
config.verbose = true
# redis url for storing JWT
config.redis_url = 'redis://localhost:6379'
end
Quovo.users.all
=> #<OpenStruct body=#<OpenStruct users=[{...}, {...}]>, headers={ ... }, status_code=200, success?=true>
Quovo.users.create(username: 'test_username', name: 'John Doe', email: 'test@example.com')
Quovo.users.find(1)
Quovo.users.destroy(1)
Quovo.users.update(1, email: 'new_email@example.com', name: 'John Smith')
Quovo.accounts.all
Quovo.accounts.find(1)
Quovo.accounts
Quovo.accounts.for_user(2)
Quovo.accounts.for_connection(3)
Quovo.accounts.update(1, {???})
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/studentloanbenefits/quovo-ruby.
The gem is available as open source under the terms of the MIT License.