Get all posts of an ambassador (widget)
Headers
-
X-Popsell-Domain
string Required The domain of the user
Path parameters
-
id
integer Required The ambassador id
Query parameters
-
page
integer page number
-
per_page
integer number of items per page
-
filter[type]
string filter by type
Values are
POST
orPOPLISTE
. -
filter[view_on_blog]
boolean filter by view_on_blog
-
sort
string example :to sort the posts by date_post (-date_post: descending, date_insert: ascending)
Value is
date_post
.
GET
/widget/ambassadors/{id}/posts
curl \
--request GET 'https://domain.tld/api/v2/widget/ambassadors/{id}/posts' \
--header "X-Popsell-Domain: example.com"
Response examples (200)
{
"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."
}