-
Notifications
You must be signed in to change notification settings - Fork 0
Client
dani edited this page Feb 23, 2024
·
10 revisions
See the home page for client setup
Notice that all client functions are async. This is because http requests are made under the hood and they are done in parallel with other requests.
Retrieves the post indicated by the provided post_id.
client: FuzzlyClient
await client.post('Lw_KpQM6')post_id: PostId
Retrieves the user's own posts. Requires a bot token to be provided to the client.
client: FuzzlyClient
await client.my_posts()-
sort: PostSort(optional, default:PostSort.new) -
count: int(optional, default:64) -
page: int(optional, default:1)
List[Post]
Retrieves the tag specified by the provided tag.
client: FuzzlyClient
await client.tag('female')tag: str
Retrieves the tags belonging to a post, specified by the provided post_id.
client: FuzzlyClient
await client.post_tags('Lw_KpQM6')post_id: PostId
Retrieves the set indicated by the provided set_id.
client: FuzzlyClient
await client.set('abc-123')set_id: SetId
Retrieves the sets owned by the user indicated by the provided handle.
client: FuzzlyClient
await client.user_sets('handle')handle: str
List[Set]
Retrieves all sets that contain the post indicated by the provided post_id.
NOTE: the return model also contains the post's neighbors within the set
client: FuzzlyClient
await client.post_sets('abcd1234')post_id: PostId
List[PostSet]