端点

商店隐私问卷的回答

根据应用代码生成 Google Play 数据安全表单和 App Store 应用隐私表单的回答。

GEThttps://www.setherion.com/api/v1/projects/{id}/store/privacy

套餐: 所有套餐

Google Play 的数据安全表单和 App Store 的应用隐私表单,是第一次上架的应用最容易卡住的地方。它们会询问一些所有者从未按名称选择过的数据类型,例如广告 ID 或崩溃日志。这个调用会根据应用代码的实际行为来回答这两份表单:人们是否登录、保存了什么、是否使用照片或位置、手机项目是否展示广告或销售商品,以及 Setherion 为已发布的网站添加了什么。

它是免费的,不消耗积分。有查看权限就足够了。这些回答与“Publish to app stores”窗口在各个步骤中显示的一致。参见发布到应用商店。

这些是根据代码得出的建议,需要所有者在提交前自行核对。它们不构成法律建议。如果某个猜测偏向一边更安全,回答会选择声明这项数据,而不是省略它,因为商店会原谅多写的一行,却会因为缺少的一行而下架应用。

请求

这里必须提供 way,因为它会改变回答。

bash
curl "https://www.setherion.com/api/v1/projects/7c1e4a52-9b0d-4f3e-8a61-2d5f0c9e7b14/store/privacy?way=easy" \
  -H "Authorization: Bearer $SETHERION_API_KEY"
参数含义
way必填。easy 或 native。简单方式(Easy way)会封装已发布的网站,所以它的回答包含页面浏览量、随机访客 ID,以及 Setherion 为每个已发布网站添加的错误报告。原生方式(Native way)不包含这些,但可能包含广告和应用内购买。

响应

json
{
  "ok": true,
  "way": "easy",
  "note": "Suggestions read from the app's code, for the owner to check before sending. Where a guess is safer one way, they declare rather than leave out.",
  "googlePlayDataSafety": "Google Play: Data safety\n\nDoes your app collect or share any of the required user data types?\n  Yes\nIs all of the user data collected by your app encrypted in transit?\n  Yes. Everything goes over HTTPS.\n\nData types:\n- App activity > App interactions: collected, not shared, required. Purposes: Analytics.\n  (Setherion counts the pages people open, under a random id kept in the app, for your visitor numbers.)\n- Device or other IDs > Device or other IDs: collected, not shared, required. Purposes: Analytics.\n  (That random id tells one visitor from another, nothing more.)\n- App info and performance > Crash logs: collected, not shared, required. Purposes: App functionality, Analytics.\n  (When the app hits an error, Setherion receives the error message, so you can fix it.)\n\nIf you connected Google Analytics to this app, it also collects app interactions and an id for Analytics.",
  "appStoreAppPrivacy": "App Store: App Privacy\n\nDo you or your third-party partners collect data from this app?\n  Yes, we collect data from this app\nIs any of it used to track people (across other companies' apps and websites)?\n  No\n\nData types:\n- Usage Data > Product Interaction: not linked to the user, not used for tracking. Purposes: Analytics.\n  (Setherion counts the pages people open, under a random id kept in the app, for your visitor numbers.)\n- Identifiers > Device ID: not linked to the user, not used for tracking. Purposes: Analytics.\n  (That random id tells one visitor from another, nothing more.)\n- Diagnostics > Crash Data: not linked to the user, not used for tracking. Purposes: App Functionality, Analytics.\n  (When the app hits an error, Setherion receives the error message, so you can fix it.)\n\nIf you connected Google Analytics to this app, it also collects app interactions and an id for Analytics."
}
字段类型含义
waystring你请求的方式。
notestring上面的提醒,用来显示在回答旁边。
googlePlayDataSafetystring数据安全表单,为带换行符(\n)的纯文本。
appStoreAppPrivacystring应用隐私表单,为带换行符的纯文本。

每段文本都以表单的名称开头,接着是表单的问题,每个问题下面是回答,然后是 Data types:,每种类型占一行,原因写在它下面的括号里,最后是备注。你可以原样打印出来,也可以在填写表单时把它放在旁边。

回答是根据什么得出的
  • 登录。 当人们注册该应用时,会声明电子邮件地址和用户 ID。表单随后还会询问账户是如何创建的,以及人们能否要求删除自己的数据。如果应用没有 Delete account 按钮,回答会提示先添加一个,上架准备指南会提供添加它的请求。
  • 保存的数据和 AI。 当应用保存记录或把文本发送给 AI 服务时,人们输入的内容会被声明为用户内容。一条备注会提醒所有者,如果人们输入姓名、电话号码、地址或消息,也要一并声明。
  • 照片和视频。 当应用有用于图片或视频的文件输入,或使用相机时。
  • 位置。 当应用向手机询问它在哪里时。
  • 购买。 当应用通过 Stripe 收款,或在原生方式下销售应用内购买时。
  • 广告(仅原生方式)。 广告 ID、大致位置和广告互动会被声明为已共享,并且在 App Store 表单上,跟踪的回答是 Yes。一条备注会提醒你把这些行与 Google AdMob 自己的清单进行对照。
  • 已发布的网站(仅简单方式)。 页面浏览量、随机访客 ID 和崩溃日志。一条备注说明,如果连接了 Google Analytics,它会收集更多内容。

应用内属于 Setherion 自己的文件不会计入,所以它们不会被当作应用自己的行为。

不收集任何数据的原生应用,在每份表单的第一个问题上得到 No,并且没有数据类型。简单方式的应用始终会有上面的网站条目。

错误

状态码何时出现
400缺少 way,或者它不是 easy 或 native。
401密钥缺失、错误或已被撤销。
404没有这个应用,或者你的密钥无法打开它。
409应用还没有代码。请先在 Setherion 中构建它。
确切的语句
状态码error
400way is "easy" or "native".
404No such app on this account.
409This app has no code yet. Build it in Setherion first.

这个页面对你有帮助吗?

加入社区

提问、交流想法,看看别人在构建什么。