如何从服务器端获取应用内或订阅信息?

时间:2016-08-25 09:57:05

标签: ios server in-app-purchase itunes

是否可以从服务器端bundle idproduct id获取iOS应用程序的应用内(或订阅)信息(至少价格,货币)?

我知道iOS客户可以使用他们的SDK。

也许存在像iTunes Lookup API这样的服务?

3 个答案:

答案 0 :(得分:0)

在StoreKit中你有SKProduct,你有价格 你可以在这里查看 https://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKit_Collection/

答案 1 :(得分:0)

我认为答案是否定的,他们打算从应用程序中获取IAP。以下是iTunes联盟搜索API返回的示例。 AFAIK没有其他API来查询应用信息。他们在guide to obtaining IAP information中没有提到其他方式。

http://itunes.apple.com/lookup?id=828578246

{
  "resultCount": 1,
  "results": [
    {
      "isGameCenterEnabled": true,
      "screenshotUrls": [
        "http://a2.mzstatic.com/us/r30/Purple49/v4/67/01/ff/6701ff5c-55d3-0ea6-d868-8d803072483b/screen696x696.jpeg",
        "http://a2.mzstatic.com/us/r30/Purple69/v4/7c/14/5f/7c145fc0-d7af-cfce-eede-f35ad50a779e/screen696x696.jpeg",
        "http://a3.mzstatic.com/us/r30/Purple69/v4/cc/0a/43/cc0a4393-a006-f485-a4b5-59049b16da18/screen696x696.jpeg",
        "http://a5.mzstatic.com/us/r30/Purple69/v4/e1/76/23/e1762373-849f-9935-7880-34b62365db8c/screen696x696.jpeg",
        "http://a5.mzstatic.com/us/r30/Purple69/v4/84/2f/63/842f635e-ccb1-7802-3fc3-020024a8d786/screen696x696.jpeg"
      ],
      "ipadScreenshotUrls": [
        "http://a2.mzstatic.com/us/r30/Purple69/v4/26/ea/ca/26eacabe-8606-de7e-c49a-aeb961c44a22/sc1024x768.jpeg",
        "http://a4.mzstatic.com/us/r30/Purple49/v4/11/60/5a/11605ad9-c93a-92d2-2abf-faff83c7e5e4/sc1024x768.jpeg",
        "http://a4.mzstatic.com/us/r30/Purple69/v4/bb/b5/8e/bbb58e8a-f6fb-7a4d-e6b9-02ad3007d601/sc1024x768.jpeg",
        "http://a2.mzstatic.com/us/r30/Purple69/v4/82/d5/34/82d53417-01aa-e6eb-f0f6-c57e76dae3d9/sc1024x768.jpeg",
        "http://a4.mzstatic.com/us/r30/Purple49/v4/04/ad/f4/04adf415-1a40-58b6-6d82-6e47394668e4/sc1024x768.jpeg"
      ],
      "appletvScreenshotUrls": [],
      "artworkUrl60": "https://is4-ssl.mzstatic.com/image/thumb/Purple71/v4/14/68/e7/1468e7e9-9dc8-4493-2738-bba066cd03c4/source/60x60bb.jpg",
      "artworkUrl512": "https://is4-ssl.mzstatic.com/image/thumb/Purple71/v4/14/68/e7/1468e7e9-9dc8-4493-2738-bba066cd03c4/source/512x512bb.jpg",
      "artworkUrl100": "https://is4-ssl.mzstatic.com/image/thumb/Purple71/v4/14/68/e7/1468e7e9-9dc8-4493-2738-bba066cd03c4/source/100x100bb.jpg",
      "artistViewUrl": "https://itunes.apple.com/us/developer/big-fish-games-inc/id292594310?uo=4",
      "kind": "software",
      "features": [
        "gameCenter",
        "iosUniversal"
      ],
      "supportedDevices": [
        "iPhone4",
        "iPad2Wifi",
        "iPad23G",
        "iPhone4S",
        "iPadThirdGen",
        "iPadThirdGen4G",
        "iPhone5",
        "iPodTouchFifthGen",
        "iPadFourthGen",
        "iPadFourthGen4G",
        "iPadMini",
        "iPadMini4G",
        "iPhone5c",
        "iPhone5s",
        "iPhone6",
        "iPhone6Plus",
        "iPodTouchSixthGen"
      ],
      "advisories": [],
      "trackCensoredName": "Gummy Drop!",
      "userRatingCountForCurrentVersion": 325,
      "sellerUrl": "http://www.bigfishgames.com/mobile-games/ios-games/",
      "contentAdvisoryRating": "4+",
      "languageCodesISO2A": [
        "NL",
        "EN",
        "FR",
        "DE",
        "IT",
        "JA",
        "KO",
        "PT",
        "RU",
        "ES"
      ],
      "fileSizeBytes": "89165452",
      "averageUserRatingForCurrentVersion": 4.5,
      "trackViewUrl": "https://itunes.apple.com/us/app/gummy-drop!/id828578246?mt=8&uo=4",
      "trackContentRating": "4+",
      "minimumOsVersion": "7.0",
      "formattedPrice": "Free",
      "currency": "USD",
      "wrapperType": "software",
      "version": "2.14.0",
      "artistId": 292594310,
      "artistName": "Big Fish Games, Inc",
      "genres": [
        "Games",
        "Arcade",
        "Puzzle",
        "Entertainment"
      ],
      "price": 0,
      "description": "Stop crushing & start squishing! Match your way around this candy world! LET’S GO GUMMY! ®\n\nTravel WHEREVER and WHENEVER you want!  From Sydney to Tokyo, San Francisco, New York City, Paris, London, Rome, Berlin, New Orleans, Barcelona, Shanghai, Los Angeles, Seoul, Havana, Rio de Janeiro, St. Petersburg, Mexico City, Cape Town, Budapest, Tahiti, Cairo, Marrakesh, Dubai, Bangkok, Athens, Amsterdam, Hawaii, Hong Kong, Singapore, New Delhi, Venice and more coming soon!\n\nFEATURES\n• Play over 10,000 gummified levels across dozens of world cities – MORE levels than any other Match-3 game!\n• Travel to any city, anytime!  Earn travel vouchers to unlock the city of your choice.\n• Exciting Achievements!  See your accomplishments in your Passport.\n• Unique boosts!  Including Shuffle, Lightning, Shovel, and more!\n• Huge rewards!  Score in-game items just for playing.\n• Daily Events!  Collect sweet bursts of resources and rewards.\n\nREVIEWS\nBetter than Candy Crush (5 STARS)\nLove the way the game travels around the world.\n\nFinally a Straight Up Game Experience (5 STARS)\nThis is an amazing game that is what it says - FREE. You can keep playing a challenging de-stressor without any bait and switch. Love It!!!!!!!!\n\nFun game (5 STARS)\nThis game starts easily and increases in difficulty as you get better. Fun to watch the cities grow as you add details.\n\nCan’t get enough of Gummy Drop! ? Visit our Headquarters, like us on Facebook of follow us on Twitter for sweet musings, matching tips, gummy stories, and tasty giveaways!\n\nGummy Drop! Headquarters:  www.bigfishgames.com/gummyHQ \nFacebook: Search Gummy Drop \nTwitter: @GummyDrop  \n \n*Note for updates - having trouble seeing your progress after an update? Try connecting with Facebook again and that should do the trick!*",
      "trackName": "Gummy Drop!",
      "trackId": 828578246,
      "bundleId": "com.bigfishgames.worldsagaaapluniversalF2P",
      "releaseDate": "2014-09-08T19:29:51Z",
      "primaryGenreName": "Games",
      "isVppDeviceBasedLicensingEnabled": true,
      "currentVersionReleaseDate": "2016-08-23T17:26:54Z",
      "releaseNotes": "Join us in the newest city, Queenstown!\nPlay over 360 brand new levels of Gummy matching fun today!\n\nOther improvements:\n•Optimizations and bug fixes to improve overall game performance.\n\nThanks for the continued support and feedback, and be sure to keep an eye out for more exciting updates!\n\nExperiencing issues? Please visit http://bigfi.sh/GummyHQ",
      "sellerName": "Big Fish Games, Inc",
      "primaryGenreId": 6014,
      "genreIds": [
        "6014",
        "7003",
        "7012",
        "6016"
      ],
      "averageUserRating": 4.5,
      "userRatingCount": 46621
    }
  ]
}

答案 2 :(得分:0)

我找到了允许这样做的第三方服务。 的 Appfigures 即可。在docs中,他们的产品类型为 inapp 。服务可能会返回价格货币。看起来我需要。

但需要在实践中检查它。

如果有人知道可以做到这一点的其他服务,请分享。谢谢!