docs for setHTML

This commit is contained in:
John McLear 2013-02-12 23:44:09 +00:00
parent e152c477c7
commit 9e1dfc9487
1 changed files with 10 additions and 0 deletions

View File

@ -283,6 +283,16 @@ sets the text of a pad
* `{code: 1, message:"padID does not exist", data: null}`
* `{code: 1, message:"text too long", data: null}`
#### setHTML(padID, html)
* API >= 1
sets the text of a pad based on HTML, HTML must be well formed. Malformed HTML will send a warning to the API log
*Example returns:*
* `{code: 0, message:"ok", data: null}`
* `{code: 1, message:"padID does not exist", data: null}`
#### getHTML(padID, [rev])
* API >= 1