https://github.com/jpbede/csapi-go
Go client package for the CSApi
https://github.com/jpbede/csapi-go
csapi go golang
Last synced: 12 months ago
JSON representation
Go client package for the CSApi
- Host: GitHub
- URL: https://github.com/jpbede/csapi-go
- Owner: jpbede
- License: mit
- Created: 2020-12-01T09:21:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T11:23:56.000Z (almost 4 years ago)
- Last Synced: 2025-02-08T22:11:48.247Z (over 1 year ago)
- Topics: csapi, go, golang
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# csapi-go
[](https://pkg.go.dev/go.bnck.me/csapi)
[](https://www.codacy.com/gh/jpbede/csapi-go/dashboard)
[](https://codecov.io/gh/jpbede/csapi-go)

Go client package for the CSApi (API for certified-senders.org)
## Usage
Import the lib as usual
```go
import "go.bnck.me/csapi/v2"
```
Then create a new client. The login will be handled automatically. You will get a authenticated client.
```go
api, err := csapi.NewWithOptions(csapi.WithAPIKey("abc-123"))
if err != nil {
return err
}
```