Documentation
¶
Index ¶
- func Bool(v bool) *bool
- func OptionBaseURL(endpoint string) func(*Client)
- func OptionDebug(b bool) func(*Client)
- func OptionHTTPClient(client httpClient) func(*Client)
- func OptionLog(l logger) func(*Client)
- func OptionSubuser(subuser string) func(*Client)
- func String(v string) *string
- type APIKey
- type Client
- func (c *Client) AddIPToAuthenticatedDomain(ctx context.Context, domainId int64, input *InputAddIPToAuthenticatedDomain) (*OutputAddIPToAuthenticatedDomain, error)
- func (c *Client) AddOptions(s string, opts interface{}) (string, error)
- func (c *Client) AssociateAuthenticatedDomainWithSubuser(ctx context.Context, domainId int64, ...) (*OutputAssociateAuthenticatedDomainWithSubuser, error)
- func (c *Client) AuthenticateDomain(ctx context.Context, input *InputAuthenticateDomain) (*OutputAuthenticateDomain, error)
- func (c *Client) CreateAPIKey(ctx context.Context, input *InputCreateAPIKey) (*OutputCreateAPIKey, error)
- func (c *Client) CreateSubuser(ctx context.Context, input *InputCreateSubuser) (*OutputCreateSubuser, error)
- func (c *Client) Debug() bool
- func (c *Client) Debugf(format string, v ...interface{})
- func (c *Client) Debugln(v ...interface{})
- func (c *Client) DeleteAPIKey(ctx context.Context, apiKeyId string) error
- func (c *Client) DeleteAuthenticatedDomain(ctx context.Context, domainId int64) error
- func (c *Client) DeletePendingTeammate(ctx context.Context, token string) error
- func (c *Client) DeleteSubuser(ctx context.Context, username string) error
- func (c *Client) DeleteTeammate(ctx context.Context, username string) error
- func (c *Client) DisassociateAuthenticatedDomainFromSubuser(ctx context.Context, subuserName string) error
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error
- func (c *Client) GetAPIKey(ctx context.Context, apiKeyId string) (*OutputGetAPIKey, error)
- func (c *Client) GetAPIKeys(ctx context.Context) (*OutputGetAPIKeys, error)
- func (c *Client) GetAuthenticatedDomain(ctx context.Context, domainId int64) (*OutputGetAuthenticatedDomain, error)
- func (c *Client) GetAuthenticatedDomainAssociatedWithSubuser(ctx context.Context, subuserName string) (*OutputGetAuthenticatedDomainAssociatedWithSubuser, error)
- func (c *Client) GetAuthenticatedDomains(ctx context.Context, input *InputGetAuthenticatedDomains) ([]*DomainAuthentication, error)
- func (c *Client) GetDefaultAuthentication(ctx context.Context, input *InputGetDefaultAuthentication) (*OutputGetDefaultAuthentication, error)
- func (c *Client) GetPendingTeammates(ctx context.Context) (*OutputGetPendingTeammates, error)
- func (c *Client) GetSubuserReputations(ctx context.Context, usernames string) ([]*Reputation, error)
- func (c *Client) GetSubusers(ctx context.Context, input *InputGetSubusers) ([]*Subuser, error)
- func (c *Client) GetTeammate(ctx context.Context, username string) (*OutputGetTeammate, error)
- func (c *Client) GetTeammates(ctx context.Context) (*OutputGetTeammates, error)
- func (c *Client) InviteTeammate(ctx context.Context, input *InputInviteTeammate) (*OutputInviteTeammate, error)
- func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error)
- func (c *Client) RemoveIPFromAuthenticatedDomain(ctx context.Context, domainId int64, ip string) error
- func (c *Client) UpdateAPIKeyName(ctx context.Context, apiKeyId string, input *InputUpdateAPIKeyName) (*OutputUpdateAPIKeyName, error)
- func (c *Client) UpdateAPIKeyNameAndScopes(ctx context.Context, apiKeyId string, input *InputUpdateAPIKeyNameAndScopes) (*OutputUpdateAPIKeyNameAndScopes, error)
- func (c *Client) UpdateDomainAuthentication(ctx context.Context, domainId int64, input *InputUpdateDomainAuthentication) (*OutputUpdateDomainAuthentication, error)
- func (c *Client) UpdateSubuserIps(ctx context.Context, username string, ips []string) error
- func (c *Client) UpdateSubuserStatus(ctx context.Context, username string, input *InputUpdateSubuserStatus) error
- func (c *Client) UpdateTeammatePermissions(ctx context.Context, username string, input *InputUpdateTeammatePermissions) (*OutputUpdateTeammatePermissions, error)
- func (c *Client) ValidateDomainAuthentication(ctx context.Context, domainId int64) (*OutputValidateDomainAuthentication, error)
- type CreditAllocation
- type DNS
- type DomainAuthentication
- type Error
- type ErrorResponse
- type InputAddIPToAuthenticatedDomain
- type InputAssociateAuthenticatedDomainWithSubuser
- type InputAuthenticateDomain
- type InputCreateAPIKey
- type InputCreateSubuser
- type InputGetAuthenticatedDomains
- type InputGetDefaultAuthentication
- type InputGetSubusers
- type InputInviteTeammate
- type InputUpdateAPIKeyName
- type InputUpdateAPIKeyNameAndScopes
- type InputUpdateDomainAuthentication
- type InputUpdateSubuserStatus
- type InputUpdateTeammatePermissions
- type Option
- type OutputAddIPToAuthenticatedDomain
- type OutputAssociateAuthenticatedDomainWithSubuser
- type OutputAuthenticateDomain
- type OutputCreateAPIKey
- type OutputCreateSubuser
- type OutputGetAPIKey
- type OutputGetAPIKeys
- type OutputGetAuthenticatedDomain
- type OutputGetAuthenticatedDomainAssociatedWithSubuser
- type OutputGetDefaultAuthentication
- type OutputGetPendingTeammates
- type OutputGetTeammate
- type OutputGetTeammates
- type OutputInviteTeammate
- type OutputUpdateAPIKeyName
- type OutputUpdateAPIKeyNameAndScopes
- type OutputUpdateDomainAuthentication
- type OutputUpdateTeammatePermissions
- type OutputValidateDomainAuthentication
- type PendingTeammate
- type Record
- type Reputation
- type Subuser
- type SubuserSenderAuthentication
- type Teammate
- type ValidationResult
- type ValidationResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func OptionBaseURL ¶
OptionBaseURL - provide a custom base url to the sendgrid client.
func OptionDebug ¶
OptionDebug enable debugging for the client
func OptionHTTPClient ¶
func OptionHTTPClient(client httpClient) func(*Client)
OptionHTTPClient - provide a custom http client to the sendgrid client.
func OptionSubuser ¶
OptionBaseURL - provide a custom base url to the sendgrid client.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client : sendgrid client
func (*Client) AddIPToAuthenticatedDomain ¶ added in v0.0.6
func (c *Client) AddIPToAuthenticatedDomain(ctx context.Context, domainId int64, input *InputAddIPToAuthenticatedDomain) (*OutputAddIPToAuthenticatedDomain, error)
NOTE: The 'dns' key in the API response for adding an IP to the authenticated domain is different from what is documented. see: https://docs.sendgrid.com/api-reference/domain-authentication/add-an-ip-to-an-authenticated-domain#responses
func (*Client) AddOptions ¶
AddOptions adds the parameters in opt as URL query parameters to s. opt must be a struct whose fields may contain "url" tags.
func (*Client) AssociateAuthenticatedDomainWithSubuser ¶ added in v0.0.6
func (c *Client) AssociateAuthenticatedDomainWithSubuser(ctx context.Context, domainId int64, input *InputAssociateAuthenticatedDomainWithSubuser) (*OutputAssociateAuthenticatedDomainWithSubuser, error)
func (*Client) AuthenticateDomain ¶ added in v0.0.6
func (c *Client) AuthenticateDomain(ctx context.Context, input *InputAuthenticateDomain) (*OutputAuthenticateDomain, error)
func (*Client) CreateAPIKey ¶ added in v0.0.2
func (c *Client) CreateAPIKey(ctx context.Context, input *InputCreateAPIKey) (*OutputCreateAPIKey, error)
func (*Client) CreateSubuser ¶ added in v0.0.3
func (c *Client) CreateSubuser(ctx context.Context, input *InputCreateSubuser) (*OutputCreateSubuser, error)
func (*Client) DeleteAPIKey ¶ added in v0.0.2
func (*Client) DeleteAuthenticatedDomain ¶ added in v0.0.6
func (*Client) DeletePendingTeammate ¶
func (*Client) DeleteSubuser ¶ added in v0.0.3
func (*Client) DeleteTeammate ¶
func (*Client) DisassociateAuthenticatedDomainFromSubuser ¶ added in v0.0.6
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it. If rate limit is exceeded and reset time is in the future, Do returns *RateLimitError immediately without making a network API call.
The provided ctx must be non-nil, if it is nil an error is returned. If it is canceled or times out, ctx.Err() will be returned.
func (*Client) GetAPIKeys ¶ added in v0.0.2
func (c *Client) GetAPIKeys(ctx context.Context) (*OutputGetAPIKeys, error)
func (*Client) GetAuthenticatedDomain ¶ added in v0.0.6
func (*Client) GetAuthenticatedDomainAssociatedWithSubuser ¶ added in v0.0.6
func (*Client) GetAuthenticatedDomains ¶ added in v0.0.6
func (c *Client) GetAuthenticatedDomains(ctx context.Context, input *InputGetAuthenticatedDomains) ([]*DomainAuthentication, error)
func (*Client) GetDefaultAuthentication ¶ added in v0.0.6
func (c *Client) GetDefaultAuthentication(ctx context.Context, input *InputGetDefaultAuthentication) (*OutputGetDefaultAuthentication, error)
func (*Client) GetPendingTeammates ¶
func (c *Client) GetPendingTeammates(ctx context.Context) (*OutputGetPendingTeammates, error)
func (*Client) GetSubuserReputations ¶ added in v0.0.3
func (*Client) GetSubusers ¶ added in v0.0.3
func (*Client) GetTeammate ¶
func (*Client) GetTeammates ¶
func (c *Client) GetTeammates(ctx context.Context) (*OutputGetTeammates, error)
func (*Client) InviteTeammate ¶
func (c *Client) InviteTeammate(ctx context.Context, input *InputInviteTeammate) (*OutputInviteTeammate, error)
func (*Client) NewRequest ¶
NewRequest creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the BaseURL of the Client. Relative URLs should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.
func (*Client) RemoveIPFromAuthenticatedDomain ¶ added in v0.0.6
func (c *Client) RemoveIPFromAuthenticatedDomain(ctx context.Context, domainId int64, ip string) error
NOTE: The 'dns' key in the API response for removing an IP to the authenticated domain is different from what is documented. see: https://docs.sendgrid.com/api-reference/domain-authentication/remove-an-ip-from-an-authenticated-domain#responses
func (*Client) UpdateAPIKeyName ¶ added in v0.0.2
func (c *Client) UpdateAPIKeyName(ctx context.Context, apiKeyId string, input *InputUpdateAPIKeyName) (*OutputUpdateAPIKeyName, error)
func (*Client) UpdateAPIKeyNameAndScopes ¶ added in v0.0.2
func (c *Client) UpdateAPIKeyNameAndScopes(ctx context.Context, apiKeyId string, input *InputUpdateAPIKeyNameAndScopes) (*OutputUpdateAPIKeyNameAndScopes, error)
func (*Client) UpdateDomainAuthentication ¶ added in v0.0.6
func (c *Client) UpdateDomainAuthentication(ctx context.Context, domainId int64, input *InputUpdateDomainAuthentication) (*OutputUpdateDomainAuthentication, error)
func (*Client) UpdateSubuserIps ¶ added in v0.0.3
func (*Client) UpdateSubuserStatus ¶ added in v0.0.3
func (*Client) UpdateTeammatePermissions ¶
func (c *Client) UpdateTeammatePermissions(ctx context.Context, username string, input *InputUpdateTeammatePermissions) (*OutputUpdateTeammatePermissions, error)
func (*Client) ValidateDomainAuthentication ¶ added in v0.0.6
type CreditAllocation ¶ added in v0.0.3
type CreditAllocation struct {
Type string `json:"type"`
}
type DomainAuthentication ¶ added in v0.0.6
type DomainAuthentication struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
Subusers []SubuserSenderAuthentication `json:"subusers,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type Error ¶
type Error struct {
Field *string `json:"field,omitempty"`
Message *string `json:"message,omitempty"`
}
Error is sendgrid error
type ErrorResponse ¶
type ErrorResponse struct {
Errors []*Error `json:"errors"`
}
ErrorResponse is sendgrid error response
type InputAddIPToAuthenticatedDomain ¶ added in v0.0.6
type InputAddIPToAuthenticatedDomain struct {
IP string `json:"ip,omitempty"`
}
type InputAssociateAuthenticatedDomainWithSubuser ¶ added in v0.0.6
type InputAssociateAuthenticatedDomainWithSubuser struct {
Username string `json:"username,omitempty"`
}
type InputAuthenticateDomain ¶ added in v0.0.6
type InputAuthenticateDomain struct {
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
CustomDkimSelector string `json:"custom_dkim_selector,omitempty"`
}
type InputCreateAPIKey ¶ added in v0.0.2
type InputCreateSubuser ¶ added in v0.0.3
type InputGetAuthenticatedDomains ¶ added in v0.0.6
type InputGetDefaultAuthentication ¶ added in v0.0.6
type InputGetDefaultAuthentication struct {
Domain string
}
type InputGetSubusers ¶ added in v0.0.3
type InputInviteTeammate ¶
type InputUpdateAPIKeyName ¶ added in v0.0.2
type InputUpdateAPIKeyName struct {
Name string `json:"name"`
}
type InputUpdateAPIKeyNameAndScopes ¶ added in v0.0.2
type InputUpdateDomainAuthentication ¶ added in v0.0.6
type InputUpdateSubuserStatus ¶ added in v0.0.3
type InputUpdateSubuserStatus struct {
Disabled bool `json:"disabled"`
}
type OutputAddIPToAuthenticatedDomain ¶ added in v0.0.6
type OutputAddIPToAuthenticatedDomain struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type OutputAssociateAuthenticatedDomainWithSubuser ¶ added in v0.0.6
type OutputAssociateAuthenticatedDomainWithSubuser struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type OutputAuthenticateDomain ¶ added in v0.0.6
type OutputAuthenticateDomain struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
}
type OutputCreateAPIKey ¶ added in v0.0.2
type OutputCreateSubuser ¶ added in v0.0.3
type OutputGetAPIKey ¶ added in v0.0.2
type OutputGetAPIKeys ¶ added in v0.0.2
type OutputGetAPIKeys struct {
APIKeys []APIKey `json:"result,omitempty"`
}
type OutputGetAuthenticatedDomain ¶ added in v0.0.6
type OutputGetAuthenticatedDomain struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
}
type OutputGetAuthenticatedDomainAssociatedWithSubuser ¶ added in v0.0.6
type OutputGetAuthenticatedDomainAssociatedWithSubuser struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type OutputGetDefaultAuthentication ¶ added in v0.0.6
type OutputGetDefaultAuthentication struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
Subusers []SubuserSenderAuthentication `json:"subusers,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type OutputGetPendingTeammates ¶
type OutputGetPendingTeammates struct {
PendingTeammates []PendingTeammate `json:"result,omitempty"`
}
type OutputGetTeammate ¶
type OutputGetTeammate struct {
Username string `json:"username,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Email string `json:"email,omitempty"`
Scopes []string `json:"scopes,omitempty"`
UserType string `json:"user_type,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
Phone string `json:"phone,omitempty"`
Website string `json:"website,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type OutputGetTeammates ¶
type OutputGetTeammates struct {
Teammates []Teammate `json:"result,omitempty"`
}
type OutputInviteTeammate ¶
type OutputUpdateAPIKeyName ¶ added in v0.0.2
type OutputUpdateAPIKeyNameAndScopes ¶ added in v0.0.2
type OutputUpdateDomainAuthentication ¶ added in v0.0.6
type OutputUpdateDomainAuthentication struct {
ID int64 `json:"id,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Username string `json:"username,omitempty"`
IPs []string `json:"ips,omitempty"`
CustomSpf bool `json:"custom_spf,omitempty"`
Default bool `json:"default,omitempty"`
Legacy bool `json:"legacy,omitempty"`
AutomaticSecurity bool `json:"automatic_security,omitempty"`
Valid bool `json:"valid,omitempty"`
DNS DNS `json:"dns,omitempty"`
Subusers []SubuserSenderAuthentication `json:"subusers,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
}
type OutputUpdateTeammatePermissions ¶
type OutputUpdateTeammatePermissions struct {
Username string `json:"username,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Email string `json:"email,omitempty"`
Scopes []string `json:"scopes,omitempty"`
UserType string `json:"user_type,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
Phone string `json:"phone,omitempty"`
Website string `json:"website,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type OutputValidateDomainAuthentication ¶ added in v0.0.6
type OutputValidateDomainAuthentication struct {
ID int64 `json:"id,omitempty"`
Valid bool `json:"valid,omitempty"`
ValidationResults ValidationResults `json:"validation_results,omitempty"`
}
type PendingTeammate ¶
type Reputation ¶ added in v0.0.3
type SubuserSenderAuthentication ¶ added in v0.0.6
type Teammate ¶
type Teammate struct {
Username string `json:"username,omitempty"`
Email string `json:"email,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
UserType string `json:"user_type,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
Phone string `json:"phone,omitempty"`
Website string `json:"website,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type ValidationResult ¶ added in v0.0.6
type ValidationResults ¶ added in v0.0.6
type ValidationResults struct {
MailCname ValidationResult `json:"mail_cname,omitempty"`
Dkim1 ValidationResult `json:"dkim1,omitempty"`
Dkim2 ValidationResult `json:"dkim2,omitempty"`
SPF ValidationResult `json:"spf,omitempty"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
add_ip_to_authenticated_domain
command
|
|
|
authenticate_domain
command
|
|
|
create_api_key
command
|
|
|
create_subuser
command
|
|
|
delete_api_key
command
|
|
|
delete_pending_teammate
command
|
|
|
delete_subuser
command
|
|
|
delete_teammate
command
|
|
|
get_api_key
command
|
|
|
get_api_keys
command
|
|
|
get_authenticated_domain
command
|
|
|
get_authenticated_domains
command
|
|
|
get_default_authentication
command
|
|
|
get_subuser_reputation
command
|
|
|
get_subusers
command
|
|
|
get_teammate
command
|
|
|
get_teammates
command
|
|
|
invite_teammate
command
|
|
|
pending_teammates
command
|
|
|
update_api_key_name
command
|
|
|
update_api_key_name_and_scopes
command
|
|
|
update_domain_authentication
command
|
|
|
update_subuser
command
|
|
|
update_teammate_permissions
command
|
|
|
validate_domain_authentication
command
|