Created
March 13, 2012 11:31
-
-
Save Kieranties/2028241 to your computer and use it in GitHub Desktop.
Using PostLib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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