You are here: Ektron Namespace > Web Services API > Ektron.Services Namespace > Classes > Blog Class
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Blog Class

This section describes the Web Service methods used with blogs. The Blog Web service is a wrapper for the blog API: Ektron.Cms.API.Content.Blogs. These methods can be accessed through the blog.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Content/Blog.asmx

Web Services examples involving blogs are available in the Developer sample site. You can download this site from: 

http://www.ektron.com/cms400-web-cms.aspx?id=5278 

Once the developer site is installed, example code files are located in your site root. For example:

C:\Inetpub\wwwroot\CMS400Developer\Developer\dotNetAssemblies\WebServicesAPI\ContentAPI\Blog.

 

IMPORTANT: If you are accessing these Web Services remotely, you will need to set the authentication header. For example:

blogApi.AuthenticationHeaderValue = New localhost.AuthenticationHeader()
blogApi.AuthenticationHeaderValue.Username = "admin"
blogApi.AuthenticationHeaderValue.Password = "admin"
blogApi.AuthenticationHeaderValue.Domain = "Domain" '''Only needed if AD/LDAP is being used
C#
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
public class Blog : EktronBaseService;
Visual Basic
<WebService(Namespace = "http://tempuri.org/")>
<WebServiceBinding(ConformsTo = WsiProfiles.None)>
Public Class Blog
Inherits EktronBaseService

Blog.cs

Name 
Description 
The methods of the Blog class are listed here. 
 
Name 
Description 
 
Adds a blog to the ParentFolderID. Accepts standard blog properties. Returns the ID of the newly created blog.
This method can be accessed through the blog.asmx file located in:  
 
Adds a post comment to a blog post. Accepts a BlogComment class as the input. Will return the result of that add action. False indicates the action was successful.
This method can be accessed through the blog.asmx file located in:  
 
Adds a post to a given blog. Accepts a ContentData class as the post content. Return new post ID.
This method can be accessed through the blog.asmx file located in:  
 
Deletes a blog with a given ID. This will delete the blog as well as all posts and comments for the blog. BlogID must be greater than 0.
This method can be accessed through the blog.asmx file located in:  
 
Deletes the blog post comment by it's id.
This method can be accessed through the blog.asmx file located in:  
 
Deletes a post by the post's ID This method will delete all comments associated with the post as well. Returns boolean value.
This method can be accessed through the blog.asmx file located in:  
 
Returns a blank BlogPostData class. Used Primarily in the Workarea.
This method can be accessed through the blog.asmx file located in:  
 
This is the overview for the GetBlog method overload. 
 
This is the overview for the GetBlogData method overload. 
 
Returns the blog information for a blog post. This contains information about categories, whether comments are enabled, etc. Accepts the post ID.
This method can be accessed through the blog.asmx file located in:  
 
Gets the Post data for a specific blog post. Accepts the ID of the post. Will return tags, trackback, pingback, and categories for the post.
This method can be accessed through the blog.asmx file located in:  
 
This is the overview for the GetBlogRoll method overload. 
 
Gets a blog post for a given ID. Will also return the post information separately (ByRef) in a BlogPostData class. Returns ContentData Class.
This method can be accessed through the blog.asmx file located in:  
 
Gets a blog post for a given ID. Includes trackback, pinback, comments, and other information. Returns BlogPostData Class.
This method can be accessed through the blog.asmx file located in:  
 
Gets a blog based on a user's ID.
This method can be accessed through the blog.asmx file located in:  
 
This method updates the blog data.
This method can be accessed through the blog.asmx file located in:  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!