broadcast-python 0.6.0__py3-none-any.whl → 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- broadcast_python/resources/opt_in_forms.py +12 -1
- broadcast_python/version.py +1 -1
- {broadcast_python-0.6.0.dist-info → broadcast_python-0.7.0.dist-info}/METADATA +3 -1
- {broadcast_python-0.6.0.dist-info → broadcast_python-0.7.0.dist-info}/RECORD +6 -6
- {broadcast_python-0.6.0.dist-info → broadcast_python-0.7.0.dist-info}/WHEEL +0 -0
- {broadcast_python-0.6.0.dist-info → broadcast_python-0.7.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,7 +9,18 @@ Id = Union[str, int]
|
|
|
9
9
|
#: visitor sees a popup. ``always`` and ``every_visit`` mean the same. The server
|
|
10
10
|
#: refuses any other word with 422 (:class:`ValidationError`); the client does
|
|
11
11
|
#: not check, so an older server is never refused a word it would take.
|
|
12
|
-
|
|
12
|
+
#: ``once_per_days`` (Broadcast 2.49 and later) shows the popup again after
|
|
13
|
+
#: ``trigger_settings["frequency_cookie_days"]`` days: a whole number, 1 or
|
|
14
|
+
#: more; blank means 30.
|
|
15
|
+
TRIGGER_FREQUENCIES = (
|
|
16
|
+
"always",
|
|
17
|
+
"every_visit",
|
|
18
|
+
"once_per_session",
|
|
19
|
+
"once_per_day",
|
|
20
|
+
"once_per_week",
|
|
21
|
+
"once",
|
|
22
|
+
"once_per_days",
|
|
23
|
+
)
|
|
13
24
|
|
|
14
25
|
|
|
15
26
|
class OptInForms(BaseResource):
|
broadcast_python/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: broadcast-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Python client for the Broadcast email platform. Subscribers, sequences, broadcasts, segments, templates, autopilot, webhooks, and transactional email.
|
|
5
5
|
Project-URL: Homepage, https://sendbroadcast.net
|
|
6
6
|
Project-URL: Repository, https://github.com/send-broadcast/broadcast-python
|
|
@@ -242,6 +242,8 @@ client.templates.create(label="Welcome", subject="Hi", body="...")
|
|
|
242
242
|
client.opt_in_forms.analytics(id, start_date=date(2026, 1, 1))
|
|
243
243
|
# How often the same visitor sees a popup: one of TRIGGER_FREQUENCIES, or ValidationError (422).
|
|
244
244
|
client.opt_in_forms.update(id, trigger_settings={"frequency": "once_per_day"})
|
|
245
|
+
# Every N days (Broadcast 2.49 and later): frequency_cookie_days is a whole number, 1 or more; blank means 30.
|
|
246
|
+
client.opt_in_forms.update(id, trigger_settings={"frequency": "once_per_days", "frequency_cookie_days": 7})
|
|
245
247
|
client.opt_in_forms.create_variant(id, name="B", weight=50)
|
|
246
248
|
client.opt_in_forms.duplicate(id, label="Copy")
|
|
247
249
|
```
|
|
@@ -6,7 +6,7 @@ broadcast_python/errors.py,sha256=NFJ69Oy_FtYZ3-BEq8Q1m5wLqcufRZLPDYuJlgBfGpc,19
|
|
|
6
6
|
broadcast_python/multipart.py,sha256=VUILWzkJVWk6tL6GR92STnzPs4XiE58LeLSL_L5hBqQ,2155
|
|
7
7
|
broadcast_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
broadcast_python/response.py,sha256=fIBzxi4a2Sc7sNSOb2_t85Y3Opdet89uNbHM5CX3YXw,5511
|
|
9
|
-
broadcast_python/version.py,sha256=
|
|
9
|
+
broadcast_python/version.py,sha256=WK4D0WjB1JC6Kfg-R6EkXvcv4Oy2TCtQuBw_ZuC64B4,169
|
|
10
10
|
broadcast_python/webhook.py,sha256=2OtgY4IqKcf73hyUcCwZWpS_VURPjU2ZOgizl8Wz3Dg,3776
|
|
11
11
|
broadcast_python/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
broadcast_python/resources/autopilots.py,sha256=PVOetU4DwF5ISZKuvN1UYr5a6hnwiWJLt1AcAo6wMbc,3488
|
|
@@ -19,7 +19,7 @@ broadcast_python/resources/email_servers.py,sha256=1_ZJEPwVjFi5rN6S_0n7WfFfmF5y3
|
|
|
19
19
|
broadcast_python/resources/file_assets.py,sha256=-FGwd4mLNetO1MkamZ2BqW8bkEdlwjcV3mPviJONk_4,4189
|
|
20
20
|
broadcast_python/resources/global_suppressions.py,sha256=5Nghq0AfQYLPEL_IAc_tmwGfovA5jpLmdw8yUxg6HpA,1730
|
|
21
21
|
broadcast_python/resources/migration.py,sha256=EvqUvn254Tr_mMVM7Ki3MZb0o0c8_PO4ZUo-lHnvBTA,4126
|
|
22
|
-
broadcast_python/resources/opt_in_forms.py,sha256=
|
|
22
|
+
broadcast_python/resources/opt_in_forms.py,sha256=YALMAkpQedGXcpvIX8ZfCD4SF2R1reSA9t5l_8wW2qw,3308
|
|
23
23
|
broadcast_python/resources/segments.py,sha256=ZfUJxiWPhERWzkzuRGVu09uWqbwyUbdr3NsKOEeuW8o,857
|
|
24
24
|
broadcast_python/resources/sequences.py,sha256=9IuKw13e_LYZMLZiBYrr0b-BPhAAAucdt8DUjQvbP80,2467
|
|
25
25
|
broadcast_python/resources/subscribers.py,sha256=OMcdlfDMgs-gUXIYGLhw3IoRQbBlChFT6EcJOJ2FeVE,3786
|
|
@@ -29,7 +29,7 @@ broadcast_python/resources/topics.py,sha256=jgspk04PgpxzGpehP9DO_AjKk361pgsbaYFR
|
|
|
29
29
|
broadcast_python/resources/transactionals.py,sha256=iwe9aTHKpeEMtDxd_S2TVzdUVm5Phno-Vinrxu9bn6w,2940
|
|
30
30
|
broadcast_python/resources/users.py,sha256=25gPmWLI1rqQnS9gCOi_2esUjdz_e0Zfi7_7Y2x91mg,4813
|
|
31
31
|
broadcast_python/resources/webhook_endpoints.py,sha256=Llkry10QT3JavkmKok3IAayYKM1PD1-iI51YhW3RbpE,1180
|
|
32
|
-
broadcast_python-0.
|
|
33
|
-
broadcast_python-0.
|
|
34
|
-
broadcast_python-0.
|
|
35
|
-
broadcast_python-0.
|
|
32
|
+
broadcast_python-0.7.0.dist-info/METADATA,sha256=yqJI15AGUiPwD2laJYQVTNybw47xUKO4kq5VNlEG5ek,25123
|
|
33
|
+
broadcast_python-0.7.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
34
|
+
broadcast_python-0.7.0.dist-info/licenses/LICENSE,sha256=cnoPKJuOFIyR8mBe7kmEcUQelniJaujjGl21QWqzlKE,1067
|
|
35
|
+
broadcast_python-0.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|