Project

fountain

0.01
Low commit activity in last 3 years
A long-lived project that still receives updates
Fountain REST API v2 wrapper for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Travis Build Status Maintainability Test Coverage Gem Version

Fountain REST API for Ruby

This is a gem wrapping the v2 REST API for Fountain.

Installation

Add this line to your application's Gemfile:

gem 'fountain'

And then execute:

$ bundle

Supported API calls

Applicant Management

List, create, delete, get, update applicant etc

See https://developer.fountain.com/docs/applicants

Usage

First, initialise the Fountain API token

Fountain.configure do |config|
  config.api_token = 'YOUR-FOUNTAIN-API-TOKEN'
end

List all applicants

applicants = Fountain::Api::Applicants.list
loop do
  break if applicants.count.zero?
  applicants.each do |applicant|
    # Do something with the applicant
  end
  applicants = Fountain::Api::Applicants.list(cursor: applicants.next_cursor)
end

Contributing

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

Note that spec tests are appreciated to minimise regressions. Before submitting a PR, please ensure that:

$ rspec

and

$ rubocop

both succeed

License

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