This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
multipub/mastodon_publisher.py

22 lines
588 B
Python
Raw Normal View History

2019-02-17 01:38:53 -06:00
#!/usr/bin/env python
# encoding: utf-8
'''
This is literally just straight copied from https://mastodonpy.readthedocs.io/en/latest/
but yeah it's gonna eventually be the framework for posting here...
Just right now it was a proof of concept for me.
TODO: Clean this stuff up.
'''
from mastodon import Mastodon
mastodon = Mastodon(
access_token = '/Users/shadow8t4/.secrets/mastodon_api_access_token.secret',
api_base_url = 'https://masto.werefoxsoftware.com'
)
mastodon.status_post(
'This is a test post!',
visibility='public',
spoiler_text='I am testing this.'
)