获取应用程序本身的iTunes应用程序商店ID? [英] Get iTunes App Store ID of an app itself?
问题描述
能否iOS应用获取自身的iTunes的链接?是否有文件或无证的API呢?
Could an iOS app get the iTunes link of itself? Is there a documented or undocumented API for this?
推荐答案
下面就是答案。
- 的应用程序请求<一个href=\"http://itunes.apple.com/lookup?bundleId=com.clickgamer.AngryBirds\">http://itunes.apple.com/lookup?bundleId=com.clickgamer.AngryBirds
- 找到的
版本:2.1.0
和的TrackID:343200656
中的JSON响应
- The app requests http://itunes.apple.com/lookup?bundleId=com.clickgamer.AngryBirds
- Find the
"version": "2.1.0"
and"trackId": 343200656
in the JSON response.
警告:此API无证,苹果可能会改变,恕不另行通知。
Warning: This API is undocumented, Apple could change it without notice.
参考文献:
[1] <一个href=\"https://github.com/nicklockwood/iVersion/blob/master/iVersion/iVersion.m#L705\">https://github.com/nicklockwood/iVersion/blob/master/iVersion/iVersion.m#L705
[2] http://stackoverflow.com/a/8841636/41948 结果
[3] <一个href=\"http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsLookup?id=343200656&mt=8\">http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsLookup?id=343200656&mt=8
[4] <一个href=\"http://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/wsSearch?term=+Angry+Birds&country=US&media=software&entity=softwareDeveloper&limit=6&genreId=&version=2&output=json&callback=jsonp1343116626493\">http://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/wsSearch?term=+Angry+Birds&country=US&media=software&entity=softwareDeveloper&limit=6&genreId=&version=2&output=json&callback=jsonp1343116626493
这篇关于获取应用程序本身的iTunes应用程序商店ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!