Sha256: 71e18b9fe109649ef685d4ad25c5e14b9721c29f02976968b103abfa58242bba

Contents?: true

Size: 1.83 KB

Versions: 35

Compression:

Stored size: 1.83 KB

Contents

# SoapyCake
[![Code Climate](https://codeclimate.com/github/ad2games/soapy_cake.png)](https://codeclimate.com/github/ad2games/soapy_cake)
[![Test Coverage](https://codeclimate.com/github/ad2games/soapy_cake/coverage.png)](https://codeclimate.com/github/ad2games/soapy_cake)
[![Gem Version](http://img.shields.io/gem/v/soapy_cake.svg)](http://rubygems.org/gems/soapy_cake)
[![Dependency Status](http://img.shields.io/gemnasium/ad2games/soapy_cake.svg)](https://gemnasium.com/ad2games/soapy_cake)
[![Circle CI](https://circleci.com/gh/ad2games/soapy_cake.png?style=shield&circle-token=aac691804f58acd8e96db632f8133e3c6155f123)](https://circleci.com/gh/ad2games/soapy_cake)

Simple client library for [cake](http://getcake.com).

## 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:

```ruby
SoapyCake::Admin.new.advertisers(opts)
```

Get report for specific date range:

```ruby
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](api_versions.yml).

## Contributing

1. Fork it (https://github.com/ad2games/soapy_cake/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## Actual Soapy Cakes

If you are looking for actual soap cakes...

![Soapy Cake](http://soapycakes.co/wp-content/uploads/2012/05/blogpics17-310x205.jpg)

you should head to [soapycakes.co](http://soapycakes.co).

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
soapy_cake-1.10.0 README.md
soapy_cake-1.9.2 README.md
soapy_cake-1.9.1 README.md
soapy_cake-1.9.0 README.md
soapy_cake-1.8.1 README.md
soapy_cake-1.8.0 README.md
soapy_cake-1.7.2 README.md
soapy_cake-1.7.1 README.md
soapy_cake-1.7.0 README.md
soapy_cake-1.6.9 README.md
soapy_cake-1.6.8 README.md
soapy_cake-1.6.7 README.md
soapy_cake-1.6.6 README.md
soapy_cake-1.6.5 README.md
soapy_cake-1.6.4 README.md
soapy_cake-1.6.3 README.md
soapy_cake-1.6.2 README.md
soapy_cake-1.6.1 README.md
soapy_cake-1.6.0 README.md
soapy_cake-1.5.2 README.md