archivebox.api.models
Module Contents
Classes
A secret key generated by a User that’s used to authenticate REST API requests to ArchiveBox. |
|
Model used in place of (extending) signals_webhooks.models.WebhookModel. Swapped using: settings.SIGNAL_WEBHOOKS_CUSTOM_MODEL = ‘api.models.OutboundWebhook’ |
Functions
API
- class archivebox.api.models.APIToken(*args: Any, **kwargs: Any)[source]
Bases:
archivebox.base_models.models.ABIDModel
A secret key generated by a User that’s used to authenticate REST API requests to ArchiveBox.
Initialization
Overriden init method ensures we have a stable creation timestamp that fields can use within initialization code pre-saving to DB.
- class archivebox.api.models.OutboundWebhook(*args: Any, **kwargs: Any)[source]
Bases:
archivebox.base_models.models.ABIDModel
,signal_webhooks.models.WebhookBase
Model used in place of (extending) signals_webhooks.models.WebhookModel. Swapped using: settings.SIGNAL_WEBHOOKS_CUSTOM_MODEL = ‘api.models.OutboundWebhook’
Initialization
Overriden init method ensures we have a stable creation timestamp that fields can use within initialization code pre-saving to DB.