Livejournal RePost

Mar 7, 2011 at 9:42 PM

How I can to do RePost by this api?

Mar 30, 2011 at 10:33 AM

RePost is just a Post with link on another Post. So, lets say u got sLink - a link on source Post. First, we extract a text, adding link on source and then we make another post, which could be named RePost:

<small>Copy Source | Copy HTML</small>
  1. BlogPost bp = BlogsAPI.Common.GetPostByRSS(sLink);
  2. if(bp!=null)
  3. {
  4.     bp.Body += String.Format("<br/><a href='{0}'>Source</a>", sLink);
  5. }
  6. Livejournal lj = new Livejournal();
  7. lj.MakePost(new UserAccaunt("login", "pass"), bp);