Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 777 Bytes

story_links.md

File metadata and controls

35 lines (25 loc) · 777 Bytes

StoryLinks

Before that setup the default client, or will inject your own client.

Creating

id_story = 125
new_story_link = { 'subject_id': 3, 'object_id': 2, 'verb': 'blocks'}
story_link = await club_house.story_links.create(id_story, **new_story_link)

Updating

id_story_link = 126
new_story_link = { 'subject_id': 3, 'object_id': 2, 'verb': 'blocks'}
story_link = await club_house.story_links.update(id_story_link, **new_story_link)

Get by id

id_story_link = 126
story_link = await club_house.story_links.get(id_story_link)

Deleting by id

When None is returned this means it was successfull

id_story_link = 126
await club_house.story_links.delete(id_story_link)