lib |
spec |
8y .env.example |
8y .gitignore |
8y Gemfile |
8y Gemfile.lock |
8y LICENSE.txt |
8y README.md |
8y Rakefile |
8y ballpark_api.gemspec |
A Ruby wrapper for the BallparkApi REST API.
Add this line to your application's Gemfile:
gem 'ballpark_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ballpark_api
Before you can make calls to BallparkApi you must configure the library with a valid API Token. You can request a token be generated by BallparkApi. The API Token ties the API request to a particualr BallparkApi company id.
There are two ways to configure the gem. You can pass a hash of configuration options when you create a client, or you can use a configure block.
client = BallparkApi.client({api_token: "YOUR_TOKEN_HERE", api_appid: "YOUR_APPID_HERE"})
BallparkApi.configure do |config| config.api_appid = "YOUR_APPID_HERE" config.api_token = "YOUR_TOKEN_HERE" end client = BallparkApi.client
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)