Use rest-client lib to query API