ocelma / python-itunes

A simple python wrapper to access iTunes Store API http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
158 stars 65 forks source link

Support for iTunes afilliate LinkShare URLs #6

Open LunkRat opened 12 years ago

LunkRat commented 12 years ago

This may be implemented already, but I don't see a way to return URLs that have iTunes affiliate tracking from LinkShare. For example:

http://click.linksynergy.com/fs-bin/stat?id=3x5NRUJ3dAk&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Fartist%252Fprimus%252Fid105588%253Fuo%253D4%2526partnerId%253D30

If anyone has done this, please share. Thanks!

LunkRat commented 12 years ago

I found the answer to this issue here: http://www.leancrew.com/all-this/2012/01/apple-affiliate-links-via-textexpander/ and here: http://www.leancrew.com/all-this/2012/01/simpler-apple-affiliate-linking/

Perhaps this can be integrated into python-itunes using the code linked above? You could set your own partner ID and site ID variables at the beginning of your script and then python-itunes would return all URLs with your unique tracking code?

ocelma commented 12 years ago

Hi,

Ok. I will implement this whenever I have some spare time. It seems pretty simple.

I'm planning to do it this way:

http://www.leancrew.com/all-this/2012/01/simpler-apple-affiliate-linking/

So you'd be able to generate a link like this one: http://itunes.apple.com/us/app/notesy-for-dropbox/ id386095500?mt=8&partnerId=30&siteID=L4JhWyGwYTM

Thanks for the feedback!

chrisfields commented 10 years ago

I've been trying to do this as well, but for the life of me CANNOT get the store to change from US to GB! Anyone point me in the right direction?