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 you're using Rails 3+
# config/initializers/validic.rb
Validic.configure do |config|
config.api_url = 'https://api.validic.com'
config.api_version = 'v1'
end
# If your using plain RUBY
# Create Validic::Client Object
options = {
api_url: 'https://api.validic.com',
api_version: 'v1',
access_token: 'DEMO_KEY' # Replace this with your key
}
client = Validic::Client.new options
# Create a Client Object expecting you have an initializer in place
# Validic::Client Object
client = Validic::Client.new
# => Get Account Activities
client.get_activities
# => Get Organization Activities
client.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