Documentación de la API
Puedes publicar y editar por HTTP. Aquí van ejemplos breves. Cambia example.com por tu sitio.
REST
curl -X POST https://example.com/api/articles \
-H 'content-type: application/json' \
-d '{"title":"Hello","content":"Markdown here"}'La respuesta incluye url, edit_url y edit_key. Edita con PUT /api/articles/:slug y borra con DELETE. Ambos necesitan 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
Subconjunto compatible con Telegraph
Apunta tus scripts a /telegraph. Compatible: createAccount, createPage, editPage, getPage, getPageList, getAccountInfo. No es una copia completa de api.telegra.ph.
Bot de Telegram
Envía un título, una línea con --- y el cuerpo. Las fotos se pueden publicar si las subidas están activadas.
Extensión del navegador
Carga la carpeta extension/ sin empaquetar en Chrome o Edge y pon la URL de tu sitio.