我的 iPhone 应用程序通过 linkshare 附属程序链接到 iTunes 商店中的歌曲,直到此时我一直在手动创建链接 - 虽然这很耗时,但我以前没有问题。该应用程序每天都有新歌,手动创建链接已经失控。然而,在阅读了所有附属程序文档后,我无法找到链接到商店中特定轨道的方法 - 不使用链接构建器。我拥有的歌曲的唯一数据是轨道名称、艺术家姓名和专辑名称。
显然我可以使用搜索 api,但这似乎无法启用附属链接 - 因此我无法从销售中获益。
http://itunes.apple.com/search?term='.$tracksearch.'&country=gb&media=music&entity=musicTrack&attribute=musicTrackTerm&limit=1
所以我的问题是如何根据我拥有的三个数据通过 linkshare 联盟计划链接到特定轨道?
(我将 PHP 用于任何基本数据交互 - 以防万一有人提供任何编码方法 - 请记住,我想在服务器上生成链接,以便我的应用程序可以简单地从那里获取数据。)
最佳答案
Obviously I can use the search api, but that does not seem to enable the affiliate linking - so I cannot benefit from the sales.
Search API 正是您想要使用的工具。 API 将返回您需要的链接,您可以在获得该信息后对链接进行附属编码。
可以在此处的文档中找到编码过程: http://www.apple.com/itunes/affiliates/resources/documentation/linking-to-the-itunes-music-store.html
关于php - 通过 iTunes 联盟计划链接到特定轨道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12653952/