iOS:是否可以通过编程方式从 iOS 应用程序获取 iTunes 应用程序 link?

iOS: Is it possible to get iTunes app link from iOS application programmatically?

有没有办法从应用程序本身以编程方式获取自己的 iTunes 应用程序 link。我知道获取应用程序标识符,但不确定应用程序 link。如果是,那我怎么办?

你可以使用这个:

https://itunes.apple.com/lookup?id=<appid>

<appid> is id of app. Result of this is JSON with info about the app.

使用这个:

https://itunes.apple.com/lookup?id=<appid>

这将 return JSON 包含应用详细信息的响应,例如支持的设备、应用描述、用户评级等

过滤 JSON 并获取 trackViewUrl 输入 resultsJSON