Create your tap's config.json
file. The api_key
is available in the twilio Console UI (see Authentication above). The date_window_days
is the integer number of days (between the from and to dates) for date-windowing through the date-filtered endpoints (default = 30). The start_date
is the absolute beginning date from which incremental loading on the initial load will start.
{
"account_sid": "YOUR_ACCOUNT_SID",
"auth_token": "YOUR_AUTH_TOKEN",
"start_date": "2019-01-01T00:00:00Z",
"user_agent": "tap-twilio <api_user_email@your_company.com>",
}
Optionally, also create a state.json
file. currently_syncing
is an optional attribute used for identifying the last object to be synced in case the job is interrupted mid-stream. The next run would begin where the last job left off.
{
"currently_syncing": "registers",
"bookmarks": {
"acounts": "2020-03-23T10:31:14.000000Z",
"...": "2020-03-23T00:00:00.000000Z"
}
}