Skip to content

CommunityServer 2008.5 Blogs API reference

Returns a paged list of all blogs visible to the current user.

Status: 200 OK
<bloglist>
<blog>...</blog>
...
</bloglist>

| PageSize | Integer | Number of blogs per page | Optional | | PageIndex | Integer | Page number | Optional |

Returns data about a specific blog.

Status: 200 OK
<blog>...</blog>

Returns data about a specific blog.

Status: 200 OK
<blog>...</blog>

Returns a paged list of blogs matching the query parameter(s) visible to the current user.

Status: 200 OK
<bloglist>
<blog>...</blog>
...
</bloglist>

| Name | String | Name or part of the name of the blog. Wildcard character is “%”. | Optional | | IsActive | Boolean | Whether the blog is active | Optional | | AccessLevel | Enum | “View”, “Post” | Optional | | Ids | Integer[] | Comma-separated list of blog IDs. | Optional | | Keys | String[] | Comma-separated list of blog keys. | Optional | | GroupIDs | Integer[] | Comma-separated list of blog group IDs | Optional | | SortBy | String | Can be set to “Name”, “LastPost”, “Post”, “SortOrder” or “Thread” | Optional | | Order | String | The sort order for the “SortBy” parameter. Can be set to “Ascending” or “Descending”. | Optional | | PageSize | Integer | Number of blogs per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/blogs/{blogId}/members

Section titled “GET /api/blogs.ashx/blogs/{blogId}/members”

Returns a list of members of the specified blog.

Status: 200 OK
<membershiplist>
<member>...</member>
...
</membershiplist>

GET /api/blogs.ashx/blogs/{blogId}/members/{userId}

Section titled “GET /api/blogs.ashx/blogs/{blogId}/members/{userId}”

Returns the specified member of the specified blog.

Status: 200 OK
<member>...</member>

Returns a paged list of posts in the specified blog.

Status: 200 OK
<blogpostlist>
<blogpost>...</blogpost>
...
</blogpostlist>

| PageSize | Integer | Number of posts per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}”

Returns the specified post in the specified blog.

Status: 200 OK
<blogpost>...</blogpost>

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/comments

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/comments”

Returns a paged list of comments for the specified post in the specified blog.

Status: 200 OK
<commentlist>
<comment>...</comment>
...
</commentlist>

| PageSize | Integer | Number of comments per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/comments/{blogPostCommentId}

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/comments/{blogPostCommentId}”

Returns the specified comment for the specified post in the specified blog.

Status: 200 OK
<comment>...</comment>

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/trackbacks

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/trackbacks”

Returns a paged list of trackbacks for the specified post in the specified blog.

Status: 200 OK
<trackbacklist>
<trackback>...</trackback>
...
</trackbacklist>

| PageSize | Integer | Number of trackbacks per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/trackbacks/{trackbackId}

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/trackbacks/{trackbackId}”

Returns the specified trackback for the specified post in the specified blog.

Status: 200 OK
<trackback>...</trackback>

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/ratings

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/ratings”

Returns a list of ratings for the specified post in the specified blog.

Status: 200 OK
<ratinglist sum="X" average="Y">
<rating>...</rating>
...
</ratinglist>

GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/ratings/{username}

Section titled “GET /api/blogs.ashx/blogs/{blogId}/posts/{blogPostId}/ratings/{username}”

Returns rating by user with {username} for the specified post in the specified blog.

If the user doesn’t exist or didn’t rate the post, the whole list of ratings for the specified post is returned!

Status: 200 OK
<int>
X
</int>

Returns the specified post.

Status: 200 OK
<blogpost>...</blogpost>

Returns a paged list of posts matching the query parameter(s) visible to the current user.

Status: 200 OK
<blogpostlist>
<blogpost>...</blogpost>
...
</blogpostlist>

| IsActive | Boolean | Whether the post is active | Optional | | BlogIds | Integer[] | Comma-separated list of blog IDs. | Optional | | Keywords | String[] | Comma-separated list of keywords. All keywords must be matched. | Optional | | SortBy | String | Can be set to “MostComments”, “MostRecent” or “MostViewed” | Optional | | Order | String | The sort order for the “SortBy” parameter. Can be set to “Ascending” or “Descending”. | Optional | | PageSize | Integer | Number of posts per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/posts/{blogPostId}/comments

Section titled “GET /api/blogs.ashx/posts/{blogPostId}/comments”

Returns a paged list of comments for the specified post.

Status: 200 OK
<commentlist>
<comment>...</comment>
...
</commentlist>

| PageSize | Integer | Number of comments per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/posts/{blogPostId}/trackbacks

Section titled “GET /api/blogs.ashx/posts/{blogPostId}/trackbacks”

Returns a paged list of trackbacks for the specified post.

Status: 200 OK
<trackbacklist>
<trackback>...</trackback>
...
</trackbacklist>

| PageSize | Integer | Number of trackbacks per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/comments/{blogPostCommentId}

Section titled “GET /api/blogs.ashx/comments/{blogPostCommentId}”

Returns the specified comment.

Status: 200 OK
<comment>...</comment>

PUT /api/blogs.ashx/comments/

Creates the sent comment.

<comment>...</comment>

GET /api/blogs.ashx/comments/{blogPostCommentQuery}

Section titled “GET /api/blogs.ashx/comments/{blogPostCommentQuery}”

Returns a paged list of comments matching the query parameter(s) visible to the current user.

Status: 200 OK
<commentlist>
<comment>...</comment>
...
</commentlist>

| IsActive | Boolean | Whether the comment is active | Optional | | PostId | Integer | ID of a blog post. If specified, only comments for that post are shown. | Optional | | Keywords | String[] | Comma-separated list of keywords. All keywords must be matched. | Optional | | PageSize | Integer | Number of comments per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/trackbacks/{trackbackId}

Section titled “GET /api/blogs.ashx/trackbacks/{trackbackId}”

Returns the specified trackback.

Status: 200 OK
<trackback>...</trackback>

GET /api/blogs.ashx/trackbacks/{trackbackQuery}

Section titled “GET /api/blogs.ashx/trackbacks/{trackbackQuery}”

Returns a paged list of trackbacks matching the query parameter(s) visible to the current user.

Status: 200 OK
<trackbacklist>
<trackback>...</trackback>
...
</trackbacklist>

| PostId | Integer | ID of a blog post. If specified, only trackbacks for that post are shown. | Optional | | Keywords | String[] | Comma-separated list of keywords. All keywords must be matched. | Optional | | PageSize | Integer | Number of trackbacks per page | Optional | | PageIndex | Integer | Page number | Optional |

GET /api/blogs.ashx/bloggroups/

Returns a list of all blog groups visible to the current user.

Status: 200 OK
<bloggrouplist>
<bloggroup>...</bloggroup>
...
</bloggrouplist>

GET /api/blogs.ashx/bloggroups/{blogGroupId}

Returns data about the specified blog group.

Status: 200 OK
<bloggroup>...</bloggroup>