mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 16:19:08 +03:00
18 lines
322 B
Python
18 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
|
||
|
}
|