HTMLpad
v1.0.0Publish HTML pages and get a shareable link.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
publish_html Publish HTML
Publish an HTML page on HTMLpad and get a public link to share. Returns the link, a private edit link and an edit token. Free pads stay online for 90 days. Pages may not contain password or payment card fields.
| Parameter | Type | Description |
|---|---|---|
html * | string | A complete HTML document or fragment, up to 512 KB. |
address | string | Optional address for the page, as in htmlpad.org/<address>/. Letters, numbers, dots, dashes or underscores, up to 64. |
update_pad Update a pad
Replace the HTML of a pad you published, using the edit token returned by publish_html. Saving also resets its 90 days.
| Parameter | Type | Description |
|---|---|---|
address * | string | The pad address, as in htmlpad.org/<address>/. |
edit_token * | string | The edit token returned when the pad was published. |
html * | string | The new HTML, up to 512 KB. |
get_pad Read a pad
Get the HTML of a public pad on HTMLpad.
| Parameter | Type | Description |
|---|---|---|
address * | string | The pad address, as in htmlpad.org/<address>/. |