Looker offers a solution to export your Looks through different Deliveries such as email, SFTP or a webhook. Those Deliveries can be either "One-shot" or "Recurring". Let's see how to use it to synchronize your Looker data with Pigment.
To configure it, you will need to:
- Create an Import Pipeline in Pigment
- Get an authentication Pigment Api Key
- Create a Webhook Delivery in Looker
Create an import Pipeline
Download as CSV the Look you wish to export to Pigment. Then follow the How to generate an import pipeline ID in Pigment documentation. At the end of that step, you should have your Import Pipeline ID.
Get a Pigment API key
The Pigment Api Key is used to authenticate Looker to Pigment.
Contact Pigment support to request it Pigment API Key.
Create a Webhook Delivery in Looker
By creating a Webhook Delivery, Looker will push the data of your Look directly into Pigment.
Here are the steps you should follow:
- Create a delivery
- Select the webhook in "Where your data should go"
- Input the following webhook URL
https://pigment.app/api/importservice/Csv/LookerApiPush/{pipeline-Id}?api_key={API-key}
; don't forget to replace thepipeline-ID
andAPI-key
with the one you got from the two previous steps - Select CSV in “Format data”
Please refer to Looker Documentation for more details.
Looker offers you a large range of scheduling options to trigger this Delivery on daily, weekly or monthly basis.
Note
Once you have set up a recurring delivery of your Look, Looker displays that schedule on the Schedules page. This option is only visible if your Looker admin has given you permission to schedule dashboards and Looks. For more information please consult Looker Documentation.
Once configuration is done, check that the integration is working correctly and importing successful on the Pigment side using the update history panel. Check the standard API documentation for more details.