Skip to content

Releases: ElasticEmail/elasticemail-perl

Elastic Email Perl SDK 4.2.0

Choose a tag to compare

@eeppodolak eeppodolak released this 28 Sep 11:09

Elastic Email Perl SDK 4.2.0

This is the first GitHub Release of the Perl SDK. It brings the version in line with the other Elastic Email client libraries. The API surface is the same as 4.0.29.

📦 Install from this repository:

git clone --branch 4.2.0 https://github.com/ElasticEmail/elasticemail-perl.git
cd elasticemail-perl
cpanm --installdeps .

What's in this release

  • SDK version set to 4.2.0 (previously 4.0.29). The only code change is the version constant in ElasticEmail::Configuration, which also updates the default user agent to OpenAPI-Generator/4.2.0/perl. Upgrading from 4.0.29 needs no code changes.

Highlights since 4.0.27

If you're upgrading from 4.0.27 or earlier, you also get these changes from 4.0.28 and 4.0.29:

Webhooks (new ElasticEmail::WebhookApi)

  • webhook_get: GET /webhook lists webhooks
  • webhook_post: POST /webhook adds a webhook
  • webhook_by_publicid_get: GET /webhook/{publicid} loads a webhook
  • webhook_by_publicid_put: PUT /webhook/{publicid} updates a webhook
  • webhook_by_publicid_delete: DELETE /webhook/{publicid} deletes a webhook
  • New models: Webhook, WebhookCreatePayload, WebhookUpdatePayload

New endpoints

  • CampaignsApi->campaigns_automation_by_name_trigger_post(name => …, contact_email => …): POST /campaigns/automation/{name}/trigger triggers an automation for a contact
  • SubAccountsApi->subaccounts_by_email_apikey_get(email => …): GET /subaccounts/{email}/apikey returns a subaccount's API key

New and updated models

  • New DKIMRecord model
  • DomainData / DomainDetail: new certificate_expiry_date, was_ever_verified and dkim_record fields

Docs

  • SecurityApi: the docs now say that a subaccount's default API key expires after 48 hours

Compatibility

  • Perl 5.10 or later (CI runs 5.28), dependencies listed in cpanfile
  • Elastic Email REST API v4

Full changelog: 4.0.27...4.2.0