Skip to content

Simple client for the Postmark API spam checker.

License

Notifications You must be signed in to change notification settings

golevi/spamcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spamcheck

CodeQL

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/.

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)
}