码迷,mamicode.com
首页 > 移动开发 > 详细

通过接口指定appstore 的应用id获取Bundleid

时间:2019-06-21 09:44:51      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:VID   cal   you   arch   enter   clear   message   png   dna   

  1. 比如微信的 App Store 地址是 https://itunes.apple.com/cn/app/wei/id414478124

技术图片

 

  1. 提取上面地址的 id 参数,即上面链接的末尾部分:414478124
  2. 请求这个地址: https://itunes.apple.com/lookup?id=414478124,就会返回包含 APP 所有信息的 json 格式的文本文件,示例如下

    {
    "resultCount":1,
    "results": [
    {
    "screenshotUrls":["https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/af/f1/bc/aff1bc21-0a1c-d39f-1f5f-7ff5a62de657/mzl.zjlmztps.png/696x696bb.png", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/f2/02/c9/f202c923-20cf-fb55-7347-738fca01d093/mzl.aphjpnwm.png/696x696bb.png", "https://is4-ssl.mzstatic.com/image/thumb/Purple123/v4/27/a0/3a/27a03ae1-da0e-120f-0601-ddf1465c5067/mzl.xpaxzehb.png/696x696bb.png", "https://is4-ssl.mzstatic.com/image/thumb/Purple113/v4/35/29/85/35298588-fd1a-648c-700a-5901766baa91/mzl.qfyapzla.png/696x696bb.png", "https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/d3/03/62/d303629f-c958-ddc4-63cf-4da20026299c/mzl.fifspxpz.png/696x696bb.png"],
    "ipadScreenshotUrls":["https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/14/f1/9b/14f19bb0-5a4a-f12e-0eb3-5d045f1aab4f/mzl.xmocugep.jpg/1024x768bb.jpg", "https://is4-ssl.mzstatic.com/image/thumb/Purple113/v4/8b/65/65/8b6565bd-7477-99d6-f2e1-a84058a09860/mzl.jxulvzbc.jpg/1024x768bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple123/v4/4a/dc/b1/4adcb1a3-57cf-1919-3133-148885bf57bf/mzl.ctuaveaw.jpg/1024x768bb.jpg", "https://is3-ssl.mzstatic.com/image/thumb/Purple113/v4/02/7b/c7/027bc79b-94d0-4ff2-30b5-b06a9eda7b22/mzl.phdqpbev.png/1024x768bb.png"], "appletvScreenshotUrls":[], "artworkUrl60":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/bd/da/0f/bdda0f22-cce4-40b4-f1d6-cc48eaa52dee/source/60x60bb.jpg", "artworkUrl512":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/bd/da/0f/bdda0f22-cce4-40b4-f1d6-cc48eaa52dee/source/512x512bb.jpg", "artworkUrl100":"https://is2-ssl.mzstatic.com/image/thumb/Purple113/v4/bd/da/0f/bdda0f22-cce4-40b4-f1d6-cc48eaa52dee/source/100x100bb.jpg", "artistViewUrl":"https://apps.apple.com/us/developer/wechat/id614694882?uo=4", "isGameCenterEnabled":false,
    "supportedDevices":["Watch4-Watch4", "iPhone5s-iPhone5s", "iPadAir-iPadAir", "iPadAirCellular-iPadAirCellular", "iPadMiniRetina-iPadMiniRetina", "iPadMiniRetinaCellular-iPadMiniRetinaCellular", "iPhone6-iPhone6", "iPhone6Plus-iPhone6Plus", "iPadAir2-iPadAir2", "iPadAir2Cellular-iPadAir2Cellular", "iPadMini3-iPadMini3", "iPadMini3Cellular-iPadMini3Cellular", "iPodTouchSixthGen-iPodTouchSixthGen", "iPhone6s-iPhone6s", "iPhone6sPlus-iPhone6sPlus", "iPadMini4-iPadMini4", "iPadMini4Cellular-iPadMini4Cellular", "iPadPro-iPadPro", "iPadProCellular-iPadProCellular", "iPadPro97-iPadPro97", "iPadPro97Cellular-iPadPro97Cellular", "iPhoneSE-iPhoneSE", "iPhone7-iPhone7", "iPhone7Plus-iPhone7Plus", "iPad611-iPad611", "iPad612-iPad612", "iPad71-iPad71", "iPad72-iPad72", "iPad73-iPad73", "iPad74-iPad74", "iPhone8-iPhone8", "iPhone8Plus-iPhone8Plus", "iPhoneX-iPhoneX", "iPad75-iPad75", "iPad76-iPad76", "iPhoneXS-iPhoneXS", "iPhoneXSMax-iPhoneXSMax", "iPhoneXR-iPhoneXR", "iPad812-iPad812", "iPad834-iPad834", "iPad856-iPad856", "iPad878-iPad878", "iPadMini5-iPadMini5", "iPadMini5Cellular-iPadMini5Cellular", "iPadAir3-iPadAir3", "iPadAir3Cellular-iPadAir3Cellular", "iPodTouchSeventhGen-iPodTouchSeventhGen"], "advisories":["Frequent/Intense Mature/Suggestive Themes"], "kind":"software", "features":["iosUniversal"], "averageUserRatingForCurrentVersion":3.5, "trackCensoredName":"WeChat", "languageCodesISO2A":["AR", "ZH", "EN", "FR", "DE", "ID", "IT", "JA", "KO", "MS", "PT", "RU", "ZH", "ES", "TH", "ZH", "TR", "VI"], "fileSizeBytes":"250412032", "sellerUrl":"http://www.wechat.com", "contentAdvisoryRating":"17+", "userRatingCountForCurrentVersion":956, "trackViewUrl":"https://apps.apple.com/us/app/wechat/id414478124?uo=4", "trackContentRating":"17+", "trackName":"WeChat", "minimumOsVersion":"9.0",
    "releaseNotes":"What’s New:\n- When sending a Time Capsule, search and attach a background song.\n- Send a private comment within your friend’s Time Capsule.\n- New methods supported to register and login to your WeChat account\n\nRecent Updates:\n- Record a “Time Capsule” to chronicle the world through your eyes. “Blow a bubble” when viewing a friend’s Time Capsule to let your friend know you’ve opened it.\n- A whole new design with a clearer, more intuitive interface.\n- Configure an alert from a chat’s settings screen for a special alert when receiving a message.", "currentVersionReleaseDate":"2019-05-05T03:42:59Z", "sellerName":"Tencent Technology (Shenzhen) Company Limited", "genreIds":["6005", "6007"], "isVppDeviceBasedLicensingEnabled":true, "currency":"USD", "wrapperType":"software", "version":"7.0.4", "releaseDate":"2011-01-21T01:32:15Z", "primaryGenreName":"Social Networking", "primaryGenreId":6005, "trackId":414478124, "formattedPrice":"Free", "artistId":614694882, "artistName":"WeChat", "genres":["Social Networking", "Productivity"], "price":0.00,
    "description":"WeChat is more than a messaging and social media app – it is a lifestyle for one billion users across the world. Chat and make calls with friends, read news and use local services in Official Accounts and Mini Programs, play games with friends, enjoy mobile payment features with WeChat Pay, and much more.\n\nWhy do one billion people use WeChat?\n• MORE WAYS TO CHAT: Message friends using text, photo, voice, video, location sharing, and more. Create group chats with up to 500 members.\n• VOICE & VIDEO CALLS: High-quality voice and video calls to anywhere in the world. Make group video calls with up to 9 people.\n• REAL-TIME LOCATION: Not good at explaining directions? Share your real-time location with the tap of a button.\n• MOMENTS: Never forget your favorite moments. Post photos, videos, and more to share with friends on your personal Moments stream.\n• TIME CAPSULE (NEW!): Share glimpses of your day. Record short videos to post in your Time Capsule before they disappear in 24 hours.\n• STICKER GALLERY: Browse thousands of fun, animated stickers to help express yourself in chats, including stickers with your favorite cartoon and movie characters.\n• CUSTOM STICKERS (NEW!): Make chatting more unique with custom stickers and selfie stickers.\n• OFFICIAL ACCOUNTS: Tons of accounts to follow with original content and news for your reading pleasure.\n• MINI PROGRAMS: Countless third-party services all within the WeChat app that don’t require additional installation, saving you precious phone storage and time. \n• TOP STORIES: See the latest articles your friends are reading and discover all kinds of interesting content.\n• GAMES: Have fun and compete with friends in a huge selection of WeChat Mini Games and Tencent Games (available in select regions).\n• WECHAT PAY: Enjoy the convenience of world-leading mobile payment features with WeChat Pay and Wallet (available in select regions).\n• WECHAT OUT: Make calls to mobile phones and landlines around the globe at super low rates (only available in select regions).\n• WERUN: Use Healthkit and Health app data to sync your step count on WeRun, where you can compete against friends with daily step rankings. Enable WeRun in “Settings” > “General” > “Plug-ins”.\n• LANGUAGE SUPPORT: Localized in 20 different languages and can translate friends‘ messages and Moments posts.\n• BETTER PRIVACY: Giving you the highest level of control over your privacy, WeChat is the only messaging app to be certified by TRUSTe.", "bundleId":"com.tencent.xin", "averageUserRating":4.5, "userRatingCount":84403}]
    }

通过接口指定appstore 的应用id获取Bundleid

标签:VID   cal   you   arch   enter   clear   message   png   dna   

原文地址:https://www.cnblogs.com/dreamhighqiu/p/11062469.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!