Made "params" argument to API calls default to empty dict