Implemented client for REST API (pull messages)