Create getposts
Merge pull request #13 from KaanH/patch-5

Create getposts