mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-29 22:20:41 +03:00
17 lines
322 B
Python
17 lines
322 B
Python
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
|
|
}
|