dubidoc 0.1.1__tar.gz → 0.1.2__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.
Files changed (24) hide show
  1. {dubidoc-0.1.1 → dubidoc-0.1.2}/PKG-INFO +1 -1
  2. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/__init__.py +1 -1
  3. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/document.py +5 -0
  4. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/document_link.py +2 -2
  5. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc.egg-info/PKG-INFO +1 -1
  6. {dubidoc-0.1.1 → dubidoc-0.1.2}/pyproject.toml +1 -1
  7. {dubidoc-0.1.1 → dubidoc-0.1.2}/LICENSE +0 -0
  8. {dubidoc-0.1.1 → dubidoc-0.1.2}/README.md +0 -0
  9. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/__init__.py +0 -0
  10. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/access_token.py +0 -0
  11. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/authentication.py +0 -0
  12. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/device.py +0 -0
  13. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/download.py +0 -0
  14. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/organization.py +0 -0
  15. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/organization_user.py +0 -0
  16. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/participant.py +0 -0
  17. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/_modules/storecode.py +0 -0
  18. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/client.py +0 -0
  19. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc/enum.py +0 -0
  20. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc.egg-info/SOURCES.txt +0 -0
  21. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc.egg-info/dependency_links.txt +0 -0
  22. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc.egg-info/requires.txt +0 -0
  23. {dubidoc-0.1.1 → dubidoc-0.1.2}/dubidoc.egg-info/top_level.txt +0 -0
  24. {dubidoc-0.1.1 → dubidoc-0.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dubidoc
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python SDK for dubidoc.com.ua API
5
5
  Maintainer-email: Dmytro Litvinov <me@dmytrolitvinov.com>
6
6
  License: MIT License
@@ -2,6 +2,6 @@
2
2
 
3
3
  __author__ = 'Dmytro Litvinov'
4
4
  __email__ = 'me@dmytrolitvinov.com'
5
- __version__ = '0.1.1'
5
+ __version__ = '0.1.2'
6
6
 
7
7
  from .client import DubidocAPIClient
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dubidoc
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Python SDK for dubidoc.com.ua API
5
5
  Maintainer-email: Dmytro Litvinov <me@dmytrolitvinov.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dubidoc"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  requires-python = ">=3.8"
9
9
  description = "Python SDK for dubidoc.com.ua API"
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes