snipp-gg/snipp
snipp
Installation
requests.
Getting Started
Methods
get_user(user_id, include_posts=None, posts_limit=None)
Fetch a user by ID. Pass "@me" for the authenticated user.
get_post(code)
Fetch a post by its share code.
upload(file, privacy="unlisted", title=None, description=None, post_type=None)
Upload a file. Accepts a file path string, bytes, or a file-like object.
list_uploads(limit=None)
List the authenticated user’s recent uploads. Defaults to 30. Pass limit to control the count (max 1000).
edit_upload(code, title=None, description=None, privacy=None)
Edit an existing upload’s title, description, or privacy.
append_upload(code, files)
Add one or more files to an existing album post. The post’s share code, privacy, title, and description are preserved. Albums cap at 9 files total. Requests that would exceed the cap are rejected. New files inherit the post’s privacy. Returned URLs are signed with a 24-hour expiry for private posts.
delete_upload(filename)
Delete an upload by its filename. On albums, only that file is removed; on single-file posts the entire post is deleted.
Error Handling
All API errors raise aSnippError with status and message attributes.

