error in field name
This commit is contained in:
parent
1213e08c7b
commit
83662cd415
2
app.py
2
app.py
@ -17,5 +17,5 @@ if source_object.reason == "OK":
|
||||
print(choices[0])
|
||||
choice = choices[randint(0, len(choices) - 1)]
|
||||
headers = {'Authorization': 'Bearer ' + post_token}
|
||||
payload = {'status': f"{choice['quote']}\n\n - {choice['author']}\n\n#RandomQuote #quotes #quote #bot", 'privacy': 'public'}
|
||||
payload = {'status': f"{choice['quote']}\n\n - {choice['author']}\n\n#RandomQuote #quotes #quote #bot", 'visibility': 'public'}
|
||||
response = post(post_endpoint, headers=headers, data=payload)
|
||||
|
Loading…
x
Reference in New Issue
Block a user