https://github.com/kenzo0107/sendgrid
SendGrid API in Go
https://github.com/kenzo0107/sendgrid
Last synced: 4 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T03:04:44.000Z (about 1 year ago)
- Last Synced: 2024-05-22T15:08:56.423Z (about 1 year 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
[](https://godoc.org/github.com/kenzo0107/sendgrid) [](https://github.com/kenzo0107/sendgrid/actions/workflows/test.yml) [](https://github.com/kenzo0107/sendgrid/actions/workflows/lint.yml)
[](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)