An open API service indexing awesome lists of open source software.

https://github.com/golevi/spamcheck

Simple client for the Postmark API spam checker.
https://github.com/golevi/spamcheck

api client email go golang postmark spam spam-detection

Last synced: 5 months ago
JSON representation

Simple client for the Postmark API spam checker.

Awesome Lists containing this project

README

          

# spamcheck

![CodeQL](https://github.com/golevi/spamcheck/workflows/CodeQL/badge.svg)

spamcheck uses Postmark's spam API. The API is free to use. No API key is
required. For more information visit https://spamcheck.postmarkapp.com/.

```go
package main

import (
"fmt"
"log"

"github.com/golevi/spamcheck"
)

const msg string = `hello i give you money`

func main() {
req := &spamcheck.Request{
Email: msg,
Options: spamcheck.Long,
// Options: spamcheck.Short,
}

resp, err := req.Process()
if err != nil {
log.Println(err)
}
fmt.Println(resp)
}
```