APIManager manages all calls to api