TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'parsehub'And then execute:
$ bundle
Or install it yourself as:
$ gem install parsehub
Parsehub.configure do |config|
config.api_key = 'your-account-api-key'
endGet list of projects
Parsehub::Project.listGet project
Parsehub::Project.fetch('project-token')Run project
Parsehub::Project.run('project-token')Get last run data for a project
Parsehub::Project.last_ready_run('project-token')Get run
Parsehub::Run.fetch('run-token')Get run data
Parsehub::Run.data('run-token')Cancel run
Parsehub::Run.cancel('run-token')Delete run
Parsehub::Run.delete('run-token')Version # x.y.z
- x = Parsehub's API major version
- y = Parsehub's API minor version
- z = Gem's release number
For instance, 2.0.1 Gem version 1 that maps to Parsehub's API v2.0.
- Fork it ( https://github.com/[my-github-username]/parsehub/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request