broadcast-python 0.2.0__py3-none-any.whl → 0.3.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.
@@ -35,6 +35,7 @@ COLLECTIONS = (
35
35
  "webhook_endpoints",
36
36
  "tokens",
37
37
  "suppressions",
38
+ "unsubscribed_emails",
38
39
  "tags",
39
40
  "users",
40
41
  "link_redirects",
@@ -106,7 +107,7 @@ def _make_collection_method(name: str):
106
107
  return method
107
108
 
108
109
 
109
- # Generated rather than hand-written: 18 near-identical methods invite the kind
110
+ # Generated rather than hand-written: 19 near-identical methods invite the kind
110
111
  # of copy-paste drift this whole SDK family exists to prevent. Declared in
111
112
  # .api-coverage.yml so the coverage report still counts them.
112
113
  for _collection in COLLECTIONS:
@@ -1,3 +1,3 @@
1
1
  # Kept in sync with pyproject.toml by tests/test_package.py — a User-Agent that
2
2
  # lies about its version misattributes server-side client analytics.
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: broadcast-python
3
- Version: 0.2.0
3
+ Version: 0.3.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
@@ -363,6 +363,11 @@ client.migration.manifest()
363
363
  for sub in client.migration.each_record("subscribers"):
364
364
  ... # auto-pages; advances by the limit the server actually applied
365
365
 
366
+ # Suppressed addresses live in two lists; export both:
367
+ # suppressions = global suppression list, unsubscribed_emails = the channel's own
368
+ for row in client.migration.each_record("unsubscribed_emails"):
369
+ ... # {"id", "email", "broadcast_channel_id", "created_at", "updated_at"}
370
+
366
371
  data = client.migration.download_file_asset(id) # bytes
367
372
  ```
368
373
 
@@ -5,7 +5,7 @@ broadcast_python/connection.py,sha256=cAXyfwJ1pdleLm7S9fr1FUk5nqkdOTdav6dGZGJ0Gf
5
5
  broadcast_python/errors.py,sha256=NFJ69Oy_FtYZ3-BEq8Q1m5wLqcufRZLPDYuJlgBfGpc,1993
6
6
  broadcast_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  broadcast_python/response.py,sha256=fIBzxi4a2Sc7sNSOb2_t85Y3Opdet89uNbHM5CX3YXw,5511
8
- broadcast_python/version.py,sha256=f52uUZ9_ePggmFw6jNA8hgza42_PJo1M9gSQXdKeymI,169
8
+ broadcast_python/version.py,sha256=KdCknBvn0jI4v3L3k7hqoskHFgSkhHBXAZlj1VJlqFs,169
9
9
  broadcast_python/webhook.py,sha256=eLSxUkZ75dqEMoKfjLiG6SAVSVmxa0TQlhPl9MwZKaM,3679
10
10
  broadcast_python/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  broadcast_python/resources/autopilots.py,sha256=yDXs7lPi2tqJwPEi_e156jRFQIkVamsdvYGiHax_7HM,3416
@@ -15,7 +15,7 @@ broadcast_python/resources/channel_design.py,sha256=4xiJMGkiBjbCH35LQi_2DqrZV8n5
15
15
  broadcast_python/resources/discovery.py,sha256=B0BKq9hpRwd9gN4MWoPArz2dli4bQLZs9T6IYB8edC4,1960
16
16
  broadcast_python/resources/email_servers.py,sha256=1_ZJEPwVjFi5rN6S_0n7WfFfmF5y3JDIcW0Ixak0Z24,2830
17
17
  broadcast_python/resources/global_suppressions.py,sha256=5Nghq0AfQYLPEL_IAc_tmwGfovA5jpLmdw8yUxg6HpA,1730
18
- broadcast_python/resources/migration.py,sha256=y-GqY4BWzdNnlc6TWu7wNmqcqzEWSroxva1KiMqAJQg,4099
18
+ broadcast_python/resources/migration.py,sha256=EvqUvn254Tr_mMVM7Ki3MZb0o0c8_PO4ZUo-lHnvBTA,4126
19
19
  broadcast_python/resources/opt_in_forms.py,sha256=ScoEKXejT27UfTL8iGxlsADO6g5Q-4xCpWOFtmM6q2E,2509
20
20
  broadcast_python/resources/segments.py,sha256=ZfUJxiWPhERWzkzuRGVu09uWqbwyUbdr3NsKOEeuW8o,857
21
21
  broadcast_python/resources/sequences.py,sha256=9IuKw13e_LYZMLZiBYrr0b-BPhAAAucdt8DUjQvbP80,2467
@@ -25,7 +25,7 @@ broadcast_python/resources/templates.py,sha256=FP0KcP61KkfrRID1XeAQ8hRxxRyxBzt40
25
25
  broadcast_python/resources/transactionals.py,sha256=iwe9aTHKpeEMtDxd_S2TVzdUVm5Phno-Vinrxu9bn6w,2940
26
26
  broadcast_python/resources/users.py,sha256=25gPmWLI1rqQnS9gCOi_2esUjdz_e0Zfi7_7Y2x91mg,4813
27
27
  broadcast_python/resources/webhook_endpoints.py,sha256=Llkry10QT3JavkmKok3IAayYKM1PD1-iI51YhW3RbpE,1180
28
- broadcast_python-0.2.0.dist-info/METADATA,sha256=lNr6zS4CcDh3Ws4Ts6_VnuCdo148GTkJeIAeE-V2NnQ,19364
29
- broadcast_python-0.2.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
30
- broadcast_python-0.2.0.dist-info/licenses/LICENSE,sha256=cnoPKJuOFIyR8mBe7kmEcUQelniJaujjGl21QWqzlKE,1067
31
- broadcast_python-0.2.0.dist-info/RECORD,,
28
+ broadcast_python-0.3.0.dist-info/METADATA,sha256=_RQETsQSRATzNJeBxgc0-hXDXBSMIG4MeXpJj-LdCNU,19646
29
+ broadcast_python-0.3.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
30
+ broadcast_python-0.3.0.dist-info/licenses/LICENSE,sha256=cnoPKJuOFIyR8mBe7kmEcUQelniJaujjGl21QWqzlKE,1067
31
+ broadcast_python-0.3.0.dist-info/RECORD,,