-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkickbox.go
28 lines (23 loc) · 908 Bytes
/
kickbox.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package kickbox
import (
"context"
"io"
)
const (
// see: https://docs.kickbox.com/docs/using-the-api#calling-the-kickbox-api
BaseURL = "https://api.kickbox.com"
/*
If you are utilizing a "EU Only" account (sign in from app.eu.kickbox.com rather than the
standard URL) then your API calls will need to be directed to the matching endpoint: api.eu.kickbox.com
*/
BaseURLEU = "https://api.eu.kickbox.com"
// see: https://docs.kickbox.com/docs/using-the-api#api-limits
maxConcurrentConnections = 25
maxRatePerMinute = 8000 / 60
)
// Verifier
type Verifier interface {
Verify(ctx context.Context, email string, ops ...VerifyOption) (*ResponseVerifyHeaders, *ResponseVerify, error)
VerifyBatch(ctx context.Context, file io.ReadCloser, opts ...VerifyBatchOption) (*ResponseVerifyBatch, error)
VerifyBatchCheck(ctx context.Context, batchID string) (*VerifyBatchCheckResponse, error)
}