Fix indent
Refactor client to make an http request