這是 iTunes 接口地址 ,有興趣可以看一下,我們要用到的接口如下,xxx 處換成自己 App 的 AppId ,AppId 可以在 iTunes Connect 里面看到。
http://itunes.apple.com/lookup?id=xxx
接口返回的內容有很多,我就挑一些有用的截出來了。
{
"resultCount" : 1,
"results" : [{
"artistId" : "開發者 ID",
"artistName" : "開發者名稱",
"trackCensoredName" : "審查名稱",
"trackContentRating" : "評級",
"trackId" : "應用程序 ID",
"trackName" = "應用程序名稱",
"trackViewUrl" = "應用程序下載網址",
"userRatingCount" = "用戶評論數量",
"userRatingCountForCurrentVersion" = "當前版本的用戶評論數量",
"version" = "版本號"
}]
}
https://itunes.apple.com/cn/app/jie-zou-da-shi/id493901993?mt=8 然后將 http:// 替換為 itms:// 或者 itms-apps:// 替換后的鏈接地址。 itms-apps://itunes.apple.com/cn/app/jie-zou-da-shi/id493901993?mt=8
