itunes-affiliate

A simple gem that helps with the creation of itunes links, especially when dealing with EPF data. This is a work in progress, first version is really just to have the minimal use case working.

Feature requests are welcome.

If you use it please test against your affiliate id and provide feedback. Use at your own risk.

Build Status

Install

Include this in your gemfile

gem 'itunes-affiliate'

Configure

Create an initializer if you use rails in config/initializers named itunes_affiliate.rb and add the following code snippet with your keys. If a key is not present it will be ignored.

ItunesAffiliate.configure do |config| config.linkshare_key = '' config.linkshare_japan_key = '' config.tradedoubler_key = '' config.dgm_key = '' end

Use

A more detailed description can be found at http://rubydoc.info/gems/itunes-affiliate.

Some Sample Code

    link = ItunesLink.new("http://itunes.apple.com/app/swine-flu-detector/id295517288?uo=5")

    puts link.affiliate_link(:linkshare)

Dependencies

Acknowledgments

Trivia

This gem was created to the tunes of Nicki Minaj and Jennifer Lopez.

Build

rake build rake install rake release

Release Notes

0.0.1

Contributing to itunes-affiliate

== Copyright

Copyright (c) 2011 Martin Wawrusch. See LICENSE for further details.