Skip to content
dani edited this page Feb 23, 2024 · 10 revisions

See the home page for client setup

Client Methods

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.

(FuzzlyClient).post(post_id) -> Post

Retrieves the post indicated by the provided post_id.

client: FuzzlyClient
await client.post('Lw_KpQM6')

params

returns

(FuzzlyClient).my_posts(sort, count, page) -> List[Post]

Retrieves the user's own posts. Requires a bot token to be provided to the client.

client: FuzzlyClient
await client.my_posts()

params

  • sort: PostSort (optional, default: PostSort.new)
  • count: int (optional, default: 64)
  • page: int (optional, default: 1)

returns

(FuzzlyClient).tag(tag) -> Tag

Retrieves the tag specified by the provided tag.

client: FuzzlyClient
await client.tag('female')

params

  • tag: str

returns

(FuzzlyClient).post_tags(post_id) -> TagGroups

Retrieves the tags belonging to a post, specified by the provided post_id.

client: FuzzlyClient
await client.post_tags('Lw_KpQM6')

params

returns

(FuzzlyClient).set(set_id) -> Set

Retrieves the set indicated by the provided set_id.

client: FuzzlyClient
await client.set('abc-123')

params

returns

(FuzzlyClient).user_sets(handle) -> List[Set]

Retrieves the sets owned by the user indicated by the provided handle.

client: FuzzlyClient
await client.user_sets('handle')

params

  • handle: str

returns

(FuzzlyClient).post_sets(post_id) -> List[PostSet]

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')

params

returns