Connecting to Greenhouse via SQL
You can use SQL to connect to Greenhouse in the Data Virtuality Studio or the Code Editor in the Web UI.
Pre-requisites
You need the endpoint and the ClientSecret for gaining access to the API.
How to Connect
Before you start retrieving data, you need to run the connector script for Greenhouse in the Data Virtuality Studio or the Web UI and input your credentials in the following line:
CALL SYSADMIN.createConnection(
name => 'greenhouse_src',
jbossCliTemplateName => 'ws',
connectionOrResourceAdapterProperties => 'EndPoint=https://harvest.greenhouse.io/v1, encryptedProperties => 'ClientSecret=<ClientSecret>'
);;
CALL SYSADMIN.createDatasource(
name => 'greenhouse_src',
translator => 'greenhouse'
);;
CREATE VIEW greenhouse.Credentials
AS
SELECT
'<label_1>' AS label,
'<EndPoint_1>' AS EndPoint,
'<ClientSecret_1>' AS ClientSecret
UNION ALL
SELECT
'<label_2>' AS label,
'<EndPoint_2>' AS EndPoint,
'<ClientSecret_2>' AS ClientSecret
;;
You may add additional sets using UNION ALL
- just make sure labels are unique.