getPosts(function(err,posts){}) array of posts