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

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

问题描述

我正在为一个网站开发 iOS 客户端,用户可以在该网站上创建和销售课程.由于 Apple 希望 iOS 应用程序中的所有可购买产品都可以作​​为应用程序内购买项提供,因此我需要一种方法来自动生成应用程序内购买项.现在我已经阅读了应用程序元数据规范"和传输器用户指南"文档,这似乎是一种方法:在编辑(创建或删除)任何课程时生成元数据包并自动(某些脚本?)将其提供给搬运工.但我在这里缺乏游乐场和经验 - 应用程序尚未在 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)

推荐答案

是的,有.它是 Spaceship - fastlane 使用网络抓取与 Apple 的网络服务交互.

Yes, there is. It's Spaceship - a ruby gem part of fastlane that uses web scraping 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/

它的要点是这个,我在this博文:

The gist of it is this, which I found in this blogpost:

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天全站免登陆