Get all posts of an ambassador (widget)

GET /widget/ambassadors/{id}/posts

Headers

Path parameters

  • id integer Required

    The ambassador id

Query parameters

  • page integer

    page number

  • per_page integer

    number of items per page

  • filter by type

    Values are POST or POPLISTE.

  • 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.

Responses

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."
}