Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* begin transition from harvest api v1 to v2 * update authentication method required for new v2 of the api * add additional required config variables for tap usage * update access_token request to comply with v2 of api * update schemas to reflect data returned from the v2 api * add additional schemas to reflect additional data points available @see https://help.getharvest.com/api-v2/ @see #9 * generify `sync_endpoint` so that it is the only method that loads data and loops through data, thus removing redundancies * allow each parent object loaded from the `sync_endpoint` to recursively sync additional endpoints (related to the parent object) through a `for_each_handler` * remove api requests from the individual `sync_$item` methods, instead prefer using the generic `sync_endpoint` method * store the id of nested objects instead of the full nested object * automatically paginate all "collection" results (all calls to the `sync_endpoint` method) * allow alternative key_properties, updated documentation, minor fixes * allow key_properties to be set to anything other than just `["id"]` for use with pivot table style data * update config.json and state.json documentation in README.md * add additional schemas and subsequent loading-code that was missed in the first pass * additional minor fixes such as * incorrect schema attribute names * missing attributes * incorrect schema attribute type/formats * minor formatting tweaks * skip syncing any endpoints that are not enabled by the given user's company, otherwise the user receives a 403 response error * load company metadata from harvest api * ensure specific features are either enabled or disabled before beginning endpoint syncs * update module to v2.0.0, minor tweaks * define default key_properties directly in `load_and_write_schema` method signature * update version * fix other minor inconsistencies * determine account_id automatically as opposed to requiring account_id from user config
- Loading branch information