fixed 401 error

master
Lynne Megido 4 years ago
parent 6b4fa46ae4
commit eaf3d114a6

@ -28,9 +28,11 @@ cfg = json.load(open('config.json', 'r'))
toot = create.make_toot()
if not args.simulate:
client = Mastodon(client_id = cfg['client']['id'],
client_secret = cfg['client']['secret'],
api_base_url=cfg['site'])
client = Mastodon(
client_id=cfg['client']['id'],
client_secret=cfg['client']['secret'],
access_token=cfg['secret'],
api_base_url=cfg['site'])
try:
client.status_post(toot, visibility = 'unlisted', spoiler_text = cfg['cw'])

Loading…
Cancel
Save