Skip to main content

Harvest

This page contains the setup guide and reference information for the Harvest source connector.

Prerequisites

To set up the Harvest source connector, you'll need the Harvest Account ID and API key.

Setup guide

For Airbyte Cloud:

  1. Log into your Airbyte Cloud.
  2. Click Sources and then click + New source.
  3. On the Set up the source page, select Harvest from the Source type dropdown.
  4. Enter the name for the Harvest connector.
  5. Enter your Harvest Account ID.
  6. For Start Date, enter the date in YYYY-MM-DDTHH:mm:ssZ format. The data added on and after this date will be replicated.
  7. For Authentication mechanism, select Authenticate via Harvest (OAuth) from the dropdown and click Authenticate your Harvest account. Log in and authorize your Harvest account.
  8. Click Set up source.

For Airbyte Open Source:

  1. Navigate to the Airbyte Open Source dashboard.
  2. Click Sources and then click + New source.
  3. On the Set up the source page, select Harvest from the Source type dropdown.
  4. Enter the name for the Harvest connector.
  5. Enter your Harvest Account ID.
  6. For Start Date, enter the date in YYYY-MM-DDTHH:mm:ssZ format. The data added on and after this date will be replicated.
  7. For Authentication mechanism, select Authenticate with Personal Access Token from the dropdown. Enter your Personal Access Token.
  8. Click Set up source.

Supported sync modes

The Harvest source connector supports the following sync modes:

Supported Streams

Performance considerations

The connector is restricted by the Harvest rate limits.

Build instructions

Build your own connector image

This connector is built using our dynamic built process. The base image used to build it is defined within the metadata.yaml file under the connectorBuildOptions. The build logic is defined using Dagger here. It does not rely on a Dockerfile.

If you would like to patch our connector and build your own a simple approach would be:

  1. Create your own Dockerfile based on the latest version of the connector image.
FROM airbyte/source-harvest:latest

COPY . ./airbyte/integration_code
RUN pip install ./airbyte/integration_code

# The entrypoint and default env vars are already set in the base image
# ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
# ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

Please use this as an example. This is not optimized.

  1. Build your image:
docker build -t airbyte/source-harvest:dev .
# Running the spec command against your patched connector
docker run airbyte/source-harvest:dev spec

Customizing our build process

When contributing on our connector you might need to customize the build process to add a system dependency or set an env var. You can customize our build process by adding a build_customization.py module to your connector. This module should contain a pre_connector_install and post_connector_install async function that will mutate the base image and the connector container respectively. It will be imported at runtime by our build process and the functions will be called if they exist.

Here is an example of a build_customization.py module:

from __future__ import annotations

from typing import TYPE_CHECKING

if TYPE_CHECKING:
# Feel free to check the dagger documentation for more information on the Container object and its methods.
# https://dagger-io.readthedocs.io/en/sdk-python-v0.6.4/
from dagger import Container


async def pre_connector_install(base_image_container: Container) -> Container:
return await base_image_container.with_env_variable("MY_PRE_BUILD_ENV_VAR", "my_pre_build_env_var_value")

async def post_connector_install(connector_container: Container) -> Container:
return await connector_container.with_env_variable("MY_POST_BUILD_ENV_VAR", "my_post_build_env_var_value")

Changelog

VersionDatePull RequestSubject
0.1.202023-10-1331377Use our base image and remove Dockerfile
0.1.192023-07-2628755Changed parameters for Time Reports to use 365 days as opposed to 1 year
0.1.182023-05-2926714Remove authSpecification from spec in favour of advancedAuth
0.1.172023-03-0322983Specified date formatting in specification
0.1.162023-02-0722417Turn on default HttpAvailabilityStrategy
0.1.152023-01-2722008Set AvailabilityStrategy for streams explicitly to None
0.1.142023-01-0921151Skip 403 FORBIDDEN for all stream
0.1.132022-12-2220810Skip 403 FORBIDDEN for EstimateItemCategories stream
0.1.122022-12-1620572Introduce replication end date
0.1.112022-09-2817326Migrate to per-stream states.
0.1.102022-08-0815221Added parent_id for all streams which have parent stream
0.1.92022-08-0415312Fix started_time and ended_time format schema error and updated report slicing
0.1.82021-12-148429Update titles and descriptions
0.1.62021-11-147952Implement OAuth 2.0 support
0.1.52021-09-285747Update schema date-time fields
0.1.42021-06-225701Harvest normalization failure: fixing the schemas
0.1.32021-06-224274Fix wrong data type on statement_key in clients stream
0.1.22021-06-074222Correct specification parameter name
0.1.12021-06-093973Add AIRBYTE_ENTRYPOINT for Kubernetes support
0.1.02021-06-073709Release Harvest connector!