1. Getting started
This is to get the comment from a given post. The comments will be limited by 50, but the request can be made with an offsets
2. General use
API Path |
/API/post/get-comment.php |
Request |
POST |
requires login |
true |
needs database |
true |
needs config |
true |
output |
JSON |
3. Input
Takes 2 POST parameter
post |
ID of the post |
offset |
offset for the comments |
4. Output
4.1. Default
The server will respond with a json.
Example for this json:
[ (1)
{
"content": "testComment",
"user": "testUser",
"userId": "UXMIs77rrHOQk6r-AEYeREl0idWqJy",
"userImage": "user.png"
}
]
| 1 | Array for comments |
4.2. Error
If the Server runs into an error, it will respond with the following:
{
"error" : (1)
}