BlogPosts In-Process API Service

Developer Space

Developer Space
Want to extend the Telligent Evolution platform? Collaborate with other developers and product experts here.

Telligent Evolution 7.0 - 7.1 Developer Documentation

7.x developer documentation

BlogPosts In-Process API Service

Telligent Evolution 7.0 - 7.1 Developer Documentation


Telligent.Evolution.Extensibility.Api.Version1.PublicApi.BlogPosts is defined in Telligent.Evolution.Api.dll

Events

Events.AfterCreate

Handler

void BlogPostAfterCreateEventHandler(BlogPostAfterCreateEventArgs e);

Events.AfterDelete

Handler

void BlogPostAfterDeleteEventHandler(BlogPostAfterDeleteEventArgs e);

Events.AfterUpdate

Handler

void BlogPostAfterUpdateEventHandler(BlogPostAfterUpdateEventArgs e);

Events.BeforeCreate

Handler

void BlogPostBeforeCreateEventHandler(BlogPostBeforeCreateEventArgs e);

Events.BeforeDelete

Handler

void BlogPostBeforeDeleteEventHandler(BlogPostBeforeDeleteEventArgs e);

Events.BeforeUpdate

Handler

void BlogPostBeforeUpdateEventHandler(BlogPostBeforeUpdateEventArgs e);

Events.Render

Handler

void BlogPostRenderEventHandler(BlogPostRenderEventArgs e);

Properties

NameTypeDescriptionDefaultOptions
ContentTypeIdGuid

Methods

BlogPost Create(int blogId, string title, string body, BlogPostsCreateOptions options = null);

Parameters

NameTypeDescriptionRequiredDefaultOptions
blogIdintBlog IdRequired
titlestringTitleRequired
bodystringBodyRequired
optionsBlogPostsCreateOptionsOptionsOptional

Return Type

BlogPost

AdditionalInfo Delete(int id);

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired

Return Type

AdditionalInfo

BlogPost Get(BlogPostsGetOptions options);

Parameters

NameTypeDescriptionRequiredDefaultOptions
optionsBlogPostsGetOptionsOptionsRequired

Return Type

BlogPost

BlogPost Get(Guid contentId);

Parameters

NameTypeDescriptionRequiredDefaultOptions
contentIdGuidContent IdRequired

Return Type

BlogPost

PagedList<BlogPost> List(BlogPostsListOptions options);

Parameters

NameTypeDescriptionRequiredDefaultOptions
optionsBlogPostsListOptionsOptionsRequired

Return Type

PagedList<BlogPost>

BlogPost Update(int id, BlogPostsUpdateOptions options);

Parameters

NameTypeDescriptionRequiredDefaultOptions
idintIdRequired
optionsBlogPostsUpdateOptionsOptionsRequired

Return Type

BlogPost


Comments
  • I wish you could make an example for this BlogPost object; how to instantiate it, how to connect it to the Telligent local website and how to get list of blogs for a specific author ordered by date?

  • This class is static and can be accessed via Telligent.Evolution.Extensibility.Api.Version1.PublicApi.BlogPosts by adding a reference to the Telligent.Evolution.Api.DLL assembly.

    The assembly is part of the local web site, there is not need to attach it.  

    To get a list of blog posts by author, use the List method and specify AuthorId to be the ID of the user who authored the post and set SortBy to "MostRecent" and SortOrder to "Descending".

  • Perfect. Thank you. I decided to use the REST API since our project is set to use .Net 3.5.