debugging
This commit is contained in:
@ -26,8 +26,8 @@ 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])
|
||||
print(dog_fact)
|
||||
payload = {"status": f"didja know: \n {dog_fact.attributes.body}\n#RandomDogFacts", "visibility": "mutuals_only"}
|
||||
response = post(post_endpoint, headers=headers, json=payload)
|
||||
if response.reason == "OK":
|
||||
|
Reference in New Issue
Block a user