Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
890c19d
test: add JSON fixtures for the email endpoints
tomasmartty Oct 29, 2026
7a328bd
feat: add shared checks for IDs, etags and idempotency keys
tomasmartty Oct 29, 2026
53d64b4
feat: expose the status, error fields and replay flag on responses
tomasmartty Oct 29, 2026
3c4aa72
feat: add a request helper for the new resources
tomasmartty Oct 29, 2026
7fa5890
feat: add Emails#get
tomasmartty Oct 29, 2026
b043038
feat: add Emails#get_html
tomasmartty Oct 29, 2026
605fc62
feat: add Emails#get_block
tomasmartty Oct 29, 2026
0699ba6
feat: add Emails#create_block
tomasmartty Oct 29, 2026
3bf7c97
feat: add Emails#update_block
tomasmartty Oct 29, 2026
cdb9c16
feat: add Emails#delete_block
tomasmartty Oct 29, 2026
efe667a
feat: add Emails#move_block
tomasmartty Oct 29, 2026
03d35cd
feat: add Emails#validate_block
tomasmartty Oct 29, 2026
eb04478
feat: add Emails#update_settings
tomasmartty Oct 29, 2026
c34b09a
feat: add Emails#validate_settings
tomasmartty Oct 29, 2026
92806ce
feat: add Emails#create_template
tomasmartty Oct 29, 2026
203940c
feat: add Emails#list_versions
tomasmartty Oct 29, 2026
e299e85
feat: add Emails#create_version
tomasmartty Oct 29, 2026
298975a
feat: add Emails#restore_version
tomasmartty Oct 29, 2026
d2c2fd8
feat: add BrandStyles#get
tomasmartty Oct 29, 2026
efb6631
feat: add Files#list
tomasmartty Oct 29, 2026
5f8976f
feat: create campaigns with the simple editor
tomasmartty Oct 29, 2026
14de408
feat: add idempotency keys to email writes
tomasmartty Oct 29, 2026
3e56330
chore: bump the version to 2.1.0
tomasmartty Oct 29, 2026
83d45f9
fix: check placement block_id only for before and after
tomasmartty Oct 29, 2026
784619b
docs: show an invalid block in the validate example
tomasmartty Oct 29, 2026
a076c5c
test: remove the fixture for a valid block validation
tomasmartty Oct 29, 2026
272bc9a
docs: say which settings values an empty value unsets
tomasmartty Oct 29, 2026
1ea8601
test: set the API token that the WebMock specs expect
tomasmartty Oct 29, 2026
7efb549
chore: remove redundant comments
tomasmartty Oct 29, 2026
9bc0b51
refactor: leave value checks to the API
tomasmartty Oct 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
- `Automations#get_subscriber_activity` takes `filter[:search]`, sent as `filter[search]`. The old `filter[:keyword]` is now sent as `filter[search]` too; the API rejected `filter[keyword]` with a 400
- `AutomationReports#step_subscribers` and `#trigger_subscribers` send an Array `filter[:id]` as one comma-separated value
- `Automations#get_subscriber_activity` takes `with_subscribers: true` to include each run's subscriber. It sends `with_subscribers=1` only when true, because the API turns it on for any value
- Add the `Emails` class for the emails built with the simple editor: get an email, its HTML and its blocks, insert, update, delete, move and validate blocks, update and validate the design settings, save a template, and list, save and restore versions
- Add `BrandStyles#get` and `Files#list`
- Add `Campaigns::EDITOR_SIMPLE`, and document `editor` and `template_id` for the emails of `Campaigns#create`
- Add the optional `idempotency_key` argument to the email writes
- The new methods return an `HTTP::Response` with `api_error` (a `MailerLite::ApiError` with `status`, `code`, `etag`, `errors` and `api_message`) and `idempotent_replay?`. They do not raise for an API error

## [2.0.0] - 2024-12-11
- *BREAKING CHANGE* - Please check the README file, dotenv is now optional
Expand Down
Loading
Loading