Initial api client for get endpoint.

Updated and rebased.