trustcafe-api-wrapper/jobs/post/listpublic.py
simonwt 9407b9a03e Save test response to json file
List public and all
2026-04-01 00:00:04 +01:00

11 lines
No EOL
350 B
Python

def listpublic(API) -> dict:
"""
Fetches the list of public posts from the API.
Args:
branch_slug (str): Slug of the branch to fetch posts for.
Returns:
dict: The list of public posts.
"""
post_list = API.make_request("GET", "content", f"post/public", authenticate=True)
return post_list