revenuecat
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRevenueCat
RevenueCat
Query RevenueCat metrics and search documentation.
查询RevenueCat指标并搜索文档。
Config
配置
Set environment variable, which should be a v2 secret API key.
RC_API_KEY设置环境变量,该变量应为v2版本的私密API密钥。
RC_API_KEYContext
上下文
Query the RevenueCat API () to get information about the project you have access to. Your RevenueCat API key allows access to a single project. Use the project ID in subsequent API calls.
GET /projects调用RevenueCat API()获取您有权访问的项目信息。您的RevenueCat API密钥仅能访问单个项目。在后续API调用中使用该项目ID。
GET /projectsAPI Access
API访问
bash
{baseDir}/scripts/rc-api.sh <endpoint>Example: to list projects.
{baseDir}/scripts/rc-api.sh /projectsbash
{baseDir}/scripts/rc-api.sh <endpoint>示例: 用于列出项目。
{baseDir}/scripts/rc-api.sh /projectsLocal API Reference
本地API参考
Start with for auth, pagination, and common patterns. Then load the domain file you need:
{baseDir}/references/api-v2.md| Domain | File | Covers |
|---|---|---|
| Customers | | CRUD, attributes, aliases, entitlements, subscriptions, purchases, invoices, virtual currencies, actions |
| Subscriptions | | List, get, transactions, cancel, refund, management URL |
| Products | | CRUD, create in store, test prices |
| Offerings | | Offerings, packages, package products |
| Entitlements | | CRUD, attach/detach products |
| Purchases | | List, get, refund, entitlements |
| Projects | | Projects, apps, API keys, StoreKit config |
| Metrics | | Overview metrics, charts, chart options |
| Paywalls | | Paywall creation |
| Integrations | | Integrations CRUD |
| Virtual Currencies | | Virtual currencies CRUD |
| Error Handling | | Error handling |
| Rate Limits | | Rate limits |
Only load the reference file relevant to the current task — don't load them all.
首先查看了解认证、分页和通用模式。然后加载您所需的领域文件:
{baseDir}/references/api-v2.md| 领域 | 文件路径 | 涵盖内容 |
|---|---|---|
| 客户 | | 增删改查(CRUD)、属性、别名、权益、订阅、购买、发票、虚拟货币、操作 |
| 订阅 | | 列表、详情、交易记录、取消、退款、管理URL |
| 产品 | | 增删改查(CRUD)、在商店创建、测试定价 |
| 产品套餐 | | 产品套餐、套餐包、套餐产品 |
| 权益 | | 增删改查(CRUD)、关联/解绑产品 |
| 购买记录 | | 列表、详情、退款、权益 |
| 项目 | | 项目、应用、API密钥、StoreKit配置 |
| 指标 | | 概览指标、图表、图表选项 |
| 付费墙 | | 付费墙创建 |
| 集成 | | 集成增删改查(CRUD) |
| 虚拟货币 | | 虚拟货币增删改查(CRUD) |
| 错误处理 | | 错误处理 |
| 速率限制 | | 速率限制 |
仅加载与当前任务相关的参考文件——无需全部加载。
Remote Documentation Search
远程文档搜索
The RevenueCat documentation is available at https://www.revenuecat.com/docs. Use https://www.revenuecat.com/docs/llms.txt and /sitemap.xml as a guide to the content that is available. Add .md to the end of a documentation URL to get the markdown version of the page.
RevenueCat文档可访问 https://www.revenuecat.com/docs。使用https://www.revenuecat.com/docs/llms.txt 和 /sitemap.xml 作为内容导航指引。在文档URL末尾添加.md即可获取该页面的Markdown版本。