Skip to content

Get "wallposts" for store with given ID. Returns 200 and the comments, 401 if not logged in, or 403 if you may not view this store.

GET
/api/stores/{storeId}/posts

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

storeId*
Typestring
Required

Responses

Authorization
api_key
Variables
Key
Value
storeId*
cURL
curl -X GET \
'http://localhost/api/stores/{storeId}/posts'

Samples

cURL
curl -X GET http://localhost/api/stores/{storeId}/posts
JavaScript
fetch("http://localhost/api/stores/{storeId}/posts")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/stores/{storeId}/posts");
Python
import requests
response = requests.get("http://localhost/api/stores/{storeId}/posts")
print(response.json())