Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenzo0107/sendgrid
SendGrid API in Go
https://github.com/kenzo0107/sendgrid
Last synced: 2 days ago
JSON representation
SendGrid API in Go
- Host: GitHub
- URL: https://github.com/kenzo0107/sendgrid
- Owner: kenzo0107
- License: mit
- Created: 2023-08-08T14:59:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T03:04:44.000Z (6 months ago)
- Last Synced: 2024-05-22T15:08:56.423Z (6 months ago)
- Language: Go
- Size: 149 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SendGrid API in Go
[![GoDoc](https://godoc.org/github.com/kenzo0107/sendgrid?status.svg)](https://godoc.org/github.com/kenzo0107/sendgrid) [![test](https://github.com/kenzo0107/sendgrid/actions/workflows/test.yml/badge.svg)](https://github.com/kenzo0107/sendgrid/actions/workflows/test.yml) [![lint](https://github.com/kenzo0107/sendgrid/actions/workflows/lint.yml/badge.svg)](https://github.com/kenzo0107/sendgrid/actions/workflows/lint.yml)
[![codecov](https://codecov.io/gh/kenzo0107/sendgrid/branch/main/graph/badge.svg)](https://codecov.io/gh/kenzo0107/sendgrid)This library supports most if not all of the [SendGrid](https://sendgrid.com) REST calls.
## Installing
### _go get_
$ go get -u github.com/kenzo0107/sendgrid
## Example
### Get Teammate
```go
package mainimport (
"context"
"log"
"os""github.com/kenzo0107/sendgrid"
)func main() {
apiKey := os.Getenv("SENDGRID_API_KEY")c := sendgrid.New(apiKey)
u, err := c.GetTeammate(context.TODO(), "username")
if err != nil {
fmt.Printf("%s\n", err)
return
}
log.Printf("user: %#v\n", u)
}
```## License
[MIT License](https://github.com/kenzo0107/sendgrid/blob/main/LICENSE)