在其他应用里用你的列表

Let Zapier, Make or your own script add items to a list, with an API key limited to your site. Page Lemon stays the one place your list lives.

最后更新: · 查看 Markdown 版

本页内容

对 AI 这样说

复制到 AI 对话里

怎么用 Zapier 把 Google 表格里的新行加到我的活动列表里?

Your AI explains the steps. Making the key is done by you in the app.

先准备好这些

  • 网站保存在你的 Page Lemon 账号下,列表也已建好。
  • An API key for that one site that can change its lists.
  • An account with the tool you connect, such as Zapier or Make.

It's one-way: what you type into your sheet comes to Page Lemon only when the tool you connect sends it.

Zapier:把表格的一行加进列表

  1. 创建一个 Zap,触发条件选 Google Sheets → New Spreadsheet Row。
  2. 添加动作 Webhooks by Zapier → Custom Request。
  3. Method:POST。URL:https://api.pagelemon.com/v2/sites/your-site/lists/events/items,填上你的网站名称和列表名称。
  4. Data:{"values": {"name": "…", "date": "…"}},把省略号换成表格的各列(Name、Date)。冒号前的每个名称,对应你列表里的一列。
  5. Headers: Authorization with the value Bearer followed by your key, and Content-Type with application/json.
  6. Test it: the item appears in your list, and on your site if a page shows the list.

Make

Use the HTTP → Make a request module: the same URL, method POST, a header Authorization: Bearer <your key>, body type Raw, content type JSON, and the same body as above.

开发者

bash
curl -X POST https://api.pagelemon.com/v2/sites/maison-cafe/lists/menu/items \
  -H "Authorization: Bearer plak_..." \
  -H "Content-Type: application/json" \
  -d '{"values": {"name": "Leek and potato soup", "price": 6.5}}'

Reading works the same with GET on /v2/sites/<site>/lists/<list>/items, and items:batch-create adds up to 100 at once. The full list of addresses is in the REST API reference and the guide for AIs.

安全放心

  • Treat the key like a password: never put it in your site's files, a chat or a shared document.
  • Give each tool its own key, limited to the one site, so you can revoke them one at a time.

须知

  • 你连接的工具不归 Page Lemon 运营。用哪个由你选,各自的条款和隐私政策适用。详见隐私与你的数据。

列表的更多内容,请看列表。有哪里不对?请看解决问题。

给 AI 助手:设置指南见 pagelemon.com/agents/lists。

有不清楚或过时的地方?告诉我们,我们来改。