是否可以以编程方式创建 Apple iTunes 商店中项目的 URL?

发布于 2024-07-16 20:20:33 字数 471 浏览 7 评论 0原文

是否可以以编程方式创建直接指向 Apple iTunes 商店上的项目的 URL?

我注意到 last.fm 和类似网站的链接可以将用户直接带到 iTunes 商店的一部分,例如作为专辑页面。

该链接的 URL 由 last.fm 创建。 下面是此类 URL 的示例: http://www.last.fm/affiliate_redirect。 php?restype=9&id=3168755&supplier=24

我认为他们在这个链接后面有一些代码,但他们肯定没有手动添加所有项目?

Is it possible to create URLs direct to items on the Apple iTunes store programmatically?

I have noticed that last.fm and similar sites have links which take the user directly to a part of the iTunes store, such as an album page.

The URL for the link is created by last.fm. Here's an example of such an URL:
http://www.last.fm/affiliate_redirect.php?restype=9&id=3168755&supplier=24

I presume they have some code behind this link, but surely they did not add all of the items manually?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

赤濁 2024-07-23 20:20:33

有两个方面。 首先,您可以通过以编程方式搜索 App Store< /a>:

http://www.onemanclapping.org/2009/01/itms-link-generator-api.html

接下来,您可以使用 LinkShare API

http://brandontreb.com/money-you-might-be-missing-out-on-linkshare-api-integration/

链接文字

There are two aspects. First, you can get deep links by programatically searching the App Store:

http://www.onemanclapping.org/2009/01/itms-link-generator-api.html

Next, you can convert those links to affiliate links using the LinkShare API:

http://brandontreb.com/money-you-might-be-missing-out-on-linkshare-api-integration/

link text

许仙没带伞 2024-07-23 20:20:33

此页面指出:

链接到 iTunes 如何创建
iTunes 链接?

使用您的联属会员用户名并
登录密码
www.linkshare.com。 关于创建链接
iTunes 页面,您会发现横幅
和文本链接。 作为附属机构,您
还可以访问 iTunes RSS
提要和创建直接的能力
任何歌曲、艺术家、专辑或的链接
iTunes 上的有声读物,以及
iMix 播放列表、播客和 iTunes
要点。

所以这听起来像是一个“不”。 当然,总是有一种蛮力方法,即从艺术家姓名列表或任何您想要创建链接的内容中抓取搜索引擎的输出。

This page states:

Linking to iTunes How do I create
iTunes links?

Use your affiliate user name and
password to log in at
www.linkshare.com. On the Create Links
page for iTunes, you will find banners
and text links. As an affiliate, you
also have access to the iTunes RSS
feeds and the ability to create direct
links to any song, artist, album, or
audiobook on iTunes, as well as to
iMix playlists, podcasts, and iTunes
Essentials.

So that sounds like a "no". Of course there's always the brute force approach of screen-scraping the output of a search engine fed from a list of artist names, or from whatever you want to create a link to ...

十二 2024-07-23 20:20:33

需要记住的一点是,苹果在 URL 结构中使用应用程序 ID,如果您希望能够在应用程序上线之前编写指向应用程序的链接,您可以通过进入 itunes connect 找到您的应用程序来自行创建 URL ID,然后创建一个 URL,如下所示。

来自 Itunes Connect 的 Apple ID

http://itunes.apple.com/app/id439244209

A Good thing to remember is that apple use app ID's in the URL structure, if you want to be able to code a link to your app before your app is live you can create the url yourself by going in to itunes connect, finding your app ID and then creating a URL as bellow.

Apple ID from Itunes Connect

http://itunes.apple.com/app/id439244209
临走之时 2024-07-23 20:20:33

我们以编程方式通过 URL 搜索歌曲,这是可从 itunes API 获取的链接的代码

NSString *method=[NSString stringWithFormat:@"http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?term=shakira's+waka+waka&entity=musicVideo"];
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    [request setURL:[NSURL URLWithString:method]];
    [request setHTTPMethod:@"GET"];
    [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
    artist=[[NSMutableArray alloc]init];
url=[[NSMutableArray alloc]init];
    album=[[NSMutableArray alloc]init];
            NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];

Programatically we search songs by URLs, this is code for that link available from itunes API

NSString *method=[NSString stringWithFormat:@"http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?term=shakira's+waka+waka&entity=musicVideo"];
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    [request setURL:[NSURL URLWithString:method]];
    [request setHTTPMethod:@"GET"];
    [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
    artist=[[NSMutableArray alloc]init];
url=[[NSMutableArray alloc]init];
    album=[[NSMutableArray alloc]init];
            NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文