リストをほかのアプリで使う

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. トリガーにGoogle Sheets → New Spreadsheet Rowを指定して、Zapを作ります。
  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 にあります。

わかりにくい点や古い情報はありませんか? お知らせください。ページを修正します。