You've already forked openaccounting-server
mirror of
https://github.com/openaccounting/oa-server.git
synced 2025-12-09 00:50:59 +13:00
mailgun dep
This commit is contained in:
18
vendor/github.com/mailgun/mailgun-go/v4/limits.go
generated
vendored
Normal file
18
vendor/github.com/mailgun/mailgun-go/v4/limits.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package mailgun
|
||||
|
||||
import "context"
|
||||
|
||||
type TagLimits struct {
|
||||
Limit int `json:"limit"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
// GetTagLimits returns tracking settings for a domain
|
||||
func (mg *MailgunImpl) GetTagLimits(ctx context.Context, domain string) (TagLimits, error) {
|
||||
r := newHTTPRequest(generatePublicApiUrl(mg, domainsEndpoint) + "/" + domain + "/limits/tag")
|
||||
r.setClient(mg.Client())
|
||||
r.setBasicAuth(basicAuthUser, mg.APIKey())
|
||||
var resp TagLimits
|
||||
err := getResponseFromJSON(ctx, r, &resp)
|
||||
return resp, err
|
||||
}
|
||||
Reference in New Issue
Block a user