poprox_concepts.api.tracking#

Functions

from_hashed_base64(raw, key, model)

to_hashed_base64(data, key)

Classes

LoginLinkData(*, account_id[, newsletter_id])

The endpoint and data should use the values that would be passed to url_for in flask.

SignUpToken(*, email, source[, subsource])

TrackingLinkData(*, newsletter_id, ...)

class poprox_concepts.api.tracking.TrackingLinkData(*, newsletter_id, account_id, url, article_id)#

Bases: BaseModel

Parameters:
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class poprox_concepts.api.tracking.LoginLinkData(*, account_id, newsletter_id=None, endpoint, data)#

Bases: BaseModel

The endpoint and data should use the values that would be passed to url_for in flask. In general this would be the name of the endpoint (i.e. python function name)

Parameters:
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class poprox_concepts.api.tracking.SignUpToken(*, email, source, subsource=None, created_at)#

Bases: BaseModel

Parameters:
  • email (str)

  • source (str)

  • subsource (str | None)

  • created_at (AwareDatetime)

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].