Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swagsocial_py-1.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swagsocial_py-1.0.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file swagsocial_py-1.0.0.tar.gz.

File metadata

  • Download URL: swagsocial_py-1.0.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for swagsocial_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b87744df274e028a4e5cbded387ffeda44b27acc7d466415deb0120acd436c4b
MD5 4498aed37f287f733570c921c28e81b6
BLAKE2b-256 f52099ab69aabacc3e7df4a364654dc5dd816233e31bdf7fa2cd667dac132d95

See more details on using hashes here.

File details

Details for the file swagsocial_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: swagsocial_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for swagsocial_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e50d63052a311892b18e0475ec645171724461b41e16f000e027c5e01396d7b
MD5 313e3d06381a772ae8b8f8eeeb2be227
BLAKE2b-256 017a8899f9bbe4410dce4c1ad6cd5cd6676075e6823ccdea750ff5450828c7a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page