12 lines
No EOL
443 B
Python
12 lines
No EOL
443 B
Python
def get(API, branch_slug: str,) -> dict:
|
|
"""
|
|
Fetches the branch/subwiki data from the API.
|
|
|
|
Args:
|
|
branch_slug (str): Slug of the user whose branch/subwiki to fetch.
|
|
Returns:
|
|
dict: The branch/subwiki data.
|
|
"""
|
|
print(f"Fetching branch/subwiki for user slug: {branch_slug}")
|
|
branch_data = API.make_request("GET", "content", f"subwiki/{branch_slug}", authenticate=True)
|
|
return branch_data |