Glanote

وثائق واجهة البرمجة

يمكنك النشر والتحرير عبر HTTP. في ما يلي أمثلة قصيرة. استبدل example.com بموقعك.

REST

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

تتضمن الاستجابة url و edit_url و edit_key. عدّل بـ PUT /api/articles/:slug واحذف بـ DELETE. كلاهما يحتاج إلى 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

مجموعة جزئية متوافقة مع Telegraph

وجّه السكربتات الحالية إلى /telegraph. المدعوم: createAccount وcreatePage وeditPage وgetPage وgetPageList وgetAccountInfo. هذه ليست نسخة كاملة من api.telegra.ph.

بوت تيليجرام

أرسل عنواناً ثم سطراً فيه --- ثم المتن. يمكن نشر الصور إن كان رفع الصور مفعّلاً.

إضافة المتصفح

حمّل مجلد extension/ غير المعبأ في Chrome أو Edge واضبط عنوان موقعك.