<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_replication_command_history(self, schedule_id, limit=20, offset=0, view=None):
 """ Retrieve a list of commands for a replication schedule. @param schedule_id: The id of the replication schedule. @param limit: Maximum number of commands to retrieve. @param offset: Index of first command to retrieve. @param view: View to materialize. Valid values are 'full', 'summary', 'export', 'export_redacted'. @return: List of commands executed for a replication schedule. @since: API v4 """

    params = {
      'limit':  limit,
      'offset': offset,
    }
    if view:
      params['view'] = view

    return self._get("replications/%s/history" % schedule_id,
                     ApiReplicationCommand, True, params=params, api_version=4)