FormStalker

FormStack API client that can extract conditional logic.

Some missing methods like editing or deleting a form will be added along the way but we also encourage you do implement them and submitting a PR :thumbsup:

Code Climate Test Coverage Build Status Gem Version

1) Usage

Create an initializer and set your formstack oauth token.

FormStalker.configure do |config|
  config.oauth_token = 'your formstack oauth token'
end

Make requests to FormStack and receive a sanitized response

response = FormStalker.form(1)

# don't trust (response.status == :ok) because Formstack API does not respect the HTTP error status
if response.ok?
  form_data = response.data
else
  response.status # will return a symbol representing FormStack's HTTP status
  response.error # will return a message string explaining the error
end

2) Instalation

Add this to your Gemfile:

gem 'form_stalker'

And then execute:

$> bundle install

3) F.A.Q.

  • wip