remove debug lines
All checks were successful
DogFacts / deploy (push) Successful in 47s

This commit is contained in:
2025-06-08 15:06:41 -05:00
parent 3cb6b9f89c
commit 08cf56eb49

View File

@ -21,13 +21,9 @@ headers = {
"Authorization": f"Bearer {dogfacts_token}"
}
print(botsy_token, bots_endpoint, post_endpoint)
print(api_url)
print(po_user_token, po_test_token)
response = get(api_url)
if response.reason == "OK":
dog_fact = DefaultMunch.fromDict(loads(response.text)['data'][0])
print(dog_fact)
payload = {"status": f"didja know: \n {dog_fact.attributes.body}\n#RandomDogFacts", "visibility": "unlisted"}
response = post(post_endpoint, headers=headers, json=payload)
if response.reason == "OK":