Skip to content

Commit

Permalink
Implement sharefolder #73
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Jun 23, 2023
1 parent c24bff5 commit 6bf5e63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Changelog

- Add `CONTRIBUTING` guideline and update `CODE_OF_CONDUCT` document [tomgross]
- Add Sonarcloud checker [tomgross]
- Add test for listtokens endpoint [tomgross]
- Changed repo name to https://github.com/tomgross/pcloud/ to be consistent (https://github.com/tomgross/pcloud/issues/70) [tomgross]
- Implement `sharefolder`-endpoint [tomgross]

1.1 (2022-11-14)
----------------
Expand Down
4 changes: 3 additions & 1 deletion src/pcloud/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,10 @@ def savezipprogress(self, **kwargs):
return self._do_request("savezipprogress", **kwargs)

# Sharing
@RequiredParameterCheck(("path", "folderid"))
@RequiredParameterCheck(("mail", "permissions"), mode=MODE_AND)
def sharefolder(self, **kwargs):
raise NotImplementedError
return self._do_request("sharefolder", **kwargs)

def listshares(self, **kwargs):
return self._do_request("listshares")
Expand Down

0 comments on commit 6bf5e63

Please sign in to comment.