Removed http request object from ApiRequest() function in CLI