Repository navigation
v0.1.4
Breaking Changes
- 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
}- 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.