No description
Find a file
2026-08-10 21:11:30 +00:00
examples change SwaggerClient to SwagClient 2026-07-30 15:01:18 -05:00
src/swagsocial_py move constants to src/.../constants.py 2026-08-10 21:11:30 +00:00
.gitignore wow 2026-07-30 14:44:17 -05:00
LICENSE get ready for pypi 2026-07-09 17:41:46 -05:00
pyproject.toml change name to swagsocial.py 2026-07-30 14:59:50 -05:00
README.md Update README.md 2026-07-31 16:42:14 +02:00

Swagsocial.py

Now on PyPI: https://pypi.org/project/swagsocial-py/

Python module to interact with swagsocial.

Created by Wish wishyt@proton.me and Squirrel squirrelhomebrew@gmail.com

Getting your API key

Log into your desired swagsocial account and go to Settings --> API, or click this link: https://swag.nomaakip.xyz/settings/api

If you would like to grant manage post permissions, which includes making posts and replies. It also allows deleting posts and replies, so be careful!

v1

SwagClient(api_key): apikey is the account's API key. You must assign this to a variable

SwagClient.create_post(content, media): You may create a post. With media, you may attach pictures or videos. Media takes a string in the form of a file name. Content takes a string. Requires "Manage posts" permission

SwagClient.reply(post_id, content, media): You may reply to a post. post_id accepts an integer. Works the same as create_post but with reply support.

SwagClient.delete_post(post_id): You may delete a post you have created. post_id takes an integer. Requires "Manage posts" permission

SwagClient.get_post(post_id): You may get post details in JSON format. post_id takes an integer.

SwagClient.get_user(username): You may get a user's information in JSON format. username takes a string.