Get posts of a wall.
GET
/api/wall/{target}/{targetId}Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Parameters
Path Parameters
target*
Typestring
RequiredtargetId*
Typestring
RequiredQuery Parameters
limit
Typeinteger
offset
Typeinteger
Responses
Success
JSON
{
"posts": [
{
"id": 1,
"body": "Hello world!",
"time": "2024-01-14 09:57:24",
"pictures": [
"/api/uploads/bcb57ea1-ed73-4fde-849b-c88b11393690"
],
"author": {
"id": 1,
"name": "Max Mustermann",
"avatar": "/api/uploads/bc476952-08be-45a7-b670-db27c966c9c2"
}
}
],
"mayPost": true,
"mayDelete": true
}
Authorization
api_key
Variables
Key
Value
target*
targetId*
limit
offset
cURL
curl -X GET \
'http://localhost/api/wall/{target}/{targetId}'
Samples
cURL
curl -X GET http://localhost/api/wall/{target}/{targetId}
JavaScript
fetch("http://localhost/api/wall/{target}/{targetId}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/wall/{target}/{targetId}");
Python
import requests
response = requests.get("http://localhost/api/wall/{target}/{targetId}")
print(response.json())