@trycourier/courier
Advanced tools
Changelog
[v1.6.1] - 2020-09-23
PUT
methods that return 204client.lists.send()
client.lists.findByRecipientId()
client.lists.put()
Changelog
[v1.6.0] - 2020-09-22
idempotencyKey
for POST
methods by @aydrian & @rileylnapierPOST /send/list
via client.lists.send(params, config)
GET /profiles/{recipient_id}/lists
via client.lists.findByRecipientId(recipientId, params)
GET /lists
via client.lists.list(params)
GET /lists/{list_id}
via client.lists.get(listId)
PUT /lists/{list_id}
via client.lists.put(listId, {...})
DELETE /lists/{list_id}
via client.lists.delete(listId)
PUT /lists/{list_id}/restore
via client.lists.restore(listId)
GET /lists/{list_id}/subscriptions
via client.lists.getSubscriptions(listId)
PUT /lists/{list_id}/subscriptions
via client.lists.putSubscriptions(listId, [recipientId], config)
PUT /lists/{list_id}/subscriptions/{recipient_id}
via client.lists.subscribe(listId, recipientId)
DELETE /lists/{list_id}/subscriptions/{recipient_id}
via client.lists.unsubscribe(listId, recipientId)
base_url
is now api.courier.com
Changelog
[v1.5.0] - 2020-07-08
GET /brands
via client.getBrands(params)
GET /brands/:brand_id
via client.getBrand(brandId)
POST /brands
via client.createBrand({…})
PUT /brands/:brand_id
via client.replaceBrand({…})
DELETE /brands/:brand_id
via client.deleteBrand(brandId)
Changelog
[v1.4.0] - 2020-06-29
GET /messages/:messageId
via client.getMessage(messageId)
@rileylnapierChangelog
[v1.3.0] - 2020-03-10
COURIER_AUTH_TOKEN
environment variable by @aydrianCOURIER_BASE_URL
environment variable by @aydrian