grove.connectors.twilio package

Twilio connectors for Grove.

Submodules

grove.connectors.twilio.messages module

Twilio messages connector for Grove.

class grove.connectors.twilio.messages.Connector(config: ConnectorConfig, context: Dict[str, str])[source]

Bases: BaseConnector

LOG_ORDER = 'REVERSE_CHRONOLOGICAL'
NAME = 'twilio_messages'
POINTER_PATH = 'date_sent'
collect()[source]

Collects logs of all messages from the Twilio Messages API.

This will first check whether there are any pointers cached to indicate previous collections. If not, the 24-hours of data will be collected.

property secret

Fetches the API secret from the configuration.

This is required as this is a third authentication element required by Twilio when using API authentication.

Returns:

The value of the ‘secret’ field from the configuration.

grove.connectors.twilio.monitor_events module

Twilio monitor events connector for Grove.

class grove.connectors.twilio.monitor_events.Connector(config: ConnectorConfig, context: Dict[str, str])[source]

Bases: BaseConnector

LOG_ORDER = 'REVERSE_CHRONOLOGICAL'
NAME = 'twilio_monitor_events'
POINTER_PATH = 'event_date'
collect()[source]

Collects all events from the Twilio Monitor Event API.

This will first check whether there are any pointers cached to indicate previous collections. If not, the 7-days of data will be collected.

property secret

Fetches the API secret from the configuration.

This is required as this is a third authentication element required by Twilio when using API authentication.

Returns:

The value of the ‘secret’ field from the configuration.