iRate icon indicating copy to clipboard operation
iRate copied to clipboard

Lookup url is wrong

Open aaru opened this issue 10 years ago • 0 comments

This URL format is wrong. static NSString *const iRateAppLookupURLFormat = @"http://itunes.apple.com/%@/lookup";

As per Apple there is no country code in URL path, it is in query parameter. Ex: https://itunes.apple.com/lookup?id=284910350&country=us (https://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html#lookup)

Fix in iRate.m: from static NSString *const iRateAppLookupURLFormat = @"http://itunes.apple.com/%@/lookup"; to

static NSString *const iRateAppLookupURLFormat = @"http://itunes.apple.com/lookup";

from NSString *iTunesServiceURL = [NSString stringWithFormat:iRateAppLookupURLFormat, self.appStoreCountry]; to NSString *iTunesServiceURL = iRateAppLookupURLFormat;

aaru avatar Dec 31 '14 03:12 aaru