mailbox-org-api 0.2.2__tar.gz → 0.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.
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/PKG-INFO +2 -2
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/README.md +1 -1
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api/APIClient.py +35 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api.egg-info/PKG-INFO +2 -2
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/pyproject.toml +1 -1
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/setup.py +1 -1
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/LICENSE +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api/__init__.py +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api.egg-info/SOURCES.txt +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api.egg-info/dependency_links.txt +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/mailbox_org_api.egg-info/top_level.txt +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/setup.cfg +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/tests/__init__.py +0 -0
- {mailbox_org_api-0.2.2 → mailbox_org_api-0.3}/tests/tests.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mailbox-org-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3
|
|
4
4
|
Summary: A library to access the mailbox.org Business API.
|
|
5
5
|
Author: Hendrik Schlange
|
|
6
6
|
Author-email: Hendrik Schlange <mail@heshsum.de>
|
|
@@ -61,7 +61,7 @@ The implemented functions follow the naming scheme of the API, but with undersco
|
|
|
61
61
|
1. I'm not a programmer. I'm not very good at this. Be aware of my incompetence.
|
|
62
62
|
2. Implementation is not complete. Not all functions of the API have been implemented
|
|
63
63
|
3. Type hinting is available for most functions, but not all of them.
|
|
64
|
-
E.g. `
|
|
64
|
+
E.g. `mail_set()` accepts kwargs due to the number of available attributes.
|
|
65
65
|
In that case type errors will be returned if wrong types are provided.
|
|
66
66
|
|
|
67
67
|
## API documentation
|
|
@@ -46,7 +46,7 @@ The implemented functions follow the naming scheme of the API, but with undersco
|
|
|
46
46
|
1. I'm not a programmer. I'm not very good at this. Be aware of my incompetence.
|
|
47
47
|
2. Implementation is not complete. Not all functions of the API have been implemented
|
|
48
48
|
3. Type hinting is available for most functions, but not all of them.
|
|
49
|
-
E.g. `
|
|
49
|
+
E.g. `mail_set()` accepts kwargs due to the number of available attributes.
|
|
50
50
|
In that case type errors will be returned if wrong types are provided.
|
|
51
51
|
|
|
52
52
|
## API documentation
|
|
@@ -392,6 +392,41 @@ class APIClient:
|
|
|
392
392
|
"""
|
|
393
393
|
return self.api_request('mail.externaluid', {'mail':mail})
|
|
394
394
|
|
|
395
|
+
def group_list(self) -> dict:
|
|
396
|
+
"""
|
|
397
|
+
Function to list all groups for an account
|
|
398
|
+
"""
|
|
399
|
+
return self.api_request('group.list', {})
|
|
400
|
+
|
|
401
|
+
def group_add(self, name: str, display_name: str, mail_addresses_to_add: list) -> dict:
|
|
402
|
+
"""
|
|
403
|
+
Function to add a group
|
|
404
|
+
:param name: the group name
|
|
405
|
+
:param display_name: the group's display name
|
|
406
|
+
:param mail_addresses_to_add: a list of mail addresses to add
|
|
407
|
+
"""
|
|
408
|
+
return self.api_request('group.add', {'name':name, 'display_name':display_name,
|
|
409
|
+
'mail_addresses_to_add':mail_addresses_to_add})
|
|
410
|
+
|
|
411
|
+
def group_set(self, name: str, display_name: str, mail_addresses_to_add: list, mail_addresses_to_remove: list) -> dict:
|
|
412
|
+
"""
|
|
413
|
+
Function to modify a group
|
|
414
|
+
:param name: the group name
|
|
415
|
+
:param display_name: the group's display name
|
|
416
|
+
:param mail_addresses_to_add: a list of mail addresses to add
|
|
417
|
+
:param mail_addresses_to_remove: a list of mail addresses to remove
|
|
418
|
+
"""
|
|
419
|
+
return self.api_request('group.set', {'name':name, 'display_name':display_name,
|
|
420
|
+
'mail_addresses_to_add':mail_addresses_to_add,
|
|
421
|
+
'mail_addresses_to_remove':mail_addresses_to_remove})
|
|
422
|
+
|
|
423
|
+
def group_del(self, name: str) -> dict:
|
|
424
|
+
"""
|
|
425
|
+
Function to delete a group
|
|
426
|
+
:param name: the group's name
|
|
427
|
+
"""
|
|
428
|
+
return self.api_request('group.delete', {'name':name})
|
|
429
|
+
|
|
395
430
|
def context_list(self, account: str) -> dict:
|
|
396
431
|
"""
|
|
397
432
|
Function to list all contexts of a given account
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mailbox-org-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3
|
|
4
4
|
Summary: A library to access the mailbox.org Business API.
|
|
5
5
|
Author: Hendrik Schlange
|
|
6
6
|
Author-email: Hendrik Schlange <mail@heshsum.de>
|
|
@@ -61,7 +61,7 @@ The implemented functions follow the naming scheme of the API, but with undersco
|
|
|
61
61
|
1. I'm not a programmer. I'm not very good at this. Be aware of my incompetence.
|
|
62
62
|
2. Implementation is not complete. Not all functions of the API have been implemented
|
|
63
63
|
3. Type hinting is available for most functions, but not all of them.
|
|
64
|
-
E.g. `
|
|
64
|
+
E.g. `mail_set()` accepts kwargs due to the number of available attributes.
|
|
65
65
|
In that case type errors will be returned if wrong types are provided.
|
|
66
66
|
|
|
67
67
|
## API documentation
|
|
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
|
|
|
3
3
|
setup(
|
|
4
4
|
name='mailbox_org_api',
|
|
5
5
|
packages=find_packages(),
|
|
6
|
-
version='0.
|
|
6
|
+
version='0.3',
|
|
7
7
|
description='A library to access the mailbox.org Business API',
|
|
8
8
|
author='Hendrik Schlange',
|
|
9
9
|
install_requires=['requests'],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|