Skip to content

Releases: kayode0x/plunk

v0.1.7

Choose a tag to compare

@kayode0x kayode0x released this 30 Nov 16:18
e4db820

What's Changed

  • feat: added new social preview image. by @kayode0x in #4
  • Add emails field to TransactionalEmailResponse by @junedomingo in #5

New Contributors

Full Changelog: v0.1.6...v0.1.7

v0.1.6

Choose a tag to compare

@kayode0x kayode0x released this 13 May 04:34
58b0fa2

New change

You can now link data to contacts on triggering an event.

Example:

p, _ := plunk.New("<YOUR_SECRET_KEY>", nil)

evt := EventPayload{
   Event: "send:alert",
   Email: "hello@useplunk.com",
   Data: map[string]any{
	"alert": "Your server is down!",
	"link":  "https://example.com",
   },
}

res, _ := p.TriggerEvent(evt)

New contributor

@aosasona made their first contributions (#3 and #2)

v0.1.5

Choose a tag to compare

@kayode0x kayode0x released this 03 May 20:46

New change

In SendTransactionalEmail and SendMultipleTransactionalEmails, by specifying the from and name fields, you can customize the from address and name of the email. If you don't specify these fields, the default address and name configured in your project settings will be used.

Example:

p, _ := plunk.New("<YOUR_SECRET_KEY>", nil)

payload := TransactionalEmailPayload{
     From: "billing@useplunk.com",
     Name: "Plunk Billing",
     To:      "hello@useplunk.com",
     Subject: "Welcome!",
     Body:    "Hello",
}

res, _ := p.SendTransactionalEmail(payload)

v0.1.4

Choose a tag to compare

@kayode0x kayode0x released this 25 Apr 04:12
4e3d0bd

Breaking Changes

  1. Configurations:
    Instead of using a function for configurations, they are now an object. Update your implementation as follows:
config := &plunk.Config{
        BaseUrl: "https://api.useplunk.com",
        Debug:   true,
        Client:  &http.Client{
            Timeout: 10 * time.Second,
        },
}

// Create a new Plunk object with your API key and config
p, err := plunk.New("YOUR_API_KEY", config)
if err != nil {
       fmt.Printf("Error creating Plunk object: %v", err)
       return
}
  1. Function Updates:
    The following functions no longer require a pointer reference as a parameter:
  • SendTransactionalEmail
  • SendMultipleTransactionalEmails
  • CreateContact
  • TriggerEvent

Please update your code accordingly to avoid issues.

v0.1.3

Choose a tag to compare

@kayode0x kayode0x released this 21 Apr 07:45

Breaking changes:

  • NewClient has been replaced with New

That's all.

v0.1.1

Choose a tag to compare

@kayode0x kayode0x released this 21 Apr 07:08

I'm excited to announce the initial release of the Plunk Go SDK, a new way for SaaS companies to send, track, and optimize their emails using the Plunk platform. With this SDK, you can easily integrate Plunk's email capabilities into your Go applications and start driving more revenue from your email campaigns.