Ruby API Wrapper for Validic
Add this line to your application's Gemfile:
gem 'validic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install validic
require'validic'# If your using Rails 3+# config/initializers/validic.rbValidic.configuredo |config|
config.api_url='https://api.validic.com'config.api_version='v1'end# If your using plain RUBY# Create Validic::Client Objectoptions={api_url: 'https://api.validic.com',api_version: 'v1',access_token: 'DEMO_KEY'# Replace this with your key}client=Validic::Client.newoptions# Create a Client Object expecting you have an initializer in place# Validic::Client Objectclient=Validic::Client.new# => Get Account Activitiesclient.get_activities# => Get Organization Activitiesclient.get_activites({organization_id: "YOUR_organization_id",access_token: "YOUR_ACCESS_TOKEN"})- Fork it
- 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 new Pull Request