Forum Discussion

duannguyen's avatar
13 years ago

How to retrieve top 5 recent posts from blog or posts from community using CSharp and ASP.NET?

Hi!

 

I'm trying to develop a webpage that displays on the landing page the top 5 recent blog posts and posts from the community but I don' t know how to do that in ASP.NET using CSharp. Can someone please help me?

 

Thank you!

  • I figured it out, in case someone here needs help.

     

    First, make the REst API call to (and this was my stumbling block at first: was where is the URL): http://[chang-this-to-your-community.com]/restapi/vc/blogs/id/t_blog/threads/recent?page_size=5

     

    Then I take the XML result and use XSLT to transform and display my data.

  • I figured it out, in case someone here needs help.

     

    First, make the REst API call to (and this was my stumbling block at first: was where is the URL): http://[chang-this-to-your-community.com]/restapi/vc/blogs/id/t_blog/threads/recent?page_size=5

     

    Then I take the XML result and use XSLT to transform and display my data.

    • JulieH's avatar
      JulieH
      Lithium Alumni (Retired)

      Hi duannguyen,

       

      Thanks for returning to share your findings with the community!