dubidoc 0.1.1__py3-none-any.whl → 0.1.2__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.
- dubidoc/__init__.py +1 -1
- dubidoc/_modules/document.py +5 -0
- dubidoc/_modules/document_link.py +2 -2
- {dubidoc-0.1.1.dist-info → dubidoc-0.1.2.dist-info}/METADATA +1 -1
- {dubidoc-0.1.1.dist-info → dubidoc-0.1.2.dist-info}/RECORD +8 -8
- {dubidoc-0.1.1.dist-info → dubidoc-0.1.2.dist-info}/LICENSE +0 -0
- {dubidoc-0.1.1.dist-info → dubidoc-0.1.2.dist-info}/WHEEL +0 -0
- {dubidoc-0.1.1.dist-info → dubidoc-0.1.2.dist-info}/top_level.txt +0 -0
dubidoc/__init__.py
CHANGED
dubidoc/_modules/document.py
CHANGED
@@ -14,6 +14,11 @@ class DocumentAPI:
|
|
14
14
|
return self.client.make_request(HttpMethod.GET, self.PATH)
|
15
15
|
|
16
16
|
def create(self, body, organization_id=None):
|
17
|
+
"""
|
18
|
+
filename — назва файлу з розширенням (опціонально використовується для додаткової валідації)
|
19
|
+
file — base64
|
20
|
+
title — відображувана назва в кабінеті користувача, емейл листі тощо (рекомендується передавати назву файлу без розширення, хоча це не критично)
|
21
|
+
"""
|
17
22
|
return self.client.make_request(HttpMethod.POST, self.PATH, body)
|
18
23
|
|
19
24
|
def get(self, document_id):
|
@@ -9,9 +9,9 @@ class DocumentLinkAPI:
|
|
9
9
|
def __init__(self, client):
|
10
10
|
self.client = client
|
11
11
|
|
12
|
-
def generate_public_link(self, document_id):
|
12
|
+
def generate_public_link(self, document_id, body):
|
13
13
|
path = self.PATH.format(document_id)
|
14
|
-
return self.client.make_request(HttpMethod.POST, path)
|
14
|
+
return self.client.make_request(HttpMethod.POST, path, body)
|
15
15
|
|
16
16
|
def revoke_public_link(self, document_id):
|
17
17
|
path = self.PATH.format(document_id)
|
@@ -1,19 +1,19 @@
|
|
1
|
-
dubidoc/__init__.py,sha256=
|
1
|
+
dubidoc/__init__.py,sha256=Rj-6o9q0Vu5giVJkgcMBqBs1eubytE9v1T3W-imYz7w,177
|
2
2
|
dubidoc/client.py,sha256=eHhPnlQIpCsxL4tN8GSPQQjoppQjRqCOPQlYwQphTGs,2847
|
3
3
|
dubidoc/enum.py,sha256=RTIS0WplquZrFTqZGtzkc95i_9jqu2Xvl6j0SFXZ72I,120
|
4
4
|
dubidoc/_modules/__init__.py,sha256=NUeLh3Onke4cs4BGkowtqbaBByLVh_tEqtXNtacKI2w,184
|
5
5
|
dubidoc/_modules/access_token.py,sha256=nHyYWWg95SJkifvlgtr9I_h7jPTcdpcgxORukdjwwBU,1018
|
6
6
|
dubidoc/_modules/authentication.py,sha256=AtIyTjtwdgT1nHBQkgqfvQsJvZ-T0qqK0epKi-TwGVE,1465
|
7
7
|
dubidoc/_modules/device.py,sha256=ItrK-wzZVEAXPIWbTUkTsYl1JHZLSSAAAHFuKbgw2MU,976
|
8
|
-
dubidoc/_modules/document.py,sha256
|
9
|
-
dubidoc/_modules/document_link.py,sha256=
|
8
|
+
dubidoc/_modules/document.py,sha256=-SmWvQPN8r8jQGYFTm99bHhXmAOMF2kBJV96Ue8slV4,1947
|
9
|
+
dubidoc/_modules/document_link.py,sha256=dHultZvqbPW3VxCspdUnzfBgmOPUzSgjeeuyAyA4H_I,515
|
10
10
|
dubidoc/_modules/download.py,sha256=foTua0_sFpGrwObwgOr6HPen4ngFrJOhGdsCqPUCjnI,608
|
11
11
|
dubidoc/_modules/organization.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
12
12
|
dubidoc/_modules/organization_user.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
13
13
|
dubidoc/_modules/participant.py,sha256=AJ60D7cokQNQFFeUWCngWvx-NQl6VuG-YarREAW9HtE,811
|
14
14
|
dubidoc/_modules/storecode.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
15
|
-
dubidoc-0.1.
|
16
|
-
dubidoc-0.1.
|
17
|
-
dubidoc-0.1.
|
18
|
-
dubidoc-0.1.
|
19
|
-
dubidoc-0.1.
|
15
|
+
dubidoc-0.1.2.dist-info/LICENSE,sha256=wYGgsJKkNcLDvJQfbrT5HabzSp3imJCmSpCOS8_pu9o,1072
|
16
|
+
dubidoc-0.1.2.dist-info/METADATA,sha256=gHPjvd4mqEegM6U6GSTzWMvHUIw7hECt31vf2OjsmLY,2805
|
17
|
+
dubidoc-0.1.2.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
18
|
+
dubidoc-0.1.2.dist-info/top_level.txt,sha256=SQKT6uKBzQCmsVr8MCszUFz4WYCc5Oq7wvy5Y-ZReU0,8
|
19
|
+
dubidoc-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|