FlurryHarvest
Fetch Flurry app offers through their API.
See http://support.flurry.com/index.php?title=API/Code/GetRecommendations
for more info.
Installation
Add this line to your application’s Gemfile:
gem "flurry_harvest"
And then execute:
$ bundle
Or install it yourself as:
$ gem install flurry_harvest
Usage
@client = FlurryHarvest::Client.new(:api_access_code => "my_api_access_code", :api_key => "my_api_key")
@response = @client.fetch_offers(:udid => "asfereffajnfasfafafawfafaoweb", :mac => "D9:2A:1A:0C:FD:0B", :ip => "127.0.0.2")
offers are then in @response.offers
array
Available options for Client
api_access_code
- your API Access code, requiredapi_key
- your API key, requiredapi_host
- default set toapi.flurry.com
api_url
- default set to/appCircle/v2/getRecommendations
api_port
- 80 or 443 for SSLagent
- optionally Agent string, sent with request
Available options for fetching offers
all options are required
udid
- non-modified UDID from device,mac
- MAC address of the deviceip
- IP address of the user
Contributing
- 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