get_raw_post
Function
Function Name | Description | Level |
get_raw_post | This function allows app to retrive original content to display to user for post editing purpose. | 3 |
Input Parameters:
Name | Type | Required? | Description | Level |
post_id | String | yes | | 3 |
Output Parameters:
Name | Type | Required? | Description | Level |
post_id | String | yes | | 3 |
post_title | byte[] | yes | Depends on the language or forum systems, the new title is generated with "Re: " or no title at all. | 3 |
post_content | byte[] | yes | display full post content without removing any styles or characters. omitting the attachment information. | 3 |
show_reason | Boolean | | Indicate if the user can add edit reason | |
edit_reason | byte[] | | Reason of last edit. | |
group_id | String | | Attachment group id, used when editing post attachment. | |
attachments | Array of Hash table | | Returns a list of attachments user has uploaded within this post.
It will only be returned if get_config returned flag 'advanced_edit'
in array of hash format. | |
attachment_id | String | yes | attachment id | |
filename | byte[] | yes | Attachment file name | |
content_type | String | yes | return "image", "pdf" or "other" | |
url | String | yes | URL of the attachment source. | |
thumbnail_url | String | | if content type = "image" | |
filesize | Int | | file size as byte | |