https://github.com/dimuska139/sendpulse-sdk-go
Go library for sending mail with the Sendpuse.
https://github.com/dimuska139/sendpulse-sdk-go
email email-marketing go golang sendpulse unofficial
Last synced: 10 months ago
JSON representation
Go library for sending mail with the Sendpuse.
- Host: GitHub
- URL: https://github.com/dimuska139/sendpulse-sdk-go
- Owner: dimuska139
- License: mit
- Created: 2019-01-10T14:31:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-15T20:40:43.000Z (over 1 year ago)
- Last Synced: 2025-07-08T06:04:47.730Z (about 1 year ago)
- Topics: email, email-marketing, go, golang, sendpulse, unofficial
- Language: Go
- Homepage: https://sendpulse.com
- Size: 272 KB
- Stars: 20
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SendPulse REST client library (unofficial)
An unofficial SendPulse SDK client library for Go (Golang). This library allows to use
the SendPulse API via Go.
SendPulse API official documentation [https://sendpulse.com/api](https://sendpulse.com/api)
[](https://pkg.go.dev/github.com/dimuska139/tilda-go)
[](https://codecov.io/gh/dimuska139/sendpulse-sdk-go)
[](https://goreportcard.com/report/github.com/dimuska139/sendpulse-sdk-go)
[](https://github.com/dimuska139/sendpulse-sdk-go/blob/master/LICENSE)
### Installation
```shell
go get -u github.com/dimuska139/sendpulse-sdk-go/v8
```
### Usage
```go
package main
import (
"context"
"fmt"
sendpulse "github.com/dimuska139/sendpulse-sdk-go/v8"
"net/http"
)
func main() {
config := &sendpulse.Config{
UserID: "",
Secret: "",
}
client := sendpulse.NewClient(http.DefaultClient, config)
emails := []*sendpulse.EmailToAdd {
&sendpulse.EmailToAdd{
Email: "test@test.com",
Variables: map[string]any{"age": 21, "weight": 99},
},
}
ctx := context.Background()
if err := client.Emails.MailingLists.SingleOptIn(ctx, 1266208, emails); err != nil {
fmt.Println(err)
}
fmt.Println(*emails[0])
}
```
The tests should be considered a part of the documentation.
### License
[The MIT License (MIT)](LICENSE)