SoapyCake
Simple client library for cake.
Installation
Add this line to your application's Gemfile:
gem 'soapy_cake'
And then execute:
$ bundle
Or install it yourself as:
$ gem install soapy_cake
Usage Examples
First we assume that you set the CAKE_DOMAIN
, CAKE_API_KEY
and CAKE_TIME_OFFSET
environment variables.
Export all advertisers:
SoapyCake::Admin.new.advertisers(opts)
Get report for specific date range:
SoapyCake::Admin.new.affiliate_summary(
start_date: Date.beginning_of_month,
end_date: Date.today
)
If you are interested in how we map methods to api endpoints take a look at api_versions.yml.
Contributing
- Fork it (https://github.com/ad2games/soapy_cake/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
Actual Soapy Cakes
If you are looking for actual soap cakes...
you should head to soapycakes.co.