2016-12-19 41 views
0

我有一个trackId 534438314.我正在使用iTunes api获取有关此应用程序的信息。但我无法找到应用程序的详细信息。下面是我曾尝试:无法使用iTunes api找到应用程序

  1. 我尝试使用iTunes的API,没有任何多余的PARAM

    https://itunes.apple.com/lookup?id=534438314

它给0结果

  • 我知道这个应用程序在日本商店有售,所以我添加了国家参数,并尝试了以下网址
  • https://itunes.apple.com/lookup?id=534438314&country=jp

    它给0结果

  • 我使用bundleId有和没有国家PARAM也尝试。这两种情况都给出了0个结果。
  • https://itunes.apple.com/lookup?bundleId=net.appbank.maobank

    我坚持这一点,并不能进一步进行。任何帮助将非常感激。提前致谢。

    +0

    试试这个https://itunes.apple。 COM /中/应用程序/ YourAppName/id534438314?MT = 8。可能会根据日本 – PiyushRathi

    +0

    更改'感谢您的及时回复。这是iTunes应用程序本身的URL。但我只想访问该应用的iTunes API –

    回答

    0

    *使用SKStoreProductViewController类首先获取正确的链接。**

    static NSInteger const kAppITunesItemIdentifier = 534438314; 
    [self openStoreProductViewControllerWithITunesItemIdentifier:kAppITunesItemIdentifier]; 
    
    - (void)openStoreProductViewControllerWithITunesItemIdentifier:(NSInteger)iTunesItemIdentifier { 
    SKStoreProductViewController *storeViewController = [[SKStoreProductViewController alloc] init]; 
    
    storeViewController.delegate = self; 
    
    NSNumber *identifier = [NSNumber numberWithInteger:iTunesItemIdentifier]; 
    
    NSDictionary *parameters = @{ SKStoreProductParameterITunesItemIdentifier:identifier }; 
    UIViewController *viewController = self.window.rootViewController; 
    [storeViewController loadProductWithParameters:parameters 
               completionBlock:^(BOOL result, NSError *error)  { 
                if (result) 
                 [viewController presentViewController:storeViewController 
                      animated:YES 
                     completion:nil]; 
                else NSLog(@"SKStoreProductViewController: %@", error); 
               }]; 
    
    [storeViewController release]; 
    } 
    
    #pragma mark - SKStoreProductViewControllerDelegate 
    
    - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController { 
    [viewController dismissViewControllerAnimated:YES completion:nil]; 
    } 
    

    当你得到适当的链接,然后使用链接来打开应用

    相关问题