# save_raw_post
# Function
Function Name | Description | Level |
---|---|---|
save_raw_post | This function allows app save post content to an existing post. Flag 'advanced_edit' will indicate if it support edit attachment. |
Input Parameters:
Name | Type | Required? | Description | Level |
---|---|---|---|---|
post_id | String | yes | 3 | |
post_title | byte[] | yes | 3 | |
post_content | byte[] | yes | 3 | |
return_html | Boolean | Only support this parameter when get_config return flag no_refresh_on_post as 1 | 4 | |
attachment_id_array | Array of String | List of attachment ID that come along with this topic creation. Please check interface upload.php Plugin will accept this parameter only when get_config return flag 'advanced_edit' | ||
group_id | String | required when attachment_id_array is specified. Plugin will accept this parameter only when get_config return flag 'advanced_edit' | ||
reason | byte[] | edit reason |
Output Parameters:
Name | Type | Required? | Description | Level |
---|---|---|---|---|
result | Boolean | yes | 3 | |
result_text | byte[] | 3 | ||
state | Int | 1 = post is saved successfully but need moderation. Otherwise no need to return this key. | 4 | |
post_content | byte[] | Return the newly saved post content back to the App if get_config return support no_refresh_on_post. Characters display rules (follow the sequence): 1) Remove all BBCode except [ur], [img], [quote]. 2) Remove all non-displayable characters (e.g. \n, \t, white-space, etc) at the beginning AND the end of the content (Trimming) 3) Replace [url] tags in nested [url][img][/img][/url] image link. | 4 |
← getrawpost reply_post →