refactored API::Call .call_api to be a class method