Skip to content

v0.1.4

Choose a tag to compare

@kayode0x kayode0x released this 25 Apr 04:12
· 6 commits to main since this release
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.