Go SDK for unsend.dev
- Unsend 1.4.x
- Go 1.22.x
This was built to be an SDK that can be used with both the cloud hosted and self hosted versions of Unsend
- Run
go get github.com/QGeeDev/unsend-goto install module to your project
- Generate an API key for Unsend by following this guide
- Set environment variable
UNSEND_API_KEYto the value of the key generated - Create an Unsend client in your Go project as shown in examples
- Generate an API key for Unsend by following this guide
- Set environment variable
UNSEND_API_KEYto the value of the key generated - Set environment variable
UNSEND_BASE_URLto FQDN of Unsend instance INCLUDING the/apiat the end- example:
https://unsend.test.com/api
- example:
- Create an Unsend client in your Go project as shown in examples
| Variable Name | Required | Default |
|---|---|---|
UNSEND_API_KEY |
YES |
N/A |
UNSEND_BASE_URL |
NO |
https://app.unsend.dev/api |