sendbee-api 1.8.0__tar.gz → 1.8.3__tar.gz
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.
- {sendbee_api-1.8.0/sendbee_api.egg-info → sendbee_api-1.8.3}/PKG-INFO +2 -2
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/pyproject.toml +2 -2
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/contacts/models.py +8 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/contacts/query_params.py +5 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/conversations/models.py +8 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/conversations/query_params.py +10 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3/sendbee_api.egg-info}/PKG-INFO +2 -2
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api.egg-info/requires.txt +1 -1
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/LICENSE +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/README.md +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/auth.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/automation/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/automation/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/automation/models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/automation/query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/bind.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/constants.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/contacts/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/contacts/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/conversations/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/conversations/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/debug.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/exceptions.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/fields.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/formatter.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/rate_limit/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/rate_limit/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/rate_limit/models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/rate_limit/query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/response.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/teams/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/teams/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/teams/models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/teams/query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/webhooks/__init__.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/webhooks/client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/webhooks/models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api/webhooks/query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api.egg-info/SOURCES.txt +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api.egg-info/dependency_links.txt +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/sendbee_api.egg-info/top_level.txt +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/setup.cfg +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_auth.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_bind_request.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_client.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_endpoints_smoke.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_fields.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_formatter.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_models.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_query_params.py +0 -0
- {sendbee_api-1.8.0 → sendbee_api-1.8.3}/tests/test_response.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sendbee_api
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
4
4
|
Summary: Python client SDK for Sendbee Public API
|
|
5
5
|
Author-email: Sendbee ltd <info@sendbee.io>
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: click>=7.0
|
|
25
25
|
Requires-Dist: requests>=2.20.0
|
|
26
|
-
Requires-Dist: dumpit>=0.
|
|
26
|
+
Requires-Dist: dumpit>=0.6.1
|
|
27
27
|
Requires-Dist: aenum>=2.1.2
|
|
28
28
|
Requires-Dist: ujson<6,>=5.7.0
|
|
29
29
|
Requires-Dist: cryptography>=3.2
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sendbee_api"
|
|
7
|
-
version = "1.8.
|
|
7
|
+
version = "1.8.3"
|
|
8
8
|
description = "Python client SDK for Sendbee Public API"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.6"
|
|
@@ -27,7 +27,7 @@ classifiers = [
|
|
|
27
27
|
dependencies = [
|
|
28
28
|
"click>=7.0",
|
|
29
29
|
"requests>=2.20.0",
|
|
30
|
-
"dumpit>=0.
|
|
30
|
+
"dumpit>=0.6.1",
|
|
31
31
|
"aenum>=2.1.2",
|
|
32
32
|
"ujson>=5.7.0,<6",
|
|
33
33
|
"cryptography>=3.2",
|
|
@@ -43,6 +43,14 @@ class Contact(Model):
|
|
|
43
43
|
_id = TextField(index='id', desc='UUID')
|
|
44
44
|
_name = TextField(index='name', desc='Name')
|
|
45
45
|
_phone = TextField(index='phone', desc='Phone number')
|
|
46
|
+
_whatsapp_user_id = TextField(
|
|
47
|
+
index='whatsapp_user_id',
|
|
48
|
+
desc='Business-scoped user ID (BSUID) of the ' \
|
|
49
|
+
'recipient, e.g. US.13491208655302741918. ' \
|
|
50
|
+
'Used instead of "to" when the phone number ' \
|
|
51
|
+
'is unknown. If both "to" and "recipient" ' \
|
|
52
|
+
'are provided, Meta gives precedence to "to".'
|
|
53
|
+
)
|
|
46
54
|
_created_at = DatetimeField(
|
|
47
55
|
index='created_at', desc='Name', format='%Y-%m-%d %H:%M:%'
|
|
48
56
|
)
|
|
@@ -17,6 +17,11 @@ class UpdateContacts(QueryParams):
|
|
|
17
17
|
|
|
18
18
|
id = 'id', 'Contact ID'
|
|
19
19
|
phone = 'phone', 'Contact phone number'
|
|
20
|
+
whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \
|
|
21
|
+
'recipient, e.g. US.13491208655302741918. ' \
|
|
22
|
+
'Used instead of "to" when the phone number ' \
|
|
23
|
+
'is unknown. If both "to" and "recipient" ' \
|
|
24
|
+
'are provided, Meta gives precedence to "to".'
|
|
20
25
|
tags = 'tags', 'Tag contact while subscribing it'
|
|
21
26
|
name = 'name', 'Subscriber name'
|
|
22
27
|
contact_fields = 'contact_fields', 'Contact data fields'
|
|
@@ -52,6 +52,14 @@ class ConversationContact(Model):
|
|
|
52
52
|
_id = TextField(index='id', desc='UUID')
|
|
53
53
|
_name = TextField(index='name', desc='Name')
|
|
54
54
|
_phone = TextField(index='phone', desc='Phone number')
|
|
55
|
+
_whatsapp_user_id = TextField(
|
|
56
|
+
index='whatsapp_user_id',
|
|
57
|
+
desc='Business-scoped user ID (BSUID) of the ' \
|
|
58
|
+
'recipient, e.g. US.13491208655302741918. ' \
|
|
59
|
+
'Used instead of "to" when the phone number ' \
|
|
60
|
+
'is unknown. If both "to" and "recipient" ' \
|
|
61
|
+
'are provided, Meta gives precedence to "to".'
|
|
62
|
+
)
|
|
55
63
|
|
|
56
64
|
|
|
57
65
|
class ConversationLastMessage(Model):
|
|
@@ -16,6 +16,11 @@ class SendTemplateMessage(QueryParams):
|
|
|
16
16
|
tags = 'tags', 'Template message tags'
|
|
17
17
|
button_tags = 'button_tags', 'Template button tags'
|
|
18
18
|
phone = 'phone', 'Contact\'s phone number'
|
|
19
|
+
whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \
|
|
20
|
+
'recipient, e.g. US.13491208655302741918. ' \
|
|
21
|
+
'Used instead of "to" when the phone number ' \
|
|
22
|
+
'is unknown. If both "to" and "recipient" ' \
|
|
23
|
+
'are provided, Meta gives precedence to "to".'
|
|
19
24
|
language = 'language', 'Template message language'
|
|
20
25
|
template_keyword = 'template_keyword', 'Template message keyword'
|
|
21
26
|
prevent_bot_off = 'prevent_bot_off', 'Prevent turning-off chatbot'
|
|
@@ -28,6 +33,11 @@ class SendMessage(QueryParams):
|
|
|
28
33
|
"""Parameters for sending message"""
|
|
29
34
|
|
|
30
35
|
phone = 'phone', 'Contact\'s phone number'
|
|
36
|
+
whatsapp_user_id = 'whatsapp_user_id', 'Business-scoped user ID (BSUID) of the ' \
|
|
37
|
+
'recipient, e.g. US.13491208655302741918. ' \
|
|
38
|
+
'Used instead of "to" when the phone number ' \
|
|
39
|
+
'is unknown. If both "to" and "recipient" ' \
|
|
40
|
+
'are provided, Meta gives precedence to "to".'
|
|
31
41
|
text = 'text', 'Message text'
|
|
32
42
|
media_url = 'media_url', 'Media URL for media message'
|
|
33
43
|
prevent_bot_off = 'prevent_bot_off', 'Prevent turning-off chatbot'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sendbee_api
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
4
4
|
Summary: Python client SDK for Sendbee Public API
|
|
5
5
|
Author-email: Sendbee ltd <info@sendbee.io>
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
|
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
Requires-Dist: click>=7.0
|
|
25
25
|
Requires-Dist: requests>=2.20.0
|
|
26
|
-
Requires-Dist: dumpit>=0.
|
|
26
|
+
Requires-Dist: dumpit>=0.6.1
|
|
27
27
|
Requires-Dist: aenum>=2.1.2
|
|
28
28
|
Requires-Dist: ujson<6,>=5.7.0
|
|
29
29
|
Requires-Dist: cryptography>=3.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|