debugging

This commit is contained in:
2025-06-08 14:45:57 -05:00
parent 0511e8c014
commit 8bb6d9d610

View File

@ -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)