akf-forum/util/tests/post_msg_react.py

18 lines
322 B
Python
Raw Normal View History

2022-08-11 01:11:07 +03:00
import requests
# Headers for login to Akf-forum
headers = {
"username": "testUser",
"password": "testPassword"
}
r = requests.post("http://localhost:3000/api/messages/0/react/like",
headers=headers)
print(r.json())
example_response = {
'status': 200,
'result': 1 # Number of likes
}