Glanote

Dokumentasi API

Anda bisa menerbitkan dan menyunting lewat HTTP. Berikut contoh singkat. Ganti example.com dengan situs Anda.

REST

curl -X POST https://example.com/api/articles \
  -H 'content-type: application/json' \
  -d '{"title":"Hello","content":"Markdown here"}'

Respons berisi url, edit_url, dan edit_key. Sunting dengan PUT /api/articles/:slug dan hapus dengan DELETE. Keduanya memerlukan edit_key.

curl -X PUT https://example.com/api/articles/your-slug \
  -H 'content-type: application/json' \
  -d '{"edit_key":"YOUR_KEY","title":"Hello","content":"Updated text"}'

CLI

curl -X POST -d 'text=Hello' https://example.com/api/new
cat file.md | curl -F 'text=<-' https://example.com/api/new

?format=json

Subset kompatibel Telegraph

Arahkan skrip yang ada ke /telegraph. Didukung: createAccount, createPage, editPage, getPage, getPageList, getAccountInfo. Ini bukan salinan lengkap api.telegra.ph.

Bot Telegram

Kirim judul, satu baris ---, lalu isi. Foto bisa diterbitkan jika unggahan gambar diaktifkan.

Ekstensi peramban

Muat folder extension/ yang belum dikemas di Chrome atau Edge, lalu isi URL situs Anda.