https://github.com/filp/jotform
Ruby wrapper for the JotForm API
https://github.com/filp/jotform
Last synced: 6 months ago
JSON representation
Ruby wrapper for the JotForm API
- Host: GitHub
- URL: https://github.com/filp/jotform
- Owner: filp
- License: mit
- Created: 2013-08-23T13:51:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-27T16:06:21.000Z (over 12 years ago)
- Last Synced: 2025-02-06T07:45:39.579Z (11 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/jotform
- Size: 168 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/filp/jotform)
# jotform
Ruby wrapper for the JotForm developer API
http://api.jotform.com
## Installation:
1. Add the gem to your `Gemfile`
```ruby
source "https://rubygems.org"
gem "jotform"
```
2. Install it
```shell
$ bundle install
```
3. You're good to go!
## Usage:
```ruby
require "jotform"
jotform = JotForm::API.new(ENV['YOUR_API_KEY'])
# Load the active user, and get its details:
user = jotform.user
user.active? # => true
user.usage.submissions # => int
# ...
# Load a user's reports:
user.reports.each do |report|
puts "#{report.title}: #{report.url}" if report.enabled?
end
```
## Contributing:
- If you find a bug, and don't want to or can't fix it, please open a new issue.
- If you write a new feature or fix a bug, please write tests for it, if applicable.
- If you add new request tests and want to record them with VCR, you will need a valid API key to record VCR tests. The key will not be saved in the cassettes, don't worry.
Thank you!