use faraday
Implement Document API with paging