Skip to content

Commit 1043950

Browse files
committed
Add create_presentation_link()
1 parent 33c3d77 commit 1043950

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

frameioclient/client.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,26 @@ def get_review_links(self, project_id):
411411
endpoint = '/projects/{}/review_links'.format(project_id)
412412
return self._api_call('get', endpoint)
413413

414+
def create_presentation_link(self, asset_id, **kwargs):
415+
"""
416+
Create a presentation link.
417+
418+
:Args:
419+
asset_id (string): The asset id.
420+
:Kwargs:
421+
kwargs: additional request parameters.
422+
423+
Example::
424+
425+
client.create_presentation_link(
426+
asset_id="9cee7966-4066-b326-7db1-f9e6f5e929e4",
427+
title="My fresh presentation",
428+
password="abc123"
429+
)
430+
"""
431+
endpoint = '/assets/{}/presentations'.format(asset_id)
432+
return self._api_call('post', endpoint, payload=kwargs)
433+
414434
def create_review_link(self, project_id, **kwargs):
415435
"""
416436
Create a review link.

0 commit comments

Comments
 (0)