Skip to content

Instantly share code, notes, and snippets.

@Kieranties
Created March 13, 2012 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kieranties/2028241 to your computer and use it in GitHub Desktop.
Save Kieranties/2028241 to your computer and use it in GitHub Desktop.
Using PostLib
var sites = Retriever.GetSites(new UserOptions{ Email = "email", Password = "password" });
if (sites != null)
{
var primarySite = sites.Single(s => s.IsPrimary);
//get posts
var posts = Retriever.GetPosts(new PostOptions{SiteId = primarySite.Id, MaxPosts = 50});
//get tags
var tags = Retriever.GetTags(new TagOptions { SiteId = primarySite.Id });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment