GET /company/companies/@id/newsletters
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | The ID of the company you want the newsletters from |
GET /company/companies/18/newsletters HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Array of Newsletter: [Newsletter]
Field | Type | Description |
---|---|---|
shop_ids | [Int] | Send the newsletter to the customers of these shops |
subject | String | Email subject |
html | String | HTML from the email |
id | Int | ID |
recipient_count | Int | To how many people was the newsletter sent |
sent_at | DateTime | When the newsletter was sent |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 698
[
{
"shop_ids": [
13,
13,
17
],
"subject": "...",
"html": "...",
"id": 18,
"recipient_count": 12,
"sent_at": "2019-01-31 12:00:00"
},
{
"shop_ids": [
12,
17,
13
],
"subject": "...",
"html": "...",
"id": 12,
"recipient_count": 10,
"sent_at": "2019-01-31 12:00:00"
},
{
"shop_ids": [
17,
13,
14
],
"subject": "...",
"html": "...",
"id": 14,
"recipient_count": 18,
"sent_at": "2019-01-31 12:00:00"
}
]