debugging
This commit is contained in:
@ -21,8 +21,12 @@ headers = {
|
||||
"Authorization": f"Bearer {botsy_token}"
|
||||
}
|
||||
|
||||
print(botsy_token)
|
||||
print(api_url)
|
||||
print(po_user_token, po_test_token)
|
||||
response = get(api_url)
|
||||
if response.reason == "OK":
|
||||
print(dog_fact)
|
||||
dog_fact = DefaultMunch.fromDict(loads(response.text)['data'][0])
|
||||
payload = {"status": f"didja know: \n {dog_fact.attributes.body}\n#RandomDogFacts", "visibility": "mutuals_only"}
|
||||
response = post(post_endpoint, headers=headers, json=payload)
|
||||
|
Reference in New Issue
Block a user