Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bugout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""
Bugout Python API
"""

__author__ = "Bugout"
__maintainer__ = __author__
__description__ = "Python client library for Bugout API"

__email__ = "engineering@bugout.dev"
__license__ = "MIT"
__version__ = "0.2.14"
__version__ = "0.2.15"

__all__ = (
"__author__",
Expand Down
11 changes: 9 additions & 2 deletions bugout/resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import uuid
from typing import Any, Dict, Optional, Union

Expand Down Expand Up @@ -129,7 +130,10 @@ def add_resource_holder_permissions(
"Authorization": f"Bearer {token}",
}
result = self._call(
method=Method.post, path=path, headers=headers, json=holder_permissions
method=Method.post,
path=path,
headers=headers,
json=json.loads(holder_permissions.json(by_alias=True)),
)
return BugoutResourceHolders(**result)

Expand All @@ -144,6 +148,9 @@ def delete_resource_holder_permissions(
"Authorization": f"Bearer {token}",
}
result = self._call(
method=Method.delete, path=path, headers=headers, json=holder_permissions
method=Method.delete,
path=path,
headers=headers,
json=json.loads(holder_permissions.json(by_alias=True)),
)
return BugoutResourceHolders(**result)