Getting and posting posts from the server