get_user_topic
Function
Function Name | Description | Level |
get_user_topic | Returns a list of topics (max 50) the user has previously created. Sorted by last reply time | 3 |
Input Parameters:
Name | Type | Required? | Description | Level |
user_name | byte[] | yes | the user whose topics need to be returned. Can be either the request user himself, or someone else. | 3 |
user_id | String | yes | If the user_name is null in the first parameter, app can pass in user_id in second parameter to request the same information | 4 |
Output Parameters:
Name | Type | Required? | Description | Level |
| Array of Hash table | | | 3 |
forum_id | String | yes | | 3 |
forum_name | byte[] | yes | | 3 |
topic_id | String | yes | | 3 |
topic_title | byte[] | yes | Remove all BBCode in title | 3 |
last_reply_author_name | byte[] | yes | return display name if it has | 3 |
last_reply_author_id | String | yes | | 4 |
icon_url | String | | Return the last post author avatar URL | 3 |
last_reply_time | Date | yes | dateTime.iso8601 format. If this topic has no reply, use the topic creation time. | 3 |
timestamp | String | yes | Timestamp of topic last reply | |
reply_number | Int | | total number of reply in this topic. If this is no reply in this return, return 0. | 3 |
new_post | Boolean | yes | return true if this topic contains new post since user last login | 3 |
view_number | Int | yes | total number of view in this topic | 3 |
short_content | byte[] | | Characters display rules (should follow this sequence):
1) Remove all BBCode except [ur], [img].
2) Convert "[url http://...]http://…..[/url]" to "[url]".
3) Convert "[img]http://…..[/img]" to "[img]".
4) Remove "Last edited by..." tag at the end.
5) Remove all non-displayable characters (e.g. \n, \t, etc).
6) Remove all whitespace, /n and /r at the begining and ending of the content.
7) return only first 200 characters | 3 |