fixed 401 error
This commit is contained in:
parent
6b4fa46ae4
commit
eaf3d114a6
1 changed files with 5 additions and 3 deletions
6
gen.py
6
gen.py
|
@ -28,8 +28,10 @@ cfg = json.load(open('config.json', 'r'))
|
||||||
|
|
||||||
toot = create.make_toot()
|
toot = create.make_toot()
|
||||||
if not args.simulate:
|
if not args.simulate:
|
||||||
client = Mastodon(client_id = cfg['client']['id'],
|
client = Mastodon(
|
||||||
client_secret = cfg['client']['secret'],
|
client_id=cfg['client']['id'],
|
||||||
|
client_secret=cfg['client']['secret'],
|
||||||
|
access_token=cfg['secret'],
|
||||||
api_base_url=cfg['site'])
|
api_base_url=cfg['site'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue