Configuration
Here are the following keyword arguments that can be used for configuration:Example code
Trigger sync withsync_id.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Trigger syncs in Hightouch.
| Keyword argument | Description | Sample value |
|---|---|---|
api_key | Hightouch API key | abc123 |
sync_id.
from mage_ai.services.hightouch.hightouch import HightouchClient
client = HightouchClient(config=dict(api_key='api_key'))
syncs = client.list_syncs() # Get all the syncs
sync_id = syncs['data'][0]['id'] # Get sync id
client.sync_and_poll(sync_id) # Trigger sync and poll status
Polling Hightouch Sync [id]. Current status: querying. 0% completed.
Polling Hightouch Sync [id]. Current status: success. 100% completed.
Sync request status: success. Polling complete
Was this page helpful?