def METHOD_NAME(name, from_date, url, enqueue, signals, size, max_results,
            verbose):
    """Harvest api."""
    if name:
        click.secho(f'Harvest api: {name}', fg='green')
    elif url:
        click.secho(f'Harvest api: {url}', fg='green')
    if enqueue:
        harvest_records.delay(url=url, name=name, from_date=from_date,
                              signals=signals, size=size,
                              max_results=max_results, verbose=verbose)
    else:
        harvest_records(url=url, name=name, from_date=from_date,
                        signals=signals, size=size, max_results=max_results,
                        verbose=verbose)