Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-11 23:36:13 +00:00
parent 3f583e059f
commit d9476960d4
22 changed files with 825 additions and 778 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"fmt"
"os"
"go.m3o.com/spam"
)
// Check whether an email is likely to be spam based on its attributes
func main() {
spamService := spam.NewSpamService(os.Getenv("M3O_API_TOKEN"))
rsp, err := spamService.Classify(&spam.ClassifyRequest{})
fmt.Println(rsp, err)
}