Query parameters
-
page number
-
number of items per page
-
example :to sort the ambassador posts by date_insert (-date_insert: descending, date_insert: ascending)
Values are
shares_count,date_insert,date_update,start_date,active,orders_count, ortype. -
Filter by ambassador id
-
filter by ambassador post search
-
filter by type
Values are
POSTorPOPLISTE. -
filter by visibility
Values are
FOLLOWERS,LIVE,ME, orPUBLIC. -
filter by is_brand
-
filter by status
-
filter by is_planned
GET
/{environment}/posts
curl \
--request GET 'https://domain.tld/api/v2/widget/posts' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "X-Popsell-Domain: example.com"
Response examples (200)
Object-1
{
"current_page": 42,
"data": [
{}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
{
"current_page": 42,
"data": [
{}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
Response examples (401)
{
"message": "Unauthorized."
}