reply_post
Function
Function Name | Description | Level |
reply_post | reply to an existing topic | 3,4 |
Input Parameters:
Name | Type | Required? | Description | Level |
forum_id | String | yes | | 3 |
topic_id | String | yes | | 3 |
subject | byte[] | | | 3 |
text_body | byte[] | yes | | 3 |
attachment_id_array | Array of String | | List of attachment ID that come along with this topic creation. Please check upload. | |
group_id | String | | required when attachment_id_array is specified | |
return_html | Boolean | | Only support this parameter when get_config return flag no_refresh_on_post as 1 | 4 |
Output Parameters:
Name | Type | Required? | Description | Level |
result | Boolean | yes | return true if the action is executed successfully. | 3 |
result_text | byte[] | | | 3 |
post_id | String | yes | the newly generated post ID for this new topic. | 3 |
state | Int | | 1 = post is success but need moderation. Otherwise no need to return this key. If this is return. The app should not refresh the thread view as the post will not be appear, instead it should display an alert to user about this post is pending for moderation. | 3 |
post_content | byte[] | | Return the newly replied post content and all below keys 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 |
can_edit | Boolean | | return true if user can edit this post. | 4 |
can_delete | Boolean | | return true if user can delete this post. | 4 |
timestamp | String | | Timestamp of topic last reply | |
post_time | Date | | dateTime.iso8601 format. If this topic has no reply, use the topic creation time. | 4 |
attachments | Array of Hash table | | Returns a list of attachments user has uploaded within this post, in array of hash format. | 4 |
content_type | String | | return "image", "pdf" or "other" | 4 |
thumbnail_url | String | | if content type = "image"), use absolute path (optional: if not presented, use "url" to load thumbnail instead) | 4 |
url | String | | URL of the attachment source. | 4 |