有没有办法在iTunes Connect中完全自动化iOS应用程序内购买创建/编辑/删除? [英] Is there a way to fully automate iOS in-app purchase creation/editing/deletion in iTunes Connect?

查看:116
本文介绍了有没有办法在iTunes Connect中完全自动化iOS应用程序内购买创建/编辑/删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一个可以在其中创建和销售课程的网站使用iOS客户端.由于Apple希望将iOS应用程序中的所有可购买产品作为应用程序内购买提供,因此我需要一种使该应用程序内购买自动化的方法.现在,我已经阅读了"App Metadata Specification"和"Transporter用户指南"文档,这似乎是一种方法:在编辑(创建或删除)任何课程后自动生成元数据包,并自动(通过某些脚本?)将其馈送到运输者.但我缺乏这里的游乐场和经验-AppStore中还没有该应用程序.因此,我无法进行应用内购买.因此,我想知道通过运输商应用内购买创建的商品:它们会立即出售吗?如果我需要更改应用内购买的名称该怎么办(因为服务器上的课程已对其名称进行了编辑).我应该只上传整套应用内购买商品吗?

I'm working iOS client for a site where users can create and sell courses. Since Apple wants all the purchasable products in iOS app to be available as in-app purchases, I need a way to automate that in-app purchases generation. For now I've read 'App Metadata Specification' and 'Transporter User Guide' docs and that seems like a way to do it: generate metadata package when any course edited (created or deleted) and automatically (some script?) feed it to transporter. But I'm lacking playground and experience here - app is not in AppStore yet. So I can't play with in-app purchases for it. So I wonder about that created via transporter in-app purchases: will they be immediately available for sale? What if I need to change for example name of in-app purchase (because course on server got it's name edited). Should I just upload package with the whole bunch of in-app purchases?

我想成为我的应用的PS很好的例子是 Udemy :很多课程都可以通过应用内购买获得,每门课程都由其自己的非消耗性产品表示(购买时产品名称与课程名称相匹配)

PS good example of my app I want to be like is Udemy: lots of courses available as in-app purchases, each course represented by it's own non-consumable product (since product title while purchasing matches course name)

推荐答案

是的.它是太空飞船-

Yes, there is. It's Spaceship - a ruby gem part of fastlane that uses web scrapping to interact with Apple's web services.

我在不到10分钟的时间内向ITC添加了45个IAP,并提供了屏幕截图,所有操作均通过以下方式完成:

I added 45 IAPs to ITC in under 10 minutes with screenshots and all by:

  • 使用我的IAP数据创建一个.csv文件
  • 使用上载IAP的fastlane制作ruby脚本

关于如何执行相同操作的说明: https://goodkindoflazy.com/2017/12/11/automating-iap-creation-in-itunes-connect/

Instructions on how to do the same I did: https://goodkindoflazy.com/2017/12/11/automating-iap-creation-in-itunes-connect/

要点是我在此博客文章中找到的要点:

app.in_app_purchases.create!(
    type: Spaceship::Tunes::IAPType::NONCONSUMABLE, 
    versions: {
      "en-US" => {
        name: "Display name",
        description: "Description has at least 10 characters"
      }
    },
    reference_name: "IAP reference name",
    product_id: "com.your.app.consumable",
    cleared_for_sale: true,
    review_notes: "A note for a reviewer",
    review_screenshot: "/Users/you/Desktop/iap.jpg", 
    pricing_intervals: 
      [
        {
          country: "WW",
          begin_date: nil,
          end_date: nil,
          tier: 1
        }
      ] 
)

这篇关于有没有办法在iTunes Connect中完全自动化iOS应用程序内购买创建/编辑/删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆