previewPost
- Home
- Forums
- UgcForumPost
- previewPost
previewPost
Generates a parsed preview of a new post’s content.
Parameters
| Name | Description |
| node_id required | Node ID the post belongs to. |
| post_content required | Content (main body) of the forum post. |
| disable_html optional | Option to allow or remove inputted html. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/ugcForumPost?action=previewPost&node_id=188234&post_content=My [b]parsed[/b] post content to preview…&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 7 8 9 |
{ "service":"ugcForumPost", "action":"previewPost", "code":1, "message":"Preview successfully generated", "item":{ "content":"My <strong>parsed</strong> post content to preview..." } } |
Service Information
| Service | ugcForumPost |
| Method | previewPost |
| Type | REST |
| Response Types | JSON, XML |