This is a gem wrapping the v2 REST API for Fountain.
Add this line to your application's Gemfile:
gem 'fountain'
And then execute:
$ bundle
List, create, delete, get, update applicant etc
See https://developer.fountain.com/docs/applicants
First, initialise the Fountain API token
Fountain.configure do |config|
config.api_token = 'YOUR-FOUNTAIN-API-TOKEN'
end
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
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
The gem is available as open source under the terms of the MIT License.