Documentation
¶
Index ¶
- Constants
- 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 ARecord
- type ARecordValidationResults
- type ASM
- type ASMSuppressionGroup
- type AccessActivity
- type Alert
- type AllowListIP
- type AllowedIP
- type AssignedIPAddress
- type Attachment
- type Block
- type Bounce
- type BounceClassificationDomainStat
- type BounceClassificationDomainStatsByDate
- type BounceClassificationStat
- type BounceClassificationsByDate
- type BrandedLink
- type CategoryStat
- type ClickTrackingSetting
- type Client
- func (c *Client) ActivateTemplateVersion(ctx context.Context, templateID, versionID string) (*OutputActivateTemplateVersion, error)
- func (c *Client) AddIPToAuthenticatedDomain(ctx context.Context, domainId int64, input *InputAddIPToAuthenticatedDomain) (*OutputAddIPToAuthenticatedDomain, error)
- func (c *Client) AddIPToPool(ctx context.Context, poolName string, input *InputAddIPToPool) (*OutputAddIPToPool, error)
- func (c *Client) AddIPsToAllowList(ctx context.Context, input *InputAddIPsToAllowList) (*OutputAddIPsToAllowList, error)
- func (c *Client) AddOptions(s string, opts interface{}) (string, error)
- func (c *Client) AddOrUpdateContacts(ctx context.Context, input *InputAddOrUpdateContacts) (*OutputAddOrUpdateContacts, error)
- func (c *Client) AddRecipientAddressesToGlobalSuppressions(ctx context.Context, input *InputAddRecipientAddressesToGlobalSuppressions) (*OutputAddRecipientAddressesToGlobalSuppressions, error)
- func (c *Client) AddRecipientToLegacyList(ctx context.Context, listID int64, recipientID string) error
- func (c *Client) AddRecipientsToLegacyList(ctx context.Context, id int64, input *InputAddRecipientsToLegacyList) error
- func (c *Client) AddSendIP(ctx context.Context, input *InputAddSendIP) (*OutputAddSendIP, error)
- func (c *Client) AddSuppressionsToGroup(ctx context.Context, groupID int64, input *InputAddSuppressionsToGroup) (*OutputAddSuppressionsToGroup, error)
- func (c *Client) AssociateAuthenticatedDomainWithSubuser(ctx context.Context, domainId int64, ...) (*OutputAssociateAuthenticatedDomainWithSubuser, error)
- func (c *Client) AssociateAuthenticatedDomainWithSubuserMultiple(ctx context.Context, domainId int64, ...) (*OutputAssociateAuthenticatedDomainWithSubuserMultiple, error)
- func (c *Client) AssociateBrandedLinkWithSubuser(ctx context.Context, id int64, input *InputAssociateBrandedLinkWithSubuser) (*OutputAssociateBrandedLinkWithSubuser, error)
- func (c *Client) AuthenticateDomain(ctx context.Context, input *InputAuthenticateDomain) (*OutputAuthenticateDomain, error)
- func (c *Client) BatchAddSendIPPoolIPs(ctx context.Context, poolID string, input *InputBatchAddSendIPPoolIPs) (*OutputBatchAddSendIPPoolIPs, error)
- func (c *Client) BatchAddSendIPSubusers(ctx context.Context, ip string, input *InputBatchAddSendIPSubusers) (*OutputBatchAddSendIPSubusers, error)
- func (c *Client) BatchDeleteSendIPPoolIPs(ctx context.Context, poolID string, input *InputBatchDeleteSendIPPoolIPs) (*OutputBatchDeleteSendIPPoolIPs, error)
- func (c *Client) BatchDeleteSendIPSubusers(ctx context.Context, ip string, input *InputBatchDeleteSendIPSubusers) (*OutputBatchDeleteSendIPSubusers, error)
- func (c *Client) CancelOrPauseScheduledSend(ctx context.Context, batchID string) (*OutputCancelOrPauseScheduledSend, error)
- func (c *Client) CompletedStepsVerifiedSender(ctx context.Context) (*CompletedStepsVerifiedSender, error)
- func (c *Client) CreateAPIKey(ctx context.Context, input *InputCreateAPIKey) (*OutputCreateAPIKey, error)
- func (c *Client) CreateAlert(ctx context.Context, input *InputCreateAlert) (*OutputCreateAlert, error)
- func (c *Client) CreateBatchID(ctx context.Context) (*OutputCreateBatchID, error)
- func (c *Client) CreateBrandedLink(ctx context.Context, input *InputCreateBrandedLink) (*OutputCreateBrandedLink, error)
- func (c *Client) CreateDesign(ctx context.Context, input *InputCreateDesign) (*OutputCreateDesign, error)
- func (c *Client) CreateEventWebhook(ctx context.Context, input *InputCreateEventWebhook) (*OutputCreateEventWebhook, error)
- func (c *Client) CreateIPPool(ctx context.Context, input *InputCreateIPPool) (*OutputCreateIPPool, error)
- func (c *Client) CreateInboundParseWebhook(ctx context.Context, input *InputCreateInboundParseWebhook) (*OutputCreateInboundParseWebhook, error)
- func (c *Client) CreateLegacyCampaign(ctx context.Context, input *InputCreateLegacyCampaign) (*OutputCreateLegacyCampaign, error)
- func (c *Client) CreateLegacyList(ctx context.Context, input *InputCreateLegacyList) (*OutputCreateLegacyList, error)
- func (c *Client) CreateLegacySegment(ctx context.Context, input *InputCreateLegacySegment) (*OutputCreateLegacySegment, error)
- func (c *Client) CreateLegacySender(ctx context.Context, input *InputCreateLegacySender) (*OutputCreateLegacySender, error)
- func (c *Client) CreateMarketingSender(ctx context.Context, input *InputCreateMarketingSender) (*OutputCreateMarketingSender, error)
- func (c *Client) CreateReverseDNS(ctx context.Context, input *InputCreateReverseDNS) (*OutputCreateReverseDNS, error)
- func (c *Client) CreateSSOCertificate(ctx context.Context, input *InputCreateSSOCertificate) (*OutputCreateSSOCertificate, error)
- func (c *Client) CreateSSOIntegration(ctx context.Context, input *InputCreateSSOIntegration) (*OutputCreateSSOIntegration, error)
- func (c *Client) CreateSSOTeammate(ctx context.Context, input *InputCreateSSOTeammate) (*OutputCreateSSOTeammate, error)
- func (c *Client) CreateSendIPPool(ctx context.Context, input *InputCreateSendIPPool) (*OutputCreateSendIPPool, error)
- func (c *Client) CreateSubuser(ctx context.Context, input *InputCreateSubuser) (*OutputCreateSubuser, error)
- func (c *Client) CreateSuppressionGroup(ctx context.Context, input *InputCreateSuppressionGroup) (*OutputCreateSuppressionGroup, error)
- func (c *Client) CreateTemplate(ctx context.Context, input *InputCreateTemplate) (*OutputCreateTemplate, error)
- func (c *Client) CreateTemplateVersion(ctx context.Context, templateID string, input *InputCreateTemplateVersion) (*OutputCreateTemplateVersion, error)
- func (c *Client) CreateVerifiedSenderRequest(ctx context.Context, input *InputCreateVerifiedSenderRequest) (*OutputCreateVerifiedSenderRequest, error)
- func (c *Client) CreateWebhookSecurityPolicy(ctx context.Context, input *InputCreateWebhookSecurityPolicy) (*OutputCreateWebhookSecurityPolicy, 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) DeleteAlert(ctx context.Context, id int64) error
- func (c *Client) DeleteAuthenticatedDomain(ctx context.Context, domainId int64) error
- func (c *Client) DeleteBlock(ctx context.Context, email string) error
- func (c *Client) DeleteBlocks(ctx context.Context, input *InputDeleteSuppressions) error
- func (c *Client) DeleteBounce(ctx context.Context, email string) error
- func (c *Client) DeleteBounces(ctx context.Context, input *InputDeleteSuppressions) error
- func (c *Client) DeleteBrandedLink(ctx context.Context, id int64) error
- func (c *Client) DeleteContactIdentifier(ctx context.Context, contactID string, input *InputDeleteContactIdentifier) (*OutputDeleteContactIdentifier, error)
- func (c *Client) DeleteContacts(ctx context.Context, input *InputDeleteContacts) (*OutputDeleteContacts, error)
- func (c *Client) DeleteDesign(ctx context.Context, id string) error
- func (c *Client) DeleteEventWebhook(ctx context.Context, id string) error
- func (c *Client) DeleteGlobalSuppression(ctx context.Context, email string) error
- func (c *Client) DeleteIPPool(ctx context.Context, name string) error
- func (c *Client) DeleteInboundParseWebhook(ctx context.Context, hostname string) error
- func (c *Client) DeleteInvalidEmail(ctx context.Context, email string) error
- func (c *Client) DeleteInvalidEmails(ctx context.Context, input *InputDeleteSuppressions) error
- func (c *Client) DeleteLegacyCampaign(ctx context.Context, id int64) error
- func (c *Client) DeleteLegacyCampaignSchedule(ctx context.Context, id int64) error
- func (c *Client) DeleteLegacyList(ctx context.Context, id int64, opts *InputDeleteLegacyList) error
- func (c *Client) DeleteLegacyLists(ctx context.Context, input *InputDeleteLegacyLists) error
- func (c *Client) DeleteLegacySegment(ctx context.Context, id int64) error
- func (c *Client) DeleteLegacySender(ctx context.Context, id int64) error
- func (c *Client) DeleteMarketingSender(ctx context.Context, id int64) error
- func (c *Client) DeletePendingTeammate(ctx context.Context, token string) error
- func (c *Client) DeleteReverseDNS(ctx context.Context, id int64) error
- func (c *Client) DeleteSSOCertificate(ctx context.Context, id int64) error
- func (c *Client) DeleteSSOIntegration(ctx context.Context, id string) error
- func (c *Client) DeleteScheduledSend(ctx context.Context, batchID string) error
- func (c *Client) DeleteSendIPPool(ctx context.Context, poolID string) error
- func (c *Client) DeleteSpamReport(ctx context.Context, email string) error
- func (c *Client) DeleteSpamReports(ctx context.Context, input *InputDeleteSuppressions) error
- func (c *Client) DeleteSubuser(ctx context.Context, username string) error
- func (c *Client) DeleteSuppressionFromGroup(ctx context.Context, groupID, email string) error
- func (c *Client) DeleteSuppressionGroup(ctx context.Context, id int64) error
- func (c *Client) DeleteTeammate(ctx context.Context, username string) error
- func (c *Client) DeleteTemplate(ctx context.Context, id string) error
- func (c *Client) DeleteTemplateVersion(ctx context.Context, templateID, versionID string) error
- func (c *Client) DeleteVerifiedSender(ctx context.Context, id int64) error
- func (c *Client) DeleteWebhookSecurityPolicy(ctx context.Context, id string) error
- func (c *Client) DisassociateAuthenticatedDomainFromSubuser(ctx context.Context, subuserName string) error
- func (c *Client) DisassociateBrandedLinkWithSubuser(ctx context.Context, username string) error
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error
- func (c *Client) DuplicateDesign(ctx context.Context, id string, input *InputDuplicateDesign) (*OutputDuplicateDesign, error)
- func (c *Client) DuplicatePreBuiltDesign(ctx context.Context, id string, input *InputDuplicatePreBuiltDesign) (*OutputDuplicatePreBuiltDesign, error)
- func (c *Client) DuplicateTemplate(ctx context.Context, id string, input *InputDuplicateTemplate) (*OutputDuplicateTemplate, error)
- func (c *Client) EmailDNSRecordsToCoworker(ctx context.Context, input *InputEmailDNSRecordsToCoworker) error
- func (c *Client) ExportContacts(ctx context.Context, input *InputExportContacts) (*OutputExportContacts, error)
- func (c *Client) GetAPIKey(ctx context.Context, apiKeyId string) (*OutputGetAPIKey, error)
- func (c *Client) GetAPIKeys(ctx context.Context) (*OutputGetAPIKeys, error)
- func (c *Client) GetAccessActivities(ctx context.Context, input *InputGetAccessActivities) (*OutputGetAccessActivities, error)
- func (c *Client) GetAddressWhitelistMailSettings(ctx context.Context) (*OutputGetAddressWhitelistMailSettings, error)
- func (c *Client) GetAlert(ctx context.Context, id int64) (*OutputGetAlert, error)
- func (c *Client) GetAlerts(ctx context.Context) ([]*Alert, error)
- func (c *Client) GetAllAuthenticatedDomainsAssociatedWithSubuser(ctx context.Context, subuserName string) ([]*DomainAuthentication, error)
- func (c *Client) GetAllExistingExports(ctx context.Context) (*OutputGetAllExistingExports, error)
- func (c *Client) GetAllIPWarmup(ctx context.Context) ([]*IPWarmup, error)
- func (c *Client) GetAllowedIP(ctx context.Context, ruleID int64) (*OutputGetAllowedIP, error)
- func (c *Client) GetAllowedIPs(ctx context.Context) (*OutputGetAllowedIPs, error)
- func (c *Client) GetAssignedIPAddresses(ctx context.Context) ([]*AssignedIPAddress, 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) GetBatchedContactsByIDs(ctx context.Context, input *InputGetBatchedContactsByIDs) (*OutputGetBatchedContactsByIDs, error)
- func (c *Client) GetBlock(ctx context.Context, email string) (*Block, error)
- func (c *Client) GetBlocks(ctx context.Context, opts *SuppressionListOptions) ([]Block, error)
- func (c *Client) GetBounce(ctx context.Context, email string) (*Bounce, error)
- func (c *Client) GetBounceClassifications(ctx context.Context, opts *InputGetBounceClassifications) (*OutputGetBounceClassifications, error)
- func (c *Client) GetBounceClassificationsByDomain(ctx context.Context, classification string, ...) (*OutputGetBounceClassificationsByDomain, error)
- func (c *Client) GetBounceSettings(ctx context.Context) (*OutputGetBounceSettings, error)
- func (c *Client) GetBounces(ctx context.Context, opts *SuppressionListOptions) ([]Bounce, error)
- func (c *Client) GetBrandedLink(ctx context.Context, id int64) (*OutputGetBrandedLink, error)
- func (c *Client) GetBrandedLinks(ctx context.Context, input *InputGetBrandedLinks) ([]*BrandedLink, error)
- func (c *Client) GetCategoryStats(ctx context.Context, categories []string, opts *StatsOptions) ([]CategoryStat, error)
- func (c *Client) GetCategorySums(ctx context.Context, opts *StatsOptions) ([]CategoryStat, error)
- func (c *Client) GetClickTrackingSettings(ctx context.Context) (*OutputGetClickTrackingSettings, error)
- func (c *Client) GetContact(ctx context.Context, id string) (*OutputGetContact, error)
- func (c *Client) GetContactsByEmails(ctx context.Context, input *InputGetContactsByEmails) (*OutputGetContactsByEmails, error)
- func (c *Client) GetContactsByIdentifiers(ctx context.Context, identifierType string, ...) (*OutputGetContactsByIdentifiers, error)
- func (c *Client) GetCreditsForSubuser(ctx context.Context, username string) (*OutputGetCreditsForSubuser, error)
- func (c *Client) GetDefaultAuthentication(ctx context.Context, input *InputGetDefaultAuthentication) (*OutputGetDefaultAuthentication, error)
- func (c *Client) GetDefaultBrandedLink(ctx context.Context) (*OutputGetDefaultBrandedLink, error)
- func (c *Client) GetDesign(ctx context.Context, id string) (*OutputGetDesign, error)
- func (c *Client) GetDesigns(ctx context.Context, input *InputGetDesigns) (*OutputGetDesigns, error)
- func (c *Client) GetEnforceTLS(ctx context.Context) (*OutputGetEnforceTLS, error)
- func (c *Client) GetEngagementQualityScores(ctx context.Context, input *InputGetEngagementQualityScores) (*OutputGetEngagementQualityScores, error)
- func (c *Client) GetEventWebhook(ctx context.Context, id string) (*OutputGetEventWebhook, error)
- func (c *Client) GetEventWebhooks(ctx context.Context) (*OutputGetEventWebhooks, error)
- func (c *Client) GetExportContactsStatus(ctx context.Context, id string) (*OutputGetExportContactsStatus, error)
- func (c *Client) GetFooterMailSettings(ctx context.Context) (*OutputGetFooterMailSettings, error)
- func (c *Client) GetForwardBounceMailSettings(ctx context.Context) (*OutputGetForwardBounceMailSettings, error)
- func (c *Client) GetForwardSpamMailSettings(ctx context.Context) (*OutputGetForwardSpamMailSettings, error)
- func (c *Client) GetGlobalStats(ctx context.Context, opts *StatsOptions) ([]GlobalStat, error)
- func (c *Client) GetGlobalSuppression(ctx context.Context, email string) (*OutputGetGlobalSuppression, error)
- func (c *Client) GetGlobalSuppressions(ctx context.Context, input *InputGetGlobalSuppressions) ([]*GlobalUnsubscribe, error)
- func (c *Client) GetGoogleAnalyticsSettings(ctx context.Context) (*OutputGetGoogleAnalyticsSettings, error)
- func (c *Client) GetIPAddress(ctx context.Context, ip string) (*OutputGetIPAddress, error)
- func (c *Client) GetIPAddresses(ctx context.Context, input *InputGetIPAddresses) ([]*IPAddress, error)
- func (c *Client) GetIPPool(ctx context.Context, name string) (*OutputGetIPPool, error)
- func (c *Client) GetIPPools(ctx context.Context) ([]*IPPool, error)
- func (c *Client) GetIPWarmupStatus(ctx context.Context, ip string) ([]*IPWarmup, error)
- func (c *Client) GetImportContactsStatus(ctx context.Context, id string) (*OutputGetImportContactsStatus, error)
- func (c *Client) GetInboundParseWebhook(ctx context.Context, hostname string) (*OutputGetInboundParseWebhook, error)
- func (c *Client) GetInboundParseWebhooks(ctx context.Context) ([]*InboundParseWebhook, error)
- func (c *Client) GetInvalidEmail(ctx context.Context, email string) (*InvalidEmail, error)
- func (c *Client) GetInvalidEmails(ctx context.Context, opts *SuppressionListOptions) ([]InvalidEmail, error)
- func (c *Client) GetLegacyCampaign(ctx context.Context, id int64) (*OutputGetLegacyCampaign, error)
- func (c *Client) GetLegacyCampaignSchedule(ctx context.Context, id int64) (*OutputGetLegacyCampaignSchedule, error)
- func (c *Client) GetLegacyCampaigns(ctx context.Context, opts *InputGetLegacyCampaigns) (*OutputGetLegacyCampaigns, error)
- func (c *Client) GetLegacyList(ctx context.Context, id int64) (*OutputGetLegacyList, error)
- func (c *Client) GetLegacyListRecipients(ctx context.Context, id int64, opts *InputGetLegacyListRecipients) (*OutputGetLegacyListRecipients, error)
- func (c *Client) GetLegacyLists(ctx context.Context) (*OutputGetLegacyLists, error)
- func (c *Client) GetLegacySegment(ctx context.Context, id int64) (*OutputGetLegacySegment, error)
- func (c *Client) GetLegacySegmentRecipients(ctx context.Context, id int64, opts *InputGetLegacySegmentRecipients) (*OutputGetLegacySegmentRecipients, error)
- func (c *Client) GetLegacySegments(ctx context.Context) (*OutputGetLegacySegments, error)
- func (c *Client) GetLegacySender(ctx context.Context, id int64) (*OutputGetLegacySender, error)
- func (c *Client) GetLegacySenders(ctx context.Context) ([]*LegacySender, error)
- func (c *Client) GetMailSettings(ctx context.Context, input *InputGetMailSettings) (*OutputGetMailSettings, error)
- func (c *Client) GetMarketingSender(ctx context.Context, id int64) (*OutputGetMarketingSender, error)
- func (c *Client) GetMarketingSenders(ctx context.Context) ([]*MarketingSender, error)
- func (c *Client) GetOpenTrackingSettings(ctx context.Context) (*OutputGetOpenTrackingSettings, error)
- func (c *Client) GetPartnerSettings(ctx context.Context, input *InputGetPartnerSettings) (*OutputGetPartnerSettings, error)
- func (c *Client) GetPendingTeammates(ctx context.Context) (*OutputGetPendingTeammates, error)
- func (c *Client) GetPreBuiltDesign(ctx context.Context, id string) (*OutputGetPreBuiltDesign, error)
- func (c *Client) GetPreBuiltDesigns(ctx context.Context, input *InputGetPreBuiltDesigns) (*OutputGetPreBuiltDesigns, error)
- func (c *Client) GetRemainingIPCount(ctx context.Context) (*OutputGetRemainingIPCount, error)
- func (c *Client) GetReverseDNS(ctx context.Context, id int64) (*OutputGetReverseDNS, error)
- func (c *Client) GetReverseDNSs(ctx context.Context, input *InputGetReverseDNSs) ([]*OutputGetReverseDNS, error)
- func (c *Client) GetSSOCertificate(ctx context.Context, id int64) (*OutputGetSSOCertificate, error)
- func (c *Client) GetSSOCertificates(ctx context.Context, integrationID string) ([]*SSOCertificate, error)
- func (c *Client) GetSSOIntegration(ctx context.Context, id string) (*OutputGetSSOIntegration, error)
- func (c *Client) GetSSOIntegrations(ctx context.Context, input *InputGetSSOIntegrations) ([]*SSOIntegration, error)
- func (c *Client) GetSampleContacts(ctx context.Context) (*OutputGetSampleContacts, error)
- func (c *Client) GetScheduledSend(ctx context.Context, batchID string) (*OutputGetScheduledSend, error)
- func (c *Client) GetScheduledSends(ctx context.Context) ([]*ScheduledSend, error)
- func (c *Client) GetScopes(ctx context.Context) (*OutputGetScopes, error)
- func (c *Client) GetSendIP(ctx context.Context, ip string) (*OutputGetSendIP, error)
- func (c *Client) GetSendIPPool(ctx context.Context, poolID string) (*OutputGetSendIPPool, error)
- func (c *Client) GetSendIPPoolIPs(ctx context.Context, poolID string, opts *InputGetSendIPPoolIPs) (*OutputGetSendIPPoolIPs, error)
- func (c *Client) GetSendIPPools(ctx context.Context, opts *InputGetSendIPPools) (*OutputGetSendIPPools, error)
- func (c *Client) GetSendIPSubusers(ctx context.Context, ip string, opts *InputGetSendIPSubusers) (*OutputGetSendIPSubusers, error)
- func (c *Client) GetSendIPs(ctx context.Context, opts *InputGetSendIPs) (*OutputGetSendIPs, error)
- func (c *Client) GetSenderVerificationDomainWarnList(ctx context.Context) (*CompletedStepsVerifiedSender, error)
- func (c *Client) GetSignedEventWebhooksPublicKey(ctx context.Context, id string) (*OutputGetSignedEventWebhooksPublicKey, error)
- func (c *Client) GetSpamReport(ctx context.Context, email string) (*SpamReport, error)
- func (c *Client) GetSpamReports(ctx context.Context, opts *SuppressionListOptions) ([]SpamReport, error)
- func (c *Client) GetSubscriptionTrackingSettings(ctx context.Context) (*OutputGetSubscriptionTrackingSettings, error)
- func (c *Client) GetSubuser(ctx context.Context, username string) (*Subuser, error)
- func (c *Client) GetSubuserBrandedLink(ctx context.Context, subuser string) (*OutputGetSubuserBrandedLink, error)
- func (c *Client) GetSubuserEngagementQualityScores(ctx context.Context, input *InputGetSubuserEngagementQualityScores) (*OutputGetSubuserEngagementQualityScores, error)
- func (c *Client) GetSubuserMonthlyStats(ctx context.Context, opts *StatsOptions) ([]SubuserStat, error)
- func (c *Client) GetSubuserReputations(ctx context.Context, usernames string) ([]*Reputation, error)
- func (c *Client) GetSubuserStats(ctx context.Context, subusers []string, opts *StatsOptions) ([]SubuserStat, error)
- func (c *Client) GetSubuserSums(ctx context.Context, opts *StatsOptions) ([]SubuserStat, error)
- func (c *Client) GetSubusers(ctx context.Context, input *InputGetSubusers) ([]*Subuser, error)
- func (c *Client) GetSuppressionGroup(ctx context.Context, id int64) (*SuppressionGroup, error)
- func (c *Client) GetSuppressionGroups(ctx context.Context) ([]*SuppressionGroup, error)
- func (c *Client) GetSuppressionGroupsByEmail(ctx context.Context, email string) (*OutputGetSuppressionGroupsByEmail, error)
- func (c *Client) GetSuppressions(ctx context.Context) ([]*Suppression, error)
- func (c *Client) GetSuppressionsForSuppressionGroup(ctx context.Context, groupID string) ([]string, error)
- func (c *Client) GetTeammate(ctx context.Context, username string) (*OutputGetTeammate, error)
- func (c *Client) GetTeammateSubuserAccess(ctx context.Context, teammateName string, input *InputGetTeammateSubuserAccess) (*OutputGetTeammateSubuserAccess, error)
- func (c *Client) GetTeammates(ctx context.Context, input *InputGetTeammates) (*OutputGetTeammates, error)
- func (c *Client) GetTemplate(ctx context.Context, id string) (*OutputGetTemplate, error)
- func (c *Client) GetTemplateMailSettings(ctx context.Context) (*OutputGetTemplateMailSettings, error)
- func (c *Client) GetTemplateVersion(ctx context.Context, templateID, versionID string) (*OutputGetTemplateVersion, error)
- func (c *Client) GetTemplates(ctx context.Context, input *InputGetTemplates) (*OutputGetTemplates, error)
- func (c *Client) GetTotalContactCount(ctx context.Context) (*OutputGetTotalContactCount, error)
- func (c *Client) GetTrackingSettings(ctx context.Context) (*OutputGetTrackingSettings, error)
- func (c *Client) GetUserAccount(ctx context.Context) (*OutputGetUserAccount, error)
- func (c *Client) GetUserCredits(ctx context.Context) (*OutputGetUserCredits, error)
- func (c *Client) GetUserEmail(ctx context.Context) (*OutputGetUserEmail, error)
- func (c *Client) GetUserProfile(ctx context.Context) (*OutputGetUserProfile, error)
- func (c *Client) GetUsername(ctx context.Context) (*OutputGetUsername, error)
- func (c *Client) GetVerifiedSenders(ctx context.Context, input *InputGetVerifiedSenders) ([]*VerifiedSender, error)
- func (c *Client) GetWebhookSecurityPolicies(ctx context.Context) (*OutputGetWebhookSecurityPolicies, error)
- func (c *Client) GetWebhookSecurityPolicy(ctx context.Context, id string) (*OutputGetWebhookSecurityPolicy, error)
- func (c *Client) ImportContacts(ctx context.Context, input *InputImportContacts) (*OutputImportContacts, 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) RemoveIPFromAllowList(ctx context.Context, ruleID int64) error
- func (c *Client) RemoveIPFromAuthenticatedDomain(ctx context.Context, domainId int64, ip string) error
- func (c *Client) RemoveIPFromPool(ctx context.Context, poolName, ip string) error
- func (c *Client) RemoveIPsFromAllowList(ctx context.Context, input *InputRemoveIPsFromAllowList) error
- func (c *Client) RemoveRecipientFromLegacyList(ctx context.Context, listID int64, recipientID string) error
- func (c *Client) ResendLegacySenderVerification(ctx context.Context, id int64) error
- func (c *Client) ResendMarketingSenderVerification(ctx context.Context, id int64) error
- func (c *Client) ResendVerifiedSenderRequest(ctx context.Context, id int64) error
- func (c *Client) ScheduleLegacyCampaign(ctx context.Context, id int64, input *InputScheduleLegacyCampaign) (*OutputScheduleLegacyCampaign, error)
- func (c *Client) SearchContacts(ctx context.Context, input *InputSearchContacts) (*OutputSearchContacts, error)
- func (c *Client) SearchForSuppressionsWithinGroup(ctx context.Context, groupID string, input *InputSearchGroupSuppressions) ([]string, error)
- func (c *Client) SendLegacyCampaignNow(ctx context.Context, id int64) (*OutputSendLegacyCampaignNow, error)
- func (c *Client) SendLegacyCampaignTest(ctx context.Context, id int64, input *InputSendLegacyCampaignTest) error
- func (c *Client) SendMail(ctx context.Context, input *InputSendMail) (*OutputSendMail, error)
- func (c *Client) StartIPWarmup(ctx context.Context, input *InputStartIPWarmup) ([]*IPWarmup, error)
- func (c *Client) StopIPWarmup(ctx context.Context, ip string) error
- func (c *Client) ToggleSignatureVerification(ctx context.Context, id string, input *InputToggleSignatureVerification) (*OutputToggleSignatureVerification, 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) UpdateAddressWhitelistMailSettings(ctx context.Context, input *InputUpdateAddressWhitelistMailSettings) (*OutputUpdateAddressWhitelistMailSettings, error)
- func (c *Client) UpdateAlert(ctx context.Context, id int64, input *InputUpdateAlert) (*OutputUpdateAlert, error)
- func (c *Client) UpdateBounceSettings(ctx context.Context, input *InputUpdateBounceSettings) (*OutputUpdateBounceSettings, error)
- func (c *Client) UpdateBrandedLink(ctx context.Context, id int64, input *InputUpdateBrandedLink) (*OutputUpdateBrandedLink, error)
- func (c *Client) UpdateClickTrackingSettings(ctx context.Context, input *InputUpdateClickTrackingSettings) (*OutputUpdateClickTrackingSettings, error)
- func (c *Client) UpdateCreditsForSubuser(ctx context.Context, username string, input *InputUpdateCreditsForSubuser) (*OutputUpdateCreditsForSubuser, error)
- func (c *Client) UpdateDesign(ctx context.Context, id string, input *InputUpdateDesign) (*OutputUpdateDesign, error)
- func (c *Client) UpdateDomainAuthentication(ctx context.Context, domainId int64, input *InputUpdateDomainAuthentication) (*OutputUpdateDomainAuthentication, error)
- func (c *Client) UpdateEnforceTLS(ctx context.Context, input *InputUpdateEnforceTLS) (*OutputUpdateEnforceTLS, error)
- func (c *Client) UpdateEventWebhook(ctx context.Context, id string, input *InputUpdateEventWebhook) (*OutputUpdateEventWebhook, error)
- func (c *Client) UpdateFooterMailSettings(ctx context.Context, input *InputUpdateFooterMailSettings) (*OutputUpdateFooterMailSettings, error)
- func (c *Client) UpdateForwardBounceMailSettings(ctx context.Context, input *InputUpdateForwardBounceMailSettings) (*OutputUpdateForwardBounceMailSettings, error)
- func (c *Client) UpdateForwardSpamMailSettings(ctx context.Context, input *InputUpdateForwardSpamMailSettings) (*OutputUpdateForwardSpamMailSettings, error)
- func (c *Client) UpdateGoogleAnalyticsSettings(ctx context.Context, input *InputUpdateGoogleAnalyticsSettings) (*OutputUpdateGoogleAnalyticsSettings, error)
- func (c *Client) UpdateIPPool(ctx context.Context, name string, input *InputUpdateIPPool) (*OutputUpdateIPPool, error)
- func (c *Client) UpdateInboundParseWebhook(ctx context.Context, hostname string, input *InputUpdateInboundParseWebhook) (*OutputUpdateInboundParseWebhook, error)
- func (c *Client) UpdateLegacyCampaign(ctx context.Context, id int64, input *InputUpdateLegacyCampaign) (*OutputUpdateLegacyCampaign, error)
- func (c *Client) UpdateLegacyCampaignSchedule(ctx context.Context, id int64, input *InputUpdateLegacyCampaignSchedule) (*OutputUpdateLegacyCampaignSchedule, error)
- func (c *Client) UpdateLegacyList(ctx context.Context, id int64, input *InputUpdateLegacyList) (*OutputUpdateLegacyList, error)
- func (c *Client) UpdateLegacySegment(ctx context.Context, id int64, input *InputUpdateLegacySegment) (*OutputUpdateLegacySegment, error)
- func (c *Client) UpdateLegacySender(ctx context.Context, id int64, input *InputUpdateLegacySender) (*OutputUpdateLegacySender, error)
- func (c *Client) UpdateMarketingSender(ctx context.Context, id int64, input *InputUpdateMarketingSender) (*OutputUpdateMarketingSender, error)
- func (c *Client) UpdateOpenTrackingSettings(ctx context.Context, input *InputUpdateOpenTrackingSettings) (*OutputUpdateOpenTrackingSettings, error)
- func (c *Client) UpdateRemainingCreditsForSubuser(ctx context.Context, username string, ...) (*OutputUpdateRemainingCreditsForSubuser, error)
- func (c *Client) UpdateSSOCertificate(ctx context.Context, id int64, input *InputUpdateSSOCertificate) (*OutputUpdateSSOCertificate, error)
- func (c *Client) UpdateSSOIntegration(ctx context.Context, id string, input *InputUpdateSSOIntegration) (*OutputUpdateSSOIntegration, error)
- func (c *Client) UpdateSSOTeammate(ctx context.Context, username string, input *InputUpdateSSOTeammate) (*OutputUpdateSSOTeammate, error)
- func (c *Client) UpdateScheduledSend(ctx context.Context, batchID string, input *InputUpdateScheduledSend) error
- func (c *Client) UpdateSendIP(ctx context.Context, ip string, input *InputUpdateSendIP) (*OutputUpdateSendIP, error)
- func (c *Client) UpdateSendIPPool(ctx context.Context, poolID string, input *InputUpdateSendIPPool) (*OutputUpdateSendIPPool, error)
- func (c *Client) UpdateSubscriptionTrackingSettings(ctx context.Context, input *InputUpdateSubscriptionTrackingSettings) (*OutputUpdateSubscriptionTrackingSettings, 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) UpdateSuppressionGroup(ctx context.Context, id int64, input *InputUpdateSuppressionGroup) (*OutputUpdateSuppressionGroup, error)
- func (c *Client) UpdateTeammatePermissions(ctx context.Context, username string, input *InputUpdateTeammatePermissions) (*OutputUpdateTeammatePermissions, error)
- func (c *Client) UpdateTemplate(ctx context.Context, id string, input *InputUpdateTemplate) (*OutputUpdateTemplate, error)
- func (c *Client) UpdateTemplateMailSettings(ctx context.Context, input *InputUpdateTemplateMailSettings) (*OutputUpdateTemplateMailSettings, error)
- func (c *Client) UpdateTemplateVersion(ctx context.Context, templateID, versionID string, ...) (*OutputUpdateTemplateVersion, error)
- func (c *Client) UpdateUserEmail(ctx context.Context, input *InputUpdateUserEmail) (*OutputUpdateUserEmail, error)
- func (c *Client) UpdateUserPassword(ctx context.Context, input *InputUpdateUserPassword) error
- func (c *Client) UpdateUserProfile(ctx context.Context, input *InputUpdateUserProfile) (*OutputUpdateUserProfile, error)
- func (c *Client) UpdateUsername(ctx context.Context, input *InputUpdateUsername) (*OutputUpdateUsername, error)
- func (c *Client) UpdateVerifiedSender(ctx context.Context, id int64, input *InputUpdateVerifiedSender) (*OutputUpdateVerifiedSender, error)
- func (c *Client) UpdateWebhookSecurityPolicy(ctx context.Context, id string, input *InputUpdateWebhookSecurityPolicy) (*OutputUpdateWebhookSecurityPolicy, error)
- func (c *Client) ValidateBatchID(ctx context.Context, batchID string) (*OutputValidateBatchID, error)
- func (c *Client) ValidateBrandedLink(ctx context.Context, id int64) (*OutputValidateBrandedLink, error)
- func (c *Client) ValidateDomainAuthentication(ctx context.Context, domainId int64) (*OutputValidateDomainAuthentication, error)
- func (c *Client) ValidateReverseDNS(ctx context.Context, id int64) (*OutputValidateReverseDNS, error)
- func (c *Client) VerifySenderRequest(ctx context.Context, token string) error
- type CompletedStepsVerifiedSender
- type Contact
- type ContactBillableBreakdown
- type ContactByEmailResult
- type ContactByIdentifierResult
- type ContactExportJob
- type ContactRequest
- type Content
- type CreditAllocation
- type DNS
- type DNSBrandedLink
- type Design
- type DomainAuthentication
- type Email
- type EngagementQualityMetadata
- type EngagementQualityMetrics
- type EngagementQualityNextParams
- type EngagementQualityScore
- type Error
- type ErrorResponse
- type ErrorsResponse
- type EventWebhook
- type ExportContactsNotification
- type ExportJobList
- type ExportJobSegment
- type FooterSetting
- type GlobalStat
- type GlobalUnsubscribe
- type GoogleAnalyticsSetting
- type IP
- type IPAddress
- type IPPool
- type IPWarmup
- type ImportContactsResults
- type ImportContactsUploadHeader
- type InboundParseWebhook
- type InputAddIPToAuthenticatedDomain
- type InputAddIPToPool
- type InputAddIPsToAllowList
- type InputAddOrUpdateContacts
- type InputAddRecipientAddressesToGlobalSuppressions
- type InputAddRecipientsToLegacyList
- type InputAddSendIP
- type InputAddSuppressionsToGroup
- type InputAssociateAuthenticatedDomainWithSubuser
- type InputAssociateAuthenticatedDomainWithSubuserMultiple
- type InputAssociateBrandedLinkWithSubuser
- type InputAuthenticateDomain
- type InputBatchAddSendIPPoolIPs
- type InputBatchAddSendIPSubusers
- type InputBatchDeleteSendIPPoolIPs
- type InputBatchDeleteSendIPSubusers
- type InputCreateAPIKey
- type InputCreateAlert
- type InputCreateBrandedLink
- type InputCreateDesign
- type InputCreateEventWebhook
- type InputCreateIPPool
- type InputCreateInboundParseWebhook
- type InputCreateLegacyCampaign
- type InputCreateLegacyList
- type InputCreateLegacySegment
- type InputCreateLegacySender
- type InputCreateMarketingSender
- type InputCreateReverseDNS
- type InputCreateSSOCertificate
- type InputCreateSSOIntegration
- type InputCreateSSOTeammate
- type InputCreateSendIPPool
- type InputCreateSubuser
- type InputCreateSuppressionGroup
- type InputCreateTemplate
- type InputCreateTemplateVersion
- type InputCreateVerifiedSenderRequest
- type InputCreateWebhookSecurityPolicy
- type InputDeleteContactIdentifier
- type InputDeleteContacts
- type InputDeleteLegacyList
- type InputDeleteLegacyLists
- type InputDeleteSuppressions
- type InputDuplicateDesign
- type InputDuplicatePreBuiltDesign
- type InputDuplicateTemplate
- type InputEmailDNSRecordsToCoworker
- type InputExportContacts
- type InputGetAccessActivities
- type InputGetAuthenticatedDomains
- type InputGetBatchedContactsByIDs
- type InputGetBounceClassifications
- type InputGetBounceClassificationsByDomain
- type InputGetBrandedLinks
- type InputGetContactsByEmails
- type InputGetContactsByIdentifiers
- type InputGetDefaultAuthentication
- type InputGetDesigns
- type InputGetEngagementQualityScores
- type InputGetGlobalSuppressions
- type InputGetIPAddresses
- type InputGetLegacyCampaigns
- type InputGetLegacyListRecipients
- type InputGetLegacySegmentRecipients
- type InputGetMailSettings
- type InputGetPartnerSettings
- type InputGetPreBuiltDesigns
- type InputGetReverseDNSs
- type InputGetSSOIntegrations
- type InputGetSendIPPoolIPs
- type InputGetSendIPPools
- type InputGetSendIPSubusers
- type InputGetSendIPs
- type InputGetSubuserEngagementQualityScores
- type InputGetSubusers
- type InputGetTeammateSubuserAccess
- type InputGetTeammates
- type InputGetTemplates
- type InputGetVerifiedSenders
- type InputImportContacts
- type InputInviteTeammate
- type InputRemoveIPsFromAllowList
- type InputScheduleLegacyCampaign
- type InputSearchContacts
- type InputSearchGroupSuppressions
- type InputSendLegacyCampaignTest
- type InputSendMail
- func (m *InputSendMail) AddAttachment(attachment *Attachment)
- func (m *InputSendMail) AddCategory(category string)
- func (m *InputSendMail) AddContent(content *Content)
- func (m *InputSendMail) AddPersonalization(personalization *Personalization)
- func (m *InputSendMail) SetFrom(from *Email)
- func (m *InputSendMail) SetSendAt(sendAt time.Time)
- func (m *InputSendMail) SetSubject(subject string)
- func (m *InputSendMail) SetTemplateID(templateID string)
- type InputStartIPWarmup
- type InputSubuserAccess
- type InputToggleSignatureVerification
- type InputUpdateAPIKeyName
- type InputUpdateAPIKeyNameAndScopes
- type InputUpdateAddressWhitelistMailSettings
- type InputUpdateAlert
- type InputUpdateBounceSettings
- type InputUpdateBrandedLink
- type InputUpdateClickTrackingSettings
- type InputUpdateCreditsForSubuser
- type InputUpdateDesign
- type InputUpdateDomainAuthentication
- type InputUpdateEnforceTLS
- type InputUpdateEventWebhook
- type InputUpdateFooterMailSettings
- type InputUpdateForwardBounceMailSettings
- type InputUpdateForwardSpamMailSettings
- type InputUpdateGoogleAnalyticsSettings
- type InputUpdateIPPool
- type InputUpdateInboundParseWebhook
- type InputUpdateLegacyCampaign
- type InputUpdateLegacyCampaignSchedule
- type InputUpdateLegacyList
- type InputUpdateLegacySegment
- type InputUpdateLegacySender
- type InputUpdateMarketingSender
- type InputUpdateOpenTrackingSettings
- type InputUpdateRemainingCreditsForSubuser
- type InputUpdateSSOCertificate
- type InputUpdateSSOIntegration
- type InputUpdateSSOTeammate
- type InputUpdateScheduledSend
- type InputUpdateSendIP
- type InputUpdateSendIPPool
- type InputUpdateSubscriptionTrackingSettings
- type InputUpdateSubuserStatus
- type InputUpdateSuppressionGroup
- type InputUpdateTeammatePermissions
- type InputUpdateTemplate
- type InputUpdateTemplateMailSettings
- type InputUpdateTemplateVersion
- type InputUpdateUserEmail
- type InputUpdateUserPassword
- type InputUpdateUserProfile
- type InputUpdateUsername
- type InputUpdateVerifiedSender
- type InputUpdateWebhookSecurityPolicy
- type InvalidEmail
- type LegacyCampaign
- type LegacyList
- type LegacyListRecipient
- type LegacyListRecipientCustomField
- type LegacySegment
- type LegacySegmentCondition
- type LegacySegmentRecipient
- type LegacySender
- type LegacySenderAddress
- type LegacySenderVerified
- type MailSetting
- type MailSettings
- type MarketingSender
- type MarketingSenderAddress
- type MarketingSenderVerified
- type Member
- type Metadata
- type MetadataGetTeammateSubuserAccess
- type NextParams
- type OpenTrackingSetting
- type Option
- type OutputActivateTemplateVersion
- type OutputAddIPToAuthenticatedDomain
- type OutputAddIPToPool
- type OutputAddIPsToAllowList
- type OutputAddOrUpdateContacts
- type OutputAddRecipientAddressesToGlobalSuppressions
- type OutputAddSendIP
- type OutputAddSuppressionsToGroup
- type OutputAssociateAuthenticatedDomainWithSubuser
- type OutputAssociateAuthenticatedDomainWithSubuserMultiple
- type OutputAssociateBrandedLinkWithSubuser
- type OutputAuthenticateDomain
- type OutputBatchAddSendIPPoolIPs
- type OutputBatchAddSendIPSubusers
- type OutputBatchDeleteSendIPPoolIPs
- type OutputBatchDeleteSendIPSubusers
- type OutputCancelOrPauseScheduledSend
- type OutputCompletedStepsVerifiedSender
- type OutputCreateAPIKey
- type OutputCreateAlert
- type OutputCreateBatchID
- type OutputCreateBrandedLink
- type OutputCreateDesign
- type OutputCreateEventWebhook
- type OutputCreateIPPool
- type OutputCreateInboundParseWebhook
- type OutputCreateLegacyCampaign
- type OutputCreateLegacyList
- type OutputCreateLegacySegment
- type OutputCreateLegacySender
- type OutputCreateMarketingSender
- type OutputCreateReverseDNS
- type OutputCreateSSOCertificate
- type OutputCreateSSOIntegration
- type OutputCreateSSOTeammate
- type OutputCreateSendIPPool
- type OutputCreateSubuser
- type OutputCreateSuppressionGroup
- type OutputCreateTemplate
- type OutputCreateTemplateVersion
- type OutputCreateVerifiedSenderRequest
- type OutputCreateWebhookSecurityPolicy
- type OutputDeleteContactIdentifier
- type OutputDeleteContacts
- type OutputDuplicateDesign
- type OutputDuplicatePreBuiltDesign
- type OutputDuplicateTemplate
- type OutputExportContacts
- type OutputGetAPIKey
- type OutputGetAPIKeys
- type OutputGetAccessActivities
- type OutputGetAddressWhitelistMailSettings
- type OutputGetAlert
- type OutputGetAllExistingExports
- type OutputGetAllowedIP
- type OutputGetAllowedIPs
- type OutputGetAuthenticatedDomain
- type OutputGetAuthenticatedDomainAssociatedWithSubuser
- type OutputGetBatchedContactsByIDs
- type OutputGetBlocks
- type OutputGetBounceClassifications
- type OutputGetBounceClassificationsByDomain
- type OutputGetBounceSettings
- type OutputGetBounces
- type OutputGetBrandedLink
- type OutputGetClickTrackingSettings
- type OutputGetContact
- type OutputGetContactsByEmails
- type OutputGetContactsByIdentifiers
- type OutputGetCreditsForSubuser
- type OutputGetDefaultAuthentication
- type OutputGetDefaultBrandedLink
- type OutputGetDesign
- type OutputGetDesigns
- type OutputGetEnforceTLS
- type OutputGetEngagementQualityScores
- type OutputGetEventWebhook
- type OutputGetEventWebhooks
- type OutputGetExportContactsStatus
- type OutputGetFooterMailSettings
- type OutputGetForwardBounceMailSettings
- type OutputGetForwardSpamMailSettings
- type OutputGetGlobalSuppression
- type OutputGetGoogleAnalyticsSettings
- type OutputGetIPAddress
- type OutputGetIPPool
- type OutputGetImportContactsStatus
- type OutputGetInboundParseWebhook
- type OutputGetInboundParseWebhooks
- type OutputGetInvalidEmails
- type OutputGetLegacyCampaign
- type OutputGetLegacyCampaignSchedule
- type OutputGetLegacyCampaigns
- type OutputGetLegacyList
- type OutputGetLegacyListRecipients
- type OutputGetLegacyLists
- type OutputGetLegacySegment
- type OutputGetLegacySegmentRecipients
- type OutputGetLegacySegments
- type OutputGetLegacySender
- type OutputGetMailSettings
- type OutputGetMarketingSender
- type OutputGetOpenTrackingSettings
- type OutputGetPartnerSettings
- type OutputGetPendingTeammates
- type OutputGetPreBuiltDesign
- type OutputGetPreBuiltDesigns
- type OutputGetRemainingIPCount
- type OutputGetReverseDNS
- type OutputGetSSOCertificate
- type OutputGetSSOIntegration
- type OutputGetSampleContacts
- type OutputGetScheduledSend
- type OutputGetScopes
- type OutputGetSendIP
- type OutputGetSendIPPool
- type OutputGetSendIPPoolIPs
- type OutputGetSendIPPoolIPsMetadata
- type OutputGetSendIPPoolIPsMetadataNextParams
- type OutputGetSendIPPools
- type OutputGetSendIPPoolsMetadata
- type OutputGetSendIPPoolsMetadataNextParams
- type OutputGetSendIPSubusers
- type OutputGetSendIPSubusersMetadata
- type OutputGetSendIPSubusersMetadataNextParams
- type OutputGetSendIPs
- type OutputGetSendIPsMetadata
- type OutputGetSendIPsMetadataNextParams
- type OutputGetSignedEventWebhooksPublicKey
- type OutputGetSpamReports
- type OutputGetSubscriptionTrackingSettings
- type OutputGetSubuserBrandedLink
- type OutputGetSubuserEngagementQualityScores
- type OutputGetSuppressionGroupsByEmail
- type OutputGetTeammate
- type OutputGetTeammateSubuserAccess
- type OutputGetTeammates
- type OutputGetTemplate
- type OutputGetTemplateMailSettings
- type OutputGetTemplateVersion
- type OutputGetTemplates
- type OutputGetTotalContactCount
- type OutputGetTrackingSettings
- type OutputGetUserAccount
- type OutputGetUserCredits
- type OutputGetUserEmail
- type OutputGetUserProfile
- type OutputGetUsername
- type OutputGetVerifiedSenders
- type OutputGetWebhookSecurityPolicies
- type OutputGetWebhookSecurityPolicy
- type OutputImportContacts
- type OutputInviteTeammate
- type OutputScheduleLegacyCampaign
- type OutputSearchContacts
- type OutputSendLegacyCampaignNow
- type OutputSendMail
- type OutputSubuserAccess
- type OutputToggleSignatureVerification
- type OutputUpdateAPIKeyName
- type OutputUpdateAPIKeyNameAndScopes
- type OutputUpdateAddressWhitelistMailSettings
- type OutputUpdateAlert
- type OutputUpdateBounceSettings
- type OutputUpdateBrandedLink
- type OutputUpdateClickTrackingSettings
- type OutputUpdateCreditsForSubuser
- type OutputUpdateDesign
- type OutputUpdateDomainAuthentication
- type OutputUpdateEnforceTLS
- type OutputUpdateEventWebhook
- type OutputUpdateFooterMailSettings
- type OutputUpdateForwardBounceMailSettings
- type OutputUpdateForwardSpamMailSettings
- type OutputUpdateGoogleAnalyticsSettings
- type OutputUpdateIPPool
- type OutputUpdateInboundParseWebhook
- type OutputUpdateLegacyCampaign
- type OutputUpdateLegacyCampaignSchedule
- type OutputUpdateLegacyList
- type OutputUpdateLegacySegment
- type OutputUpdateLegacySender
- type OutputUpdateMarketingSender
- type OutputUpdateOpenTrackingSettings
- type OutputUpdateRemainingCreditsForSubuser
- type OutputUpdateSSOCertificate
- type OutputUpdateSSOIntegration
- type OutputUpdateSSOTeammate
- type OutputUpdateSendIP
- type OutputUpdateSendIPPool
- type OutputUpdateSubscriptionTrackingSettings
- type OutputUpdateSuppressionGroup
- type OutputUpdateTeammatePermissions
- type OutputUpdateTemplate
- type OutputUpdateTemplateMailSettings
- type OutputUpdateTemplateVersion
- type OutputUpdateUserEmail
- type OutputUpdateUserProfile
- type OutputUpdateUsername
- type OutputUpdateVerifiedSender
- type OutputUpdateWebhookSecurityPolicy
- type OutputValidateBatchID
- type OutputValidateBrandedLink
- type OutputValidateDomainAuthentication
- type OutputValidateReverseDNS
- type PartnerSetting
- type PendingTeammate
- type Personalization
- type RateLimitedError
- type Record
- type RemainingIPCount
- type ReplyTo
- type ReplyToList
- type Reputation
- type ResultGetTrackingSettings
- type SSOCertificate
- type SSOIntegration
- type ScheduledSend
- type SendIP
- type SendIPPool
- type SendIPPoolIP
- type SendIPPoolIPCountByRegion
- type SendIPPoolRef
- type Setting
- type SpamCheckSetting
- type SpamReport
- type Stat
- type StatItem
- type StatMetrics
- type StatsOptions
- type SubscriptionTrackingSetting
- type Subuser
- type SubuserAccess
- type SubuserSenderAuthentication
- type SubuserStat
- type Suppression
- type SuppressionGroup
- type SuppressionListOptions
- type Teammate
- type Template
- type TrackingSettings
- type User
- type ValidationResult
- type ValidationResults
- type ValidationResultsBrandedLink
- type ValidationResultsReverseDNS
- type VerifiedSender
- type Version
- type Warning
- type WebhookSecurityPolicy
- type WebhookSecurityPolicyOAuth
- type WebhookSecurityPolicySignature
Constants ¶
const ( // BaseURLGlobal は Global リージョンの base URL です BaseURLGlobal = "https://api.sendgrid.com/v3" // BaseURLEU は EU リージョンの base URL です BaseURLEU = "https://api.eu.sendgrid.com/v3" )
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 ARecordValidationResults ¶ added in v0.0.17
type ASM ¶ added in v1.6.0
type ASM struct {
GroupID int `json:"group_id"`
GroupsToDisplay []int `json:"groups_to_display,omitempty"`
}
ASM represents Advanced Suppression Manager settings
type ASMSuppressionGroup ¶ added in v1.10.0
type AccessActivity ¶ added in v1.10.0
type Alert ¶ added in v1.4.0
type Alert struct {
ID int64 `json:"id,omitempty"`
EmailTo string `json:"email_to,omitempty"`
Frequency string `json:"frequency,omitempty"`
Type string `json:"type,omitempty"`
Percentage int64 `json:"percentage,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
}
type AllowListIP ¶ added in v1.10.0
type AllowListIP struct {
IP string `json:"ip,omitempty"`
}
type AssignedIPAddress ¶ added in v1.11.0
type Attachment ¶ added in v1.6.0
type Attachment struct {
Content string `json:"content"`
Type string `json:"type,omitempty"`
Filename string `json:"filename"`
Disposition string `json:"disposition,omitempty"`
ContentID string `json:"content_id,omitempty"`
}
Attachment represents an email attachment
type Block ¶ added in v1.6.0
type Block struct {
Created int64 `json:"created"`
Email string `json:"email"`
Reason string `json:"reason"`
}
Block represents a blocked email
type Bounce ¶ added in v1.6.0
type Bounce struct {
Created int64 `json:"created"`
Email string `json:"email"`
Reason string `json:"reason"`
Status string `json:"status"`
}
Bounce represents a bounced email
type BounceClassificationDomainStat ¶ added in v1.15.0
type BounceClassificationDomainStat struct {
Domain string `json:"domain"`
Count int `json:"count"`
}
BounceClassificationDomainStat represents the bounce count for a single domain on a given date
type BounceClassificationDomainStatsByDate ¶ added in v1.15.0
type BounceClassificationDomainStatsByDate struct {
Date string `json:"date"`
Stats []BounceClassificationDomainStat `json:"stats"`
}
BounceClassificationDomainStatsByDate represents bounce classification domain stats for a single date
type BounceClassificationStat ¶ added in v1.15.0
type BounceClassificationStat struct {
Classification string `json:"classification"`
Count int `json:"count"`
}
BounceClassificationStat represents the bounce count for a single classification on a given date
type BounceClassificationsByDate ¶ added in v1.15.0
type BounceClassificationsByDate struct {
Date string `json:"date"`
Stats []BounceClassificationStat `json:"stats"`
}
BounceClassificationsByDate represents bounce classification stats for a single date
type BrandedLink ¶ added in v0.0.7
type BrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type CategoryStat ¶ added in v1.6.0
type CategoryStat struct {
Date string `json:"date,omitempty"`
Stats []StatItem `json:"stats,omitempty"`
}
CategoryStat represents category statistics
type ClickTrackingSetting ¶ added in v1.6.0
type ClickTrackingSetting struct {
Enable *bool `json:"enable,omitempty"`
EnableText *bool `json:"enable_text,omitempty"`
}
ClickTrackingSetting represents click tracking settings
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client : sendgrid client
func (*Client) ActivateTemplateVersion ¶ added in v0.0.14
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://www.twilio.com/docs/sendgrid/api-reference/domain-authentication/add-an-ip-to-an-authenticated-domain
func (*Client) AddIPToPool ¶ added in v1.6.0
func (c *Client) AddIPToPool(ctx context.Context, poolName string, input *InputAddIPToPool) (*OutputAddIPToPool, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/add-an-ip-address-to-a-pool
func (*Client) AddIPsToAllowList ¶ added in v1.10.0
func (c *Client) AddIPsToAllowList(ctx context.Context, input *InputAddIPsToAllowList) (*OutputAddIPsToAllowList, error)
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) AddOrUpdateContacts ¶ added in v1.10.0
func (c *Client) AddOrUpdateContacts(ctx context.Context, input *InputAddOrUpdateContacts) (*OutputAddOrUpdateContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/add-or-update-a-contact
func (*Client) AddRecipientAddressesToGlobalSuppressions ¶ added in v1.10.0
func (c *Client) AddRecipientAddressesToGlobalSuppressions(ctx context.Context, input *InputAddRecipientAddressesToGlobalSuppressions) (*OutputAddRecipientAddressesToGlobalSuppressions, error)
func (*Client) AddRecipientToLegacyList ¶ added in v1.15.0
func (c *Client) AddRecipientToLegacyList(ctx context.Context, listID int64, recipientID string) error
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/add-a-single-recipient-to-a-list
func (*Client) AddRecipientsToLegacyList ¶ added in v1.15.0
func (c *Client) AddRecipientsToLegacyList(ctx context.Context, id int64, input *InputAddRecipientsToLegacyList) error
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/add-multiple-recipients-to-a-list
func (*Client) AddSendIP ¶ added in v1.15.0
func (c *Client) AddSendIP(ctx context.Context, input *InputAddSendIP) (*OutputAddSendIP, error)
func (*Client) AddSuppressionsToGroup ¶ added in v1.10.0
func (c *Client) AddSuppressionsToGroup(ctx context.Context, groupID int64, input *InputAddSuppressionsToGroup) (*OutputAddSuppressionsToGroup, error)
func (*Client) AssociateAuthenticatedDomainWithSubuser ¶ added in v0.0.6
func (c *Client) AssociateAuthenticatedDomainWithSubuser(ctx context.Context, domainId int64, input *InputAssociateAuthenticatedDomainWithSubuser) (*OutputAssociateAuthenticatedDomainWithSubuser, error)
func (*Client) AssociateAuthenticatedDomainWithSubuserMultiple ¶ added in v1.15.0
func (c *Client) AssociateAuthenticatedDomainWithSubuserMultiple(ctx context.Context, domainId int64, input *InputAssociateAuthenticatedDomainWithSubuserMultiple) (*OutputAssociateAuthenticatedDomainWithSubuserMultiple, error)
func (*Client) AssociateBrandedLinkWithSubuser ¶ added in v0.0.7
func (c *Client) AssociateBrandedLinkWithSubuser(ctx context.Context, id int64, input *InputAssociateBrandedLinkWithSubuser) (*OutputAssociateBrandedLinkWithSubuser, error)
func (*Client) AuthenticateDomain ¶ added in v0.0.6
func (c *Client) AuthenticateDomain(ctx context.Context, input *InputAuthenticateDomain) (*OutputAuthenticateDomain, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/domain-authentication/authenticate-a-domain
func (*Client) BatchAddSendIPPoolIPs ¶ added in v1.15.0
func (c *Client) BatchAddSendIPPoolIPs(ctx context.Context, poolID string, input *InputBatchAddSendIPPoolIPs) (*OutputBatchAddSendIPPoolIPs, error)
func (*Client) BatchAddSendIPSubusers ¶ added in v1.15.0
func (c *Client) BatchAddSendIPSubusers(ctx context.Context, ip string, input *InputBatchAddSendIPSubusers) (*OutputBatchAddSendIPSubusers, error)
func (*Client) BatchDeleteSendIPPoolIPs ¶ added in v1.15.0
func (c *Client) BatchDeleteSendIPPoolIPs(ctx context.Context, poolID string, input *InputBatchDeleteSendIPPoolIPs) (*OutputBatchDeleteSendIPPoolIPs, error)
func (*Client) BatchDeleteSendIPSubusers ¶ added in v1.15.0
func (c *Client) BatchDeleteSendIPSubusers(ctx context.Context, ip string, input *InputBatchDeleteSendIPSubusers) (*OutputBatchDeleteSendIPSubusers, error)
func (*Client) CancelOrPauseScheduledSend ¶ added in v1.10.0
func (*Client) CompletedStepsVerifiedSender ¶ added in v0.0.10
func (c *Client) CompletedStepsVerifiedSender(ctx context.Context) (*CompletedStepsVerifiedSender, error)
func (*Client) CreateAPIKey ¶ added in v0.0.2
func (c *Client) CreateAPIKey(ctx context.Context, input *InputCreateAPIKey) (*OutputCreateAPIKey, error)
func (*Client) CreateAlert ¶ added in v1.4.0
func (c *Client) CreateAlert(ctx context.Context, input *InputCreateAlert) (*OutputCreateAlert, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/alerts/create-a-new-alert
func (*Client) CreateBatchID ¶ added in v1.10.0
func (c *Client) CreateBatchID(ctx context.Context) (*OutputCreateBatchID, error)
see: https://docs.sendgrid.com/api-reference/cancel-scheduled-sends/create-a-batch-id
func (*Client) CreateBrandedLink ¶ added in v0.0.7
func (c *Client) CreateBrandedLink(ctx context.Context, input *InputCreateBrandedLink) (*OutputCreateBrandedLink, error)
func (*Client) CreateDesign ¶ added in v1.0.3
func (c *Client) CreateDesign(ctx context.Context, input *InputCreateDesign) (*OutputCreateDesign, error)
see: https://docs.sendgrid.com/api-reference/designs-api/create-design
func (*Client) CreateEventWebhook ¶ added in v1.0.2
func (c *Client) CreateEventWebhook(ctx context.Context, input *InputCreateEventWebhook) (*OutputCreateEventWebhook, error)
see: https://docs.sendgrid.com/api-reference/webhooks/create-an-event-webhook
func (*Client) CreateIPPool ¶ added in v1.6.0
func (c *Client) CreateIPPool(ctx context.Context, input *InputCreateIPPool) (*OutputCreateIPPool, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/create-an-ip-pool
func (*Client) CreateInboundParseWebhook ¶ added in v1.1.1
func (c *Client) CreateInboundParseWebhook(ctx context.Context, input *InputCreateInboundParseWebhook) (*OutputCreateInboundParseWebhook, error)
see: https://docs.sendgrid.com/api-reference/settings-inbound-parse/create-a-parse-setting
func (*Client) CreateLegacyCampaign ¶ added in v1.15.0
func (c *Client) CreateLegacyCampaign(ctx context.Context, input *InputCreateLegacyCampaign) (*OutputCreateLegacyCampaign, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/create-a-campaign
func (*Client) CreateLegacyList ¶ added in v1.15.0
func (c *Client) CreateLegacyList(ctx context.Context, input *InputCreateLegacyList) (*OutputCreateLegacyList, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/create-a-list
func (*Client) CreateLegacySegment ¶ added in v1.15.0
func (c *Client) CreateLegacySegment(ctx context.Context, input *InputCreateLegacySegment) (*OutputCreateLegacySegment, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-segments/create-a-segment
func (*Client) CreateLegacySender ¶ added in v1.15.0
func (c *Client) CreateLegacySender(ctx context.Context, input *InputCreateLegacySender) (*OutputCreateLegacySender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/create-a-sender-identity
func (*Client) CreateMarketingSender ¶ added in v1.15.0
func (c *Client) CreateMarketingSender(ctx context.Context, input *InputCreateMarketingSender) (*OutputCreateMarketingSender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/marketing-campaigns-senders/create-a-sender
func (*Client) CreateReverseDNS ¶ added in v0.0.17
func (c *Client) CreateReverseDNS(ctx context.Context, input *InputCreateReverseDNS) (*OutputCreateReverseDNS, error)
see: https://docs.sendgrid.com/api-reference/reverse-dns/set-up-reverse-dns
func (*Client) CreateSSOCertificate ¶ added in v0.0.20
func (c *Client) CreateSSOCertificate(ctx context.Context, input *InputCreateSSOCertificate) (*OutputCreateSSOCertificate, error)
func (*Client) CreateSSOIntegration ¶ added in v0.0.19
func (c *Client) CreateSSOIntegration(ctx context.Context, input *InputCreateSSOIntegration) (*OutputCreateSSOIntegration, error)
see: https://docs.sendgrid.com/api-reference/single-sign-on-settings/create-an-sso-integration
func (*Client) CreateSSOTeammate ¶ added in v1.2.0
func (c *Client) CreateSSOTeammate(ctx context.Context, input *InputCreateSSOTeammate) (*OutputCreateSSOTeammate, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/single-sign-on-teammates/create-sso-teammate
func (*Client) CreateSendIPPool ¶ added in v1.15.0
func (c *Client) CreateSendIPPool(ctx context.Context, input *InputCreateSendIPPool) (*OutputCreateSendIPPool, error)
func (*Client) CreateSubuser ¶ added in v0.0.3
func (c *Client) CreateSubuser(ctx context.Context, input *InputCreateSubuser) (*OutputCreateSubuser, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/create-subuser
func (*Client) CreateSuppressionGroup ¶ added in v0.0.13
func (c *Client) CreateSuppressionGroup(ctx context.Context, input *InputCreateSuppressionGroup) (*OutputCreateSuppressionGroup, error)
func (*Client) CreateTemplate ¶ added in v0.0.14
func (c *Client) CreateTemplate(ctx context.Context, input *InputCreateTemplate) (*OutputCreateTemplate, error)
see: https://docs.sendgrid.com/api-reference/transactional-templates/create-a-transactional-template
func (*Client) CreateTemplateVersion ¶ added in v0.0.14
func (c *Client) CreateTemplateVersion(ctx context.Context, templateID string, input *InputCreateTemplateVersion) (*OutputCreateTemplateVersion, error)
func (*Client) CreateVerifiedSenderRequest ¶ added in v0.0.10
func (c *Client) CreateVerifiedSenderRequest(ctx context.Context, input *InputCreateVerifiedSenderRequest) (*OutputCreateVerifiedSenderRequest, error)
func (*Client) CreateWebhookSecurityPolicy ¶ added in v1.14.0
func (c *Client) CreateWebhookSecurityPolicy(ctx context.Context, input *InputCreateWebhookSecurityPolicy) (*OutputCreateWebhookSecurityPolicy, error)
func (*Client) DeleteAPIKey ¶ added in v0.0.2
func (*Client) DeleteAlert ¶ added in v1.4.0
see: https://www.twilio.com/docs/sendgrid/api-reference/alerts/delete-an-alert
func (*Client) DeleteAuthenticatedDomain ¶ added in v0.0.6
func (*Client) DeleteBlock ¶ added in v1.6.0
DeleteBlock deletes a specific block see: https://www.twilio.com/docs/sendgrid/api-reference/blocks/delete-a-specific-block
func (*Client) DeleteBlocks ¶ added in v1.6.0
func (c *Client) DeleteBlocks(ctx context.Context, input *InputDeleteSuppressions) error
DeleteBlocks deletes blocks see: https://www.twilio.com/docs/sendgrid/api-reference/blocks/delete-blocks
func (*Client) DeleteBounce ¶ added in v1.6.0
DeleteBounce deletes a specific bounce see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/delete-a-bounce
func (*Client) DeleteBounces ¶ added in v1.6.0
func (c *Client) DeleteBounces(ctx context.Context, input *InputDeleteSuppressions) error
DeleteBounces deletes bounces see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/delete-bounces
func (*Client) DeleteBrandedLink ¶ added in v0.0.7
func (*Client) DeleteContactIdentifier ¶ added in v1.10.0
func (c *Client) DeleteContactIdentifier(ctx context.Context, contactID string, input *InputDeleteContactIdentifier) (*OutputDeleteContactIdentifier, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/delete-a-contact-identifier
func (*Client) DeleteContacts ¶ added in v1.10.0
func (c *Client) DeleteContacts(ctx context.Context, input *InputDeleteContacts) (*OutputDeleteContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/delete-contacts
func (*Client) DeleteDesign ¶ added in v1.0.3
see: https://docs.sendgrid.com/api-reference/designs-api/delete-design
func (*Client) DeleteEventWebhook ¶ added in v1.0.2
see: https://docs.sendgrid.com/api-reference/webhooks/delete-an-event-webhook
func (*Client) DeleteGlobalSuppression ¶ added in v1.10.0
func (*Client) DeleteIPPool ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/delete-an-ip-pool
func (*Client) DeleteInboundParseWebhook ¶ added in v1.1.1
see: https://docs.sendgrid.com/api-reference/settings-inbound-parse/delete-a-parse-setting
func (*Client) DeleteInvalidEmail ¶ added in v1.6.0
DeleteInvalidEmail deletes a specific invalid email see: https://www.twilio.com/docs/sendgrid/api-reference/invalid-emails/delete-a-specific-invalid-email
func (*Client) DeleteInvalidEmails ¶ added in v1.6.0
func (c *Client) DeleteInvalidEmails(ctx context.Context, input *InputDeleteSuppressions) error
DeleteInvalidEmails deletes invalid emails see: https://www.twilio.com/docs/sendgrid/api-reference/invalid-emails/delete-invalid-emails
func (*Client) DeleteLegacyCampaign ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/delete-a-campaign
func (*Client) DeleteLegacyCampaignSchedule ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/unschedule-a-scheduled-campaign
func (*Client) DeleteLegacyList ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/delete-a-list
func (*Client) DeleteLegacyLists ¶ added in v1.15.0
func (c *Client) DeleteLegacyLists(ctx context.Context, input *InputDeleteLegacyLists) error
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/delete-multiple-lists
func (*Client) DeleteLegacySegment ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-segments/delete-a-segment
func (*Client) DeleteLegacySender ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/delete-a-sender-identity
func (*Client) DeleteMarketingSender ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/marketing-campaigns-senders/delete-a-sender
func (*Client) DeletePendingTeammate ¶
func (*Client) DeleteReverseDNS ¶ added in v0.0.17
see: https://docs.sendgrid.com/api-reference/reverse-dns/delete-a-reverse-dns-record
func (*Client) DeleteSSOCertificate ¶ added in v0.0.19
see: https://docs.sendgrid.com/api-reference/certificates/delete-an-sso-certificate
func (*Client) DeleteSSOIntegration ¶ added in v0.0.19
see: https://docs.sendgrid.com/api-reference/single-sign-on-settings/delete-an-sso-integration
func (*Client) DeleteScheduledSend ¶ added in v1.10.0
func (*Client) DeleteSendIPPool ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address-management/delete-ip-pool
func (*Client) DeleteSpamReport ¶ added in v1.6.0
DeleteSpamReport deletes a specific spam report see: https://www.twilio.com/docs/sendgrid/api-reference/spam-reports/delete-a-specific-spam-report
func (*Client) DeleteSpamReports ¶ added in v1.6.0
func (c *Client) DeleteSpamReports(ctx context.Context, input *InputDeleteSuppressions) error
DeleteSpamReports deletes spam reports see: https://www.twilio.com/docs/sendgrid/api-reference/spam-reports/delete-spam-reports
func (*Client) DeleteSubuser ¶ added in v0.0.3
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/delete-a-subuser
func (*Client) DeleteSuppressionFromGroup ¶ added in v1.10.0
func (*Client) DeleteSuppressionGroup ¶ added in v0.0.13
see: https://docs.sendgrid.com/api-reference/suppressions-unsubscribe-groups/delete-a-suppression-group
func (*Client) DeleteTeammate ¶
func (*Client) DeleteTemplate ¶ added in v0.0.14
see: https://docs.sendgrid.com/api-reference/transactional-templates/delete-a-template
func (*Client) DeleteTemplateVersion ¶ added in v0.0.14
func (*Client) DeleteVerifiedSender ¶ added in v0.0.10
func (*Client) DeleteWebhookSecurityPolicy ¶ added in v1.14.0
func (*Client) DisassociateAuthenticatedDomainFromSubuser ¶ added in v0.0.6
func (*Client) DisassociateBrandedLinkWithSubuser ¶ added in v0.0.7
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) DuplicateDesign ¶ added in v1.10.0
func (c *Client) DuplicateDesign(ctx context.Context, id string, input *InputDuplicateDesign) (*OutputDuplicateDesign, error)
see: https://docs.sendgrid.com/api-reference/designs-api/duplicate-design
func (*Client) DuplicatePreBuiltDesign ¶ added in v1.15.0
func (c *Client) DuplicatePreBuiltDesign(ctx context.Context, id string, input *InputDuplicatePreBuiltDesign) (*OutputDuplicatePreBuiltDesign, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/designs-api/duplicate-sendgrid-pre-built-design
func (*Client) DuplicateTemplate ¶ added in v0.0.14
func (c *Client) DuplicateTemplate(ctx context.Context, id string, input *InputDuplicateTemplate) (*OutputDuplicateTemplate, error)
see: https://docs.sendgrid.com/api-reference/transactional-templates/duplicate-a-transactional-template
func (*Client) EmailDNSRecordsToCoworker ¶ added in v1.15.0
func (c *Client) EmailDNSRecordsToCoworker(ctx context.Context, input *InputEmailDNSRecordsToCoworker) error
func (*Client) ExportContacts ¶ added in v1.10.0
func (c *Client) ExportContacts(ctx context.Context, input *InputExportContacts) (*OutputExportContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/export-contacts
func (*Client) GetAPIKeys ¶ added in v0.0.2
func (c *Client) GetAPIKeys(ctx context.Context) (*OutputGetAPIKeys, error)
func (*Client) GetAccessActivities ¶ added in v1.10.0
func (c *Client) GetAccessActivities(ctx context.Context, input *InputGetAccessActivities) (*OutputGetAccessActivities, error)
func (*Client) GetAddressWhitelistMailSettings ¶ added in v1.14.0
func (c *Client) GetAddressWhitelistMailSettings(ctx context.Context) (*OutputGetAddressWhitelistMailSettings, error)
func (*Client) GetAlert ¶ added in v1.4.0
see: https://www.twilio.com/docs/sendgrid/api-reference/alerts/retrieve-a-specific-alert
func (*Client) GetAlerts ¶ added in v1.4.0
see: https://www.twilio.com/docs/sendgrid/api-reference/alerts/retrieve-all-alerts
func (*Client) GetAllAuthenticatedDomainsAssociatedWithSubuser ¶ added in v1.15.0
func (*Client) GetAllExistingExports ¶ added in v1.10.0
func (c *Client) GetAllExistingExports(ctx context.Context) (*OutputGetAllExistingExports, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-all-existing-exports
func (*Client) GetAllIPWarmup ¶ added in v1.11.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-warmup/retrieve-all-ips-currently-in-warmup
func (*Client) GetAllowedIP ¶ added in v1.10.0
func (*Client) GetAllowedIPs ¶ added in v1.10.0
func (c *Client) GetAllowedIPs(ctx context.Context) (*OutputGetAllowedIPs, error)
func (*Client) GetAssignedIPAddresses ¶ added in v1.6.0
func (c *Client) GetAssignedIPAddresses(ctx context.Context) ([]*AssignedIPAddress, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address/retrieve-all-assigned-ips
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) GetBatchedContactsByIDs ¶ added in v1.10.0
func (c *Client) GetBatchedContactsByIDs(ctx context.Context, input *InputGetBatchedContactsByIDs) (*OutputGetBatchedContactsByIDs, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-batched-contacts-by-ids
func (*Client) GetBlock ¶ added in v1.6.0
GetBlock retrieves a specific block see: https://www.twilio.com/docs/sendgrid/api-reference/blocks/retrieve-a-specific-block
func (*Client) GetBlocks ¶ added in v1.6.0
GetBlocks retrieves all blocks see: https://www.twilio.com/docs/sendgrid/api-reference/blocks/retrieve-all-blocks
func (*Client) GetBounce ¶ added in v1.6.0
GetBounce retrieves a specific bounce see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/retrieve-a-bounce
func (*Client) GetBounceClassifications ¶ added in v1.15.0
func (c *Client) GetBounceClassifications(ctx context.Context, opts *InputGetBounceClassifications) (*OutputGetBounceClassifications, error)
GetBounceClassifications retrieves bounce classification totals see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/retrieve-bounce-classification-totals
func (*Client) GetBounceClassificationsByDomain ¶ added in v1.15.0
func (c *Client) GetBounceClassificationsByDomain(ctx context.Context, classification string, opts *InputGetBounceClassificationsByDomain) (*OutputGetBounceClassificationsByDomain, error)
GetBounceClassificationsByDomain retrieves bounce classification over time by domain stats see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/retrieve-bounce-classification-over-time-by-domain-stats
func (*Client) GetBounceSettings ¶ added in v1.8.0
func (c *Client) GetBounceSettings(ctx context.Context) (*OutputGetBounceSettings, error)
see: https://docs.sendgrid.com/api-reference/bounces/remove-bounces
func (*Client) GetBounces ¶ added in v1.6.0
GetBounces retrieves all bounces see: https://www.twilio.com/docs/sendgrid/api-reference/bounces/retrieve-all-bounces
func (*Client) GetBrandedLink ¶ added in v0.0.7
func (*Client) GetBrandedLinks ¶ added in v0.0.7
func (c *Client) GetBrandedLinks(ctx context.Context, input *InputGetBrandedLinks) ([]*BrandedLink, error)
func (*Client) GetCategoryStats ¶ added in v1.6.0
func (c *Client) GetCategoryStats(ctx context.Context, categories []string, opts *StatsOptions) ([]CategoryStat, error)
GetCategoryStats retrieves category email statistics see: https://www.twilio.com/docs/sendgrid/api-reference/categories-statistics/retrieve-email-statistics-for-categories
func (*Client) GetCategorySums ¶ added in v1.6.0
func (c *Client) GetCategorySums(ctx context.Context, opts *StatsOptions) ([]CategoryStat, error)
GetCategorySums retrieves category sums see: https://www.twilio.com/docs/sendgrid/api-reference/categories-statistics/retrieve-sums-of-email-stats-for-each-category
func (*Client) GetClickTrackingSettings ¶ added in v0.0.18
func (c *Client) GetClickTrackingSettings(ctx context.Context) (*OutputGetClickTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/retrieve-click-track-settings
func (*Client) GetContact ¶ added in v1.10.0
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-a-contact-by-id
func (*Client) GetContactsByEmails ¶ added in v1.10.0
func (c *Client) GetContactsByEmails(ctx context.Context, input *InputGetContactsByEmails) (*OutputGetContactsByEmails, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-contacts-by-emails
func (*Client) GetContactsByIdentifiers ¶ added in v1.10.0
func (c *Client) GetContactsByIdentifiers(ctx context.Context, identifierType string, input *InputGetContactsByIdentifiers) (*OutputGetContactsByIdentifiers, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-contacts-by-identifiers
func (*Client) GetCreditsForSubuser ¶ added in v1.12.0
func (c *Client) GetCreditsForSubuser(ctx context.Context, username string) (*OutputGetCreditsForSubuser, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/get-credits-for-subuser
func (*Client) GetDefaultAuthentication ¶ added in v0.0.6
func (c *Client) GetDefaultAuthentication(ctx context.Context, input *InputGetDefaultAuthentication) (*OutputGetDefaultAuthentication, error)
func (*Client) GetDefaultBrandedLink ¶ added in v0.0.7
func (c *Client) GetDefaultBrandedLink(ctx context.Context) (*OutputGetDefaultBrandedLink, error)
func (*Client) GetDesign ¶ added in v1.0.3
see: https://docs.sendgrid.com/api-reference/designs-api/get-design
func (*Client) GetDesigns ¶ added in v1.0.3
func (c *Client) GetDesigns(ctx context.Context, input *InputGetDesigns) (*OutputGetDesigns, error)
see: https://docs.sendgrid.com/api-reference/designs-api/list-designs
func (*Client) GetEnforceTLS ¶ added in v0.0.15
func (c *Client) GetEnforceTLS(ctx context.Context) (*OutputGetEnforceTLS, error)
see: https://docs.sendgrid.com/api-reference/settings-enforced-tls/retrieve-current-enforced-tls-settings
func (*Client) GetEngagementQualityScores ¶ added in v1.15.0
func (c *Client) GetEngagementQualityScores(ctx context.Context, input *InputGetEngagementQualityScores) (*OutputGetEngagementQualityScores, error)
func (*Client) GetEventWebhook ¶ added in v1.0.2
see: https://docs.sendgrid.com/api-reference/webhooks/get-an-event-webhook
func (*Client) GetEventWebhooks ¶ added in v1.0.2
func (c *Client) GetEventWebhooks(ctx context.Context) (*OutputGetEventWebhooks, error)
https://docs.sendgrid.com/api-reference/webhooks/get-all-event-webhooks
func (*Client) GetExportContactsStatus ¶ added in v1.10.0
func (c *Client) GetExportContactsStatus(ctx context.Context, id string) (*OutputGetExportContactsStatus, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/export-contacts-status
func (*Client) GetFooterMailSettings ¶ added in v1.14.0
func (c *Client) GetFooterMailSettings(ctx context.Context) (*OutputGetFooterMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/retrieve-footer-mail-settings
func (*Client) GetForwardBounceMailSettings ¶ added in v1.14.0
func (c *Client) GetForwardBounceMailSettings(ctx context.Context) (*OutputGetForwardBounceMailSettings, error)
func (*Client) GetForwardSpamMailSettings ¶ added in v1.14.0
func (c *Client) GetForwardSpamMailSettings(ctx context.Context) (*OutputGetForwardSpamMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/retrieve-forward-spam-mail-settings
func (*Client) GetGlobalStats ¶ added in v1.6.0
func (c *Client) GetGlobalStats(ctx context.Context, opts *StatsOptions) ([]GlobalStat, error)
GetGlobalStats retrieves global email statistics see: https://www.twilio.com/docs/sendgrid/api-reference/stats/retrieve-global-email-statistics
func (*Client) GetGlobalSuppression ¶ added in v1.10.0
func (*Client) GetGlobalSuppressions ¶ added in v1.10.0
func (c *Client) GetGlobalSuppressions(ctx context.Context, input *InputGetGlobalSuppressions) ([]*GlobalUnsubscribe, error)
func (*Client) GetGoogleAnalyticsSettings ¶ added in v0.0.18
func (c *Client) GetGoogleAnalyticsSettings(ctx context.Context) (*OutputGetGoogleAnalyticsSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/retrieve-google-analytics-settings
func (*Client) GetIPAddress ¶ added in v1.6.0
func (*Client) GetIPAddresses ¶ added in v1.6.0
func (c *Client) GetIPAddresses(ctx context.Context, input *InputGetIPAddresses) ([]*IPAddress, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address/retrieve-all-ip-addresses
func (*Client) GetIPPool ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/retrieve-all-the-ips-in-a-specified-pool
func (*Client) GetIPPools ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/retrieve-all-ip-pools
func (*Client) GetIPWarmupStatus ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-warmup/retrieve-ip-warmup-status
func (*Client) GetImportContactsStatus ¶ added in v1.10.0
func (c *Client) GetImportContactsStatus(ctx context.Context, id string) (*OutputGetImportContactsStatus, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/import-contacts-status
func (*Client) GetInboundParseWebhook ¶ added in v1.1.1
func (c *Client) GetInboundParseWebhook(ctx context.Context, hostname string) (*OutputGetInboundParseWebhook, error)
see: https://docs.sendgrid.com/api-reference/settings-inbound-parse/retrieve-a-specific-parse-setting
func (*Client) GetInboundParseWebhooks ¶ added in v1.1.1
func (c *Client) GetInboundParseWebhooks(ctx context.Context) ([]*InboundParseWebhook, error)
see: https://docs.sendgrid.com/api-reference/settings-inbound-parse/retrieve-all-parse-settings
func (*Client) GetInvalidEmail ¶ added in v1.6.0
GetInvalidEmail retrieves a specific invalid email see: https://www.twilio.com/docs/sendgrid/api-reference/invalid-emails/retrieve-an-invalid-email
func (*Client) GetInvalidEmails ¶ added in v1.6.0
func (c *Client) GetInvalidEmails(ctx context.Context, opts *SuppressionListOptions) ([]InvalidEmail, error)
GetInvalidEmails retrieves all invalid emails see: https://www.twilio.com/docs/sendgrid/api-reference/invalid-emails/retrieve-all-invalid-emails
func (*Client) GetLegacyCampaign ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/retrieve-a-single-campaign
func (*Client) GetLegacyCampaignSchedule ¶ added in v1.15.0
func (c *Client) GetLegacyCampaignSchedule(ctx context.Context, id int64) (*OutputGetLegacyCampaignSchedule, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/view-scheduled-time-of-a-campaign
func (*Client) GetLegacyCampaigns ¶ added in v1.15.0
func (c *Client) GetLegacyCampaigns(ctx context.Context, opts *InputGetLegacyCampaigns) (*OutputGetLegacyCampaigns, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/retrieve-all-campaigns
func (*Client) GetLegacyList ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/retrieve-a-single-list
func (*Client) GetLegacyListRecipients ¶ added in v1.15.0
func (c *Client) GetLegacyListRecipients(ctx context.Context, id int64, opts *InputGetLegacyListRecipients) (*OutputGetLegacyListRecipients, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/retrieve-all-recipients-on-a-list
func (*Client) GetLegacyLists ¶ added in v1.15.0
func (c *Client) GetLegacyLists(ctx context.Context) (*OutputGetLegacyLists, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/retrieve-all-lists
func (*Client) GetLegacySegment ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-segments/retrieve-a-segment
func (*Client) GetLegacySegmentRecipients ¶ added in v1.15.0
func (c *Client) GetLegacySegmentRecipients(ctx context.Context, id int64, opts *InputGetLegacySegmentRecipients) (*OutputGetLegacySegmentRecipients, error)
func (*Client) GetLegacySegments ¶ added in v1.15.0
func (c *Client) GetLegacySegments(ctx context.Context) (*OutputGetLegacySegments, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-segments/retrieve-all-segments
func (*Client) GetLegacySender ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/view-a-sender-identity
func (*Client) GetLegacySenders ¶ added in v1.15.0
func (c *Client) GetLegacySenders(ctx context.Context) ([]*LegacySender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/get-all-sender-identities
func (*Client) GetMailSettings ¶ added in v1.14.0
func (c *Client) GetMailSettings(ctx context.Context, input *InputGetMailSettings) (*OutputGetMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/retrieve-all-mail-settings
func (*Client) GetMarketingSender ¶ added in v1.15.0
func (c *Client) GetMarketingSender(ctx context.Context, id int64) (*OutputGetMarketingSender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/marketing-campaigns-senders/get-a-specific-sender
func (*Client) GetMarketingSenders ¶ added in v1.15.0
func (c *Client) GetMarketingSenders(ctx context.Context) ([]*MarketingSender, error)
func (*Client) GetOpenTrackingSettings ¶ added in v0.0.18
func (c *Client) GetOpenTrackingSettings(ctx context.Context) (*OutputGetOpenTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/get-open-tracking-settings
func (*Client) GetPartnerSettings ¶ added in v1.15.0
func (c *Client) GetPartnerSettings(ctx context.Context, input *InputGetPartnerSettings) (*OutputGetPartnerSettings, error)
func (*Client) GetPendingTeammates ¶
func (c *Client) GetPendingTeammates(ctx context.Context) (*OutputGetPendingTeammates, error)
func (*Client) GetPreBuiltDesign ¶ added in v1.15.0
func (c *Client) GetPreBuiltDesign(ctx context.Context, id string) (*OutputGetPreBuiltDesign, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/designs-api/get-sendgrid-pre-built-design
func (*Client) GetPreBuiltDesigns ¶ added in v1.10.0
func (c *Client) GetPreBuiltDesigns(ctx context.Context, input *InputGetPreBuiltDesigns) (*OutputGetPreBuiltDesigns, error)
see: https://docs.sendgrid.com/api-reference/designs-api/list-sendgrid-pre-built-designs
func (*Client) GetRemainingIPCount ¶ added in v1.6.0
func (c *Client) GetRemainingIPCount(ctx context.Context) (*OutputGetRemainingIPCount, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address/get-remaining-ips-count
func (*Client) GetReverseDNS ¶ added in v0.0.17
see: https://docs.sendgrid.com/api-reference/reverse-dns/retrieve-a-reverse-dns-record
func (*Client) GetReverseDNSs ¶ added in v0.0.17
func (c *Client) GetReverseDNSs(ctx context.Context, input *InputGetReverseDNSs) ([]*OutputGetReverseDNS, error)
see: https://docs.sendgrid.com/api-reference/reverse-dns/retrieve-all-reverse-dns-records
func (*Client) GetSSOCertificate ¶ added in v0.0.19
see: https://docs.sendgrid.com/api-reference/certificates/get-an-sso-certificate
func (*Client) GetSSOCertificates ¶ added in v0.0.19
func (c *Client) GetSSOCertificates(ctx context.Context, integrationID string) ([]*SSOCertificate, error)
see: https://docs.sendgrid.com/api-reference/certificates/get-all-sso-certificates-by-integration
func (*Client) GetSSOIntegration ¶ added in v0.0.19
func (c *Client) GetSSOIntegration(ctx context.Context, id string) (*OutputGetSSOIntegration, error)
GetSSOIntegration always sends si=true: without it SendGrid omits completed_integration from the response, which would decode as false.
see: https://docs.sendgrid.com/api-reference/single-sign-on-settings/get-an-sso-integration
func (*Client) GetSSOIntegrations ¶ added in v0.0.19
func (c *Client) GetSSOIntegrations(ctx context.Context, input *InputGetSSOIntegrations) ([]*SSOIntegration, error)
see: https://docs.sendgrid.com/api-reference/single-sign-on-settings/get-all-sso-integrations
func (*Client) GetSampleContacts ¶ added in v1.10.0
func (c *Client) GetSampleContacts(ctx context.Context) (*OutputGetSampleContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-sample-contacts
func (*Client) GetScheduledSend ¶ added in v1.10.0
func (c *Client) GetScheduledSend(ctx context.Context, batchID string) (*OutputGetScheduledSend, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/cancel-scheduled-sends/retrieve-scheduled-send
func (*Client) GetScheduledSends ¶ added in v1.10.0
func (c *Client) GetScheduledSends(ctx context.Context) ([]*ScheduledSend, error)
func (*Client) GetScopes ¶ added in v1.15.0
func (c *Client) GetScopes(ctx context.Context) (*OutputGetScopes, error)
func (*Client) GetSendIPPool ¶ added in v1.15.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address-management/get-details-for-an-ip-pool
func (*Client) GetSendIPPoolIPs ¶ added in v1.15.0
func (c *Client) GetSendIPPoolIPs(ctx context.Context, poolID string, opts *InputGetSendIPPoolIPs) (*OutputGetSendIPPoolIPs, error)
func (*Client) GetSendIPPools ¶ added in v1.15.0
func (c *Client) GetSendIPPools(ctx context.Context, opts *InputGetSendIPPools) (*OutputGetSendIPPools, error)
func (*Client) GetSendIPSubusers ¶ added in v1.15.0
func (c *Client) GetSendIPSubusers(ctx context.Context, ip string, opts *InputGetSendIPSubusers) (*OutputGetSendIPSubusers, error)
func (*Client) GetSendIPs ¶ added in v1.15.0
func (c *Client) GetSendIPs(ctx context.Context, opts *InputGetSendIPs) (*OutputGetSendIPs, error)
func (*Client) GetSenderVerificationDomainWarnList ¶ added in v0.0.10
func (c *Client) GetSenderVerificationDomainWarnList(ctx context.Context) (*CompletedStepsVerifiedSender, error)
see: https://docs.sendgrid.com/api-reference/sender-verification/domain-warn-list This endpoint returns a list of domains known to implement DMARC and categorizes them by failure type — hard failure or soft failure. Domains listed as hard failures will not deliver mail when used as a Sender Identity due to the domain's DMARC policy settings.
func (*Client) GetSignedEventWebhooksPublicKey ¶ added in v1.7.0
func (c *Client) GetSignedEventWebhooksPublicKey(ctx context.Context, id string) (*OutputGetSignedEventWebhooksPublicKey, error)
see: https://docs.sendgrid.com/api-reference/webhooks/get-signed-event-webhooks-public-key
func (*Client) GetSpamReport ¶ added in v1.6.0
GetSpamReport retrieves a specific spam report see: https://www.twilio.com/docs/sendgrid/api-reference/spam-reports/retrieve-a-specific-spam-report
func (*Client) GetSpamReports ¶ added in v1.6.0
func (c *Client) GetSpamReports(ctx context.Context, opts *SuppressionListOptions) ([]SpamReport, error)
GetSpamReports retrieves all spam reports see: https://www.twilio.com/docs/sendgrid/api-reference/spam-reports/retrieve-all-spam-reports
func (*Client) GetSubscriptionTrackingSettings ¶ added in v0.0.18
func (c *Client) GetSubscriptionTrackingSettings(ctx context.Context) (*OutputGetSubscriptionTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/retrieve-subscription-tracking-settings
func (*Client) GetSubuser ¶ added in v1.9.0
document link not found
func (*Client) GetSubuserBrandedLink ¶ added in v0.0.7
func (*Client) GetSubuserEngagementQualityScores ¶ added in v1.15.0
func (c *Client) GetSubuserEngagementQualityScores(ctx context.Context, input *InputGetSubuserEngagementQualityScores) (*OutputGetSubuserEngagementQualityScores, error)
func (*Client) GetSubuserMonthlyStats ¶ added in v1.6.0
func (c *Client) GetSubuserMonthlyStats(ctx context.Context, opts *StatsOptions) ([]SubuserStat, error)
GetSubuserMonthlyStats retrieves monthly subuser statistics see: https://www.twilio.com/docs/sendgrid/api-reference/subuser-statistics/retrieve-monthly-stats-for-all-subusers
func (*Client) GetSubuserReputations ¶ added in v0.0.3
func (c *Client) GetSubuserReputations(ctx context.Context, usernames string) ([]*Reputation, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/retrieve-subuser-reputations
func (*Client) GetSubuserStats ¶ added in v1.6.0
func (c *Client) GetSubuserStats(ctx context.Context, subusers []string, opts *StatsOptions) ([]SubuserStat, error)
GetSubuserStats retrieves subuser email statistics see: https://www.twilio.com/docs/sendgrid/api-reference/subuser-statistics/retrieve-email-statistics-for-your-subusers
func (*Client) GetSubuserSums ¶ added in v1.6.0
func (c *Client) GetSubuserSums(ctx context.Context, opts *StatsOptions) ([]SubuserStat, error)
GetSubuserSums retrieves subuser sums see: https://www.twilio.com/docs/sendgrid/api-reference/subuser-statistics/retrieve-sums-of-email-stats-for-each-subuser
func (*Client) GetSubusers ¶ added in v0.0.3
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/list-all-subusers
func (*Client) GetSuppressionGroup ¶ added in v0.0.13
func (*Client) GetSuppressionGroups ¶ added in v0.0.13
func (c *Client) GetSuppressionGroups(ctx context.Context) ([]*SuppressionGroup, error)
func (*Client) GetSuppressionGroupsByEmail ¶ added in v1.10.0
func (*Client) GetSuppressions ¶ added in v1.10.0
func (c *Client) GetSuppressions(ctx context.Context) ([]*Suppression, error)
func (*Client) GetSuppressionsForSuppressionGroup ¶ added in v1.10.0
func (*Client) GetTeammate ¶
func (*Client) GetTeammateSubuserAccess ¶ added in v1.3.0
func (c *Client) GetTeammateSubuserAccess(ctx context.Context, teammateName string, input *InputGetTeammateSubuserAccess) (*OutputGetTeammateSubuserAccess, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/teammates/get-teammate-subuser-access
func (*Client) GetTeammates ¶
func (c *Client) GetTeammates(ctx context.Context, input *InputGetTeammates) (*OutputGetTeammates, error)
func (*Client) GetTemplate ¶ added in v0.0.14
func (*Client) GetTemplateMailSettings ¶ added in v1.14.0
func (c *Client) GetTemplateMailSettings(ctx context.Context) (*OutputGetTemplateMailSettings, error)
func (*Client) GetTemplateVersion ¶ added in v0.0.14
func (*Client) GetTemplates ¶ added in v0.0.14
func (c *Client) GetTemplates(ctx context.Context, input *InputGetTemplates) (*OutputGetTemplates, error)
func (*Client) GetTotalContactCount ¶ added in v1.10.0
func (c *Client) GetTotalContactCount(ctx context.Context) (*OutputGetTotalContactCount, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/get-total-contact-count
func (*Client) GetTrackingSettings ¶ added in v0.0.18
func (c *Client) GetTrackingSettings(ctx context.Context) (*OutputGetTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/retrieve-tracking-settings
func (*Client) GetUserAccount ¶ added in v1.15.0
func (c *Client) GetUserAccount(ctx context.Context) (*OutputGetUserAccount, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/get-a-users-account-information
func (*Client) GetUserCredits ¶ added in v1.15.0
func (c *Client) GetUserCredits(ctx context.Context) (*OutputGetUserCredits, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/retrieve-your-credit-balance
func (*Client) GetUserEmail ¶ added in v1.15.0
func (c *Client) GetUserEmail(ctx context.Context) (*OutputGetUserEmail, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/retrieve-your-account-email-address
func (*Client) GetUserProfile ¶ added in v1.15.0
func (c *Client) GetUserProfile(ctx context.Context) (*OutputGetUserProfile, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/get-a-users-profile
func (*Client) GetUsername ¶ added in v1.15.0
func (c *Client) GetUsername(ctx context.Context) (*OutputGetUsername, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/retrieve-your-username
func (*Client) GetVerifiedSenders ¶ added in v0.0.10
func (c *Client) GetVerifiedSenders(ctx context.Context, input *InputGetVerifiedSenders) ([]*VerifiedSender, error)
func (*Client) GetWebhookSecurityPolicies ¶ added in v1.14.0
func (c *Client) GetWebhookSecurityPolicies(ctx context.Context) (*OutputGetWebhookSecurityPolicies, error)
func (*Client) GetWebhookSecurityPolicy ¶ added in v1.14.0
func (*Client) ImportContacts ¶ added in v1.10.0
func (c *Client) ImportContacts(ctx context.Context, input *InputImportContacts) (*OutputImportContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/import-contacts
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) RemoveIPFromAllowList ¶ added in v1.10.0
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://www.twilio.com/docs/sendgrid/api-reference/domain-authentication/remove-an-ip-from-an-authenticated-domain
func (*Client) RemoveIPFromPool ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/remove-an-ip-address-from-a-pool
func (*Client) RemoveIPsFromAllowList ¶ added in v1.10.0
func (c *Client) RemoveIPsFromAllowList(ctx context.Context, input *InputRemoveIPsFromAllowList) error
func (*Client) RemoveRecipientFromLegacyList ¶ added in v1.15.0
func (*Client) ResendLegacySenderVerification ¶ added in v1.15.0
func (*Client) ResendMarketingSenderVerification ¶ added in v1.15.0
func (*Client) ResendVerifiedSenderRequest ¶ added in v0.0.10
func (*Client) ScheduleLegacyCampaign ¶ added in v1.15.0
func (c *Client) ScheduleLegacyCampaign(ctx context.Context, id int64, input *InputScheduleLegacyCampaign) (*OutputScheduleLegacyCampaign, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/schedule-a-campaign
func (*Client) SearchContacts ¶ added in v1.10.0
func (c *Client) SearchContacts(ctx context.Context, input *InputSearchContacts) (*OutputSearchContacts, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts/search-contacts
func (*Client) SearchForSuppressionsWithinGroup ¶ added in v1.10.0
func (*Client) SendLegacyCampaignNow ¶ added in v1.15.0
func (c *Client) SendLegacyCampaignNow(ctx context.Context, id int64) (*OutputSendLegacyCampaignNow, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/send-a-campaign
func (*Client) SendLegacyCampaignTest ¶ added in v1.15.0
func (c *Client) SendLegacyCampaignTest(ctx context.Context, id int64, input *InputSendLegacyCampaignTest) error
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/send-a-test-campaign
func (*Client) SendMail ¶ added in v1.6.0
func (c *Client) SendMail(ctx context.Context, input *InputSendMail) (*OutputSendMail, error)
SendMail sends an email using SendGrid's mail/send API see: https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send
func (*Client) StartIPWarmup ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-warmup/start-warming-up-an-ip-address
func (*Client) StopIPWarmup ¶ added in v1.6.0
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-warmup/stop-warming-up-an-ip-address
func (*Client) ToggleSignatureVerification ¶ added in v1.7.0
func (c *Client) ToggleSignatureVerification(ctx context.Context, id string, input *InputToggleSignatureVerification) (*OutputToggleSignatureVerification, error)
see: https://docs.sendgrid.com/api-reference/webhooks/toggle-signature-verification-for-an-event-webhook
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) UpdateAddressWhitelistMailSettings ¶ added in v1.14.0
func (c *Client) UpdateAddressWhitelistMailSettings(ctx context.Context, input *InputUpdateAddressWhitelistMailSettings) (*OutputUpdateAddressWhitelistMailSettings, error)
func (*Client) UpdateAlert ¶ added in v1.4.0
func (c *Client) UpdateAlert(ctx context.Context, id int64, input *InputUpdateAlert) (*OutputUpdateAlert, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/alerts/update-an-alert
func (*Client) UpdateBounceSettings ¶ added in v1.8.0
func (c *Client) UpdateBounceSettings(ctx context.Context, input *InputUpdateBounceSettings) (*OutputUpdateBounceSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/settings-mail/update-bounce-purge-mail-settings
func (*Client) UpdateBrandedLink ¶ added in v0.0.7
func (c *Client) UpdateBrandedLink(ctx context.Context, id int64, input *InputUpdateBrandedLink) (*OutputUpdateBrandedLink, error)
func (*Client) UpdateClickTrackingSettings ¶ added in v0.0.18
func (c *Client) UpdateClickTrackingSettings(ctx context.Context, input *InputUpdateClickTrackingSettings) (*OutputUpdateClickTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/update-click-tracking-settings
func (*Client) UpdateCreditsForSubuser ¶ added in v1.12.0
func (c *Client) UpdateCreditsForSubuser(ctx context.Context, username string, input *InputUpdateCreditsForSubuser) (*OutputUpdateCreditsForSubuser, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/update-credits-for-subuser
func (*Client) UpdateDesign ¶ added in v1.0.3
func (c *Client) UpdateDesign(ctx context.Context, id string, input *InputUpdateDesign) (*OutputUpdateDesign, error)
see: https://docs.sendgrid.com/api-reference/designs-api/update-design
func (*Client) UpdateDomainAuthentication ¶ added in v0.0.6
func (c *Client) UpdateDomainAuthentication(ctx context.Context, domainId int64, input *InputUpdateDomainAuthentication) (*OutputUpdateDomainAuthentication, error)
func (*Client) UpdateEnforceTLS ¶ added in v0.0.15
func (c *Client) UpdateEnforceTLS(ctx context.Context, input *InputUpdateEnforceTLS) (*OutputUpdateEnforceTLS, error)
see: https://docs.sendgrid.com/api-reference/settings-enforced-tls/update-enforced-tls-settings
func (*Client) UpdateEventWebhook ¶ added in v1.0.2
func (c *Client) UpdateEventWebhook(ctx context.Context, id string, input *InputUpdateEventWebhook) (*OutputUpdateEventWebhook, error)
see: https://docs.sendgrid.com/api-reference/webhooks/update-an-event-webhook
func (*Client) UpdateFooterMailSettings ¶ added in v1.14.0
func (c *Client) UpdateFooterMailSettings(ctx context.Context, input *InputUpdateFooterMailSettings) (*OutputUpdateFooterMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/update-footer-mail-settings
func (*Client) UpdateForwardBounceMailSettings ¶ added in v1.14.0
func (c *Client) UpdateForwardBounceMailSettings(ctx context.Context, input *InputUpdateForwardBounceMailSettings) (*OutputUpdateForwardBounceMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/update-forward-bounce-mail-settings
func (*Client) UpdateForwardSpamMailSettings ¶ added in v1.14.0
func (c *Client) UpdateForwardSpamMailSettings(ctx context.Context, input *InputUpdateForwardSpamMailSettings) (*OutputUpdateForwardSpamMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/update-forward-spam-mail-settings
func (*Client) UpdateGoogleAnalyticsSettings ¶ added in v0.0.18
func (c *Client) UpdateGoogleAnalyticsSettings(ctx context.Context, input *InputUpdateGoogleAnalyticsSettings) (*OutputUpdateGoogleAnalyticsSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/update-google-analytics-settings
func (*Client) UpdateIPPool ¶ added in v1.6.0
func (c *Client) UpdateIPPool(ctx context.Context, name string, input *InputUpdateIPPool) (*OutputUpdateIPPool, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-pools/rename-an-ip-pool
func (*Client) UpdateInboundParseWebhook ¶ added in v1.1.1
func (c *Client) UpdateInboundParseWebhook(ctx context.Context, hostname string, input *InputUpdateInboundParseWebhook) (*OutputUpdateInboundParseWebhook, error)
see: https://docs.sendgrid.com/api-reference/settings-inbound-parse/update-a-parse-setting
func (*Client) UpdateLegacyCampaign ¶ added in v1.15.0
func (c *Client) UpdateLegacyCampaign(ctx context.Context, id int64, input *InputUpdateLegacyCampaign) (*OutputUpdateLegacyCampaign, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/update-a-campaign
func (*Client) UpdateLegacyCampaignSchedule ¶ added in v1.15.0
func (c *Client) UpdateLegacyCampaignSchedule(ctx context.Context, id int64, input *InputUpdateLegacyCampaignSchedule) (*OutputUpdateLegacyCampaignSchedule, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/campaigns-api/update-a-scheduled-campaign
func (*Client) UpdateLegacyList ¶ added in v1.15.0
func (c *Client) UpdateLegacyList(ctx context.Context, id int64, input *InputUpdateLegacyList) (*OutputUpdateLegacyList, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/lists/update-a-list
func (*Client) UpdateLegacySegment ¶ added in v1.15.0
func (c *Client) UpdateLegacySegment(ctx context.Context, id int64, input *InputUpdateLegacySegment) (*OutputUpdateLegacySegment, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/contacts-api-segments/update-a-segment
func (*Client) UpdateLegacySender ¶ added in v1.15.0
func (c *Client) UpdateLegacySender(ctx context.Context, id int64, input *InputUpdateLegacySender) (*OutputUpdateLegacySender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/sender-identities-api/update-a-sender-identity
func (*Client) UpdateMarketingSender ¶ added in v1.15.0
func (c *Client) UpdateMarketingSender(ctx context.Context, id int64, input *InputUpdateMarketingSender) (*OutputUpdateMarketingSender, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/marketing-campaigns-senders/update-a-sender
func (*Client) UpdateOpenTrackingSettings ¶ added in v0.0.18
func (c *Client) UpdateOpenTrackingSettings(ctx context.Context, input *InputUpdateOpenTrackingSettings) (*OutputUpdateOpenTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/update-open-tracking-settings
func (*Client) UpdateRemainingCreditsForSubuser ¶ added in v1.12.0
func (c *Client) UpdateRemainingCreditsForSubuser(ctx context.Context, username string, input *InputUpdateRemainingCreditsForSubuser) (*OutputUpdateRemainingCreditsForSubuser, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/update-remaining-credits-for-subuser
func (*Client) UpdateSSOCertificate ¶ added in v0.0.19
func (c *Client) UpdateSSOCertificate(ctx context.Context, id int64, input *InputUpdateSSOCertificate) (*OutputUpdateSSOCertificate, error)
see: https://docs.sendgrid.com/api-reference/certificates/update-sso-certificate
func (*Client) UpdateSSOIntegration ¶ added in v0.0.19
func (c *Client) UpdateSSOIntegration(ctx context.Context, id string, input *InputUpdateSSOIntegration) (*OutputUpdateSSOIntegration, error)
UpdateSSOIntegration always sends si=true so that the response includes completed_integration, as GetSSOIntegration does.
see: https://docs.sendgrid.com/api-reference/single-sign-on-settings/update-an-sso-integration
func (*Client) UpdateSSOTeammate ¶ added in v1.2.0
func (c *Client) UpdateSSOTeammate(ctx context.Context, username string, input *InputUpdateSSOTeammate) (*OutputUpdateSSOTeammate, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/single-sign-on-teammates/edit-an-sso-teammate
func (*Client) UpdateScheduledSend ¶ added in v1.10.0
func (c *Client) UpdateScheduledSend(ctx context.Context, batchID string, input *InputUpdateScheduledSend) error
see: https://docs.sendgrid.com/api-reference/cancel-scheduled-sends/update-a-scheduled-send
func (*Client) UpdateSendIP ¶ added in v1.15.0
func (c *Client) UpdateSendIP(ctx context.Context, ip string, input *InputUpdateSendIP) (*OutputUpdateSendIP, error)
func (*Client) UpdateSendIPPool ¶ added in v1.15.0
func (c *Client) UpdateSendIPPool(ctx context.Context, poolID string, input *InputUpdateSendIPPool) (*OutputUpdateSendIPPool, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/ip-address-management/update-an-ip-pool-name
func (*Client) UpdateSubscriptionTrackingSettings ¶ added in v0.0.18
func (c *Client) UpdateSubscriptionTrackingSettings(ctx context.Context, input *InputUpdateSubscriptionTrackingSettings) (*OutputUpdateSubscriptionTrackingSettings, error)
see: https://docs.sendgrid.com/api-reference/settings-tracking/update-subscription-tracking-settings
func (*Client) UpdateSubuserIps ¶ added in v0.0.3
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/update-ips-assigned-to-a-subuser
func (*Client) UpdateSubuserStatus ¶ added in v0.0.3
func (c *Client) UpdateSubuserStatus(ctx context.Context, username string, input *InputUpdateSubuserStatus) error
see: https://www.twilio.com/docs/sendgrid/api-reference/subusers-api/enabledisable-a-subuser
func (*Client) UpdateSuppressionGroup ¶ added in v0.0.13
func (c *Client) UpdateSuppressionGroup(ctx context.Context, id int64, input *InputUpdateSuppressionGroup) (*OutputUpdateSuppressionGroup, error)
see: https://docs.sendgrid.com/api-reference/suppressions-unsubscribe-groups/update-a-suppression-group
func (*Client) UpdateTeammatePermissions ¶
func (c *Client) UpdateTeammatePermissions(ctx context.Context, username string, input *InputUpdateTeammatePermissions) (*OutputUpdateTeammatePermissions, error)
func (*Client) UpdateTemplate ¶ added in v0.0.14
func (c *Client) UpdateTemplate(ctx context.Context, id string, input *InputUpdateTemplate) (*OutputUpdateTemplate, error)
see: https://docs.sendgrid.com/api-reference/transactional-templates/edit-a-transactional-template
func (*Client) UpdateTemplateMailSettings ¶ added in v1.14.0
func (c *Client) UpdateTemplateMailSettings(ctx context.Context, input *InputUpdateTemplateMailSettings) (*OutputUpdateTemplateMailSettings, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/mail-settings/update-template-mail-settings
func (*Client) UpdateTemplateVersion ¶ added in v0.0.14
func (c *Client) UpdateTemplateVersion(ctx context.Context, templateID, versionID string, input *InputUpdateTemplateVersion) (*OutputUpdateTemplateVersion, error)
func (*Client) UpdateUserEmail ¶ added in v1.15.0
func (c *Client) UpdateUserEmail(ctx context.Context, input *InputUpdateUserEmail) (*OutputUpdateUserEmail, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/update-your-account-email-address
func (*Client) UpdateUserPassword ¶ added in v1.15.0
func (c *Client) UpdateUserPassword(ctx context.Context, input *InputUpdateUserPassword) error
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/update-your-password
func (*Client) UpdateUserProfile ¶ added in v1.15.0
func (c *Client) UpdateUserProfile(ctx context.Context, input *InputUpdateUserProfile) (*OutputUpdateUserProfile, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/update-a-users-profile
func (*Client) UpdateUsername ¶ added in v1.15.0
func (c *Client) UpdateUsername(ctx context.Context, input *InputUpdateUsername) (*OutputUpdateUsername, error)
see: https://www.twilio.com/docs/sendgrid/api-reference/user-account/update-your-username
func (*Client) UpdateVerifiedSender ¶ added in v0.0.10
func (c *Client) UpdateVerifiedSender(ctx context.Context, id int64, input *InputUpdateVerifiedSender) (*OutputUpdateVerifiedSender, error)
func (*Client) UpdateWebhookSecurityPolicy ¶ added in v1.14.0
func (c *Client) UpdateWebhookSecurityPolicy(ctx context.Context, id string, input *InputUpdateWebhookSecurityPolicy) (*OutputUpdateWebhookSecurityPolicy, error)
func (*Client) ValidateBatchID ¶ added in v1.10.0
func (*Client) ValidateBrandedLink ¶ added in v0.0.7
func (*Client) ValidateDomainAuthentication ¶ added in v0.0.6
func (*Client) ValidateReverseDNS ¶ added in v0.0.17
func (c *Client) ValidateReverseDNS(ctx context.Context, id int64) (*OutputValidateReverseDNS, error)
see: https://docs.sendgrid.com/api-reference/reverse-dns/set-up-reverse-dns
type CompletedStepsVerifiedSender ¶ added in v0.0.10
type Contact ¶ added in v1.10.0
type Contact struct {
ID string `json:"id,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
UniqueName string `json:"unique_name,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumberID string `json:"phone_number_id,omitempty"`
ExternalID string `json:"external_id,omitempty"`
AnonymousID string `json:"anonymous_id,omitempty"`
AlternateEmails []string `json:"alternate_emails,omitempty"`
AddressLine1 string `json:"address_line_1,omitempty"`
AddressLine2 string `json:"address_line_2,omitempty"`
City string `json:"city,omitempty"`
StateProvinceRegion string `json:"state_province_region,omitempty"`
Country string `json:"country,omitempty"`
PostalCode string `json:"postal_code,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"`
Whatsapp string `json:"whatsapp,omitempty"`
Line string `json:"line,omitempty"`
Facebook string `json:"facebook,omitempty"`
ListIDs []string `json:"list_ids,omitempty"`
SegmentIDs []string `json:"segment_ids,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Metadata *_Metadata `json:"_metadata,omitempty"`
}
type ContactBillableBreakdown ¶ added in v1.10.0
type ContactByEmailResult ¶ added in v1.10.0
type ContactByIdentifierResult ¶ added in v1.10.0
type ContactExportJob ¶ added in v1.10.0
type ContactExportJob struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
CompletedAt string `json:"completed_at,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
URLs []string `json:"urls,omitempty"`
UserID string `json:"user_id,omitempty"`
ExportType string `json:"export_type,omitempty"`
Segments []*ExportJobSegment `json:"segments,omitempty"`
Lists []*ExportJobList `json:"lists,omitempty"`
Metadata *_Metadata `json:"_metadata,omitempty"`
}
type ContactRequest ¶ added in v1.10.0
type ContactRequest struct {
AddressLine1 string `json:"address_line_1,omitempty"`
AddressLine2 string `json:"address_line_2,omitempty"`
AlternateEmails []string `json:"alternate_emails,omitempty"`
City string `json:"city,omitempty"`
Country string `json:"country,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumberID string `json:"phone_number_id,omitempty"`
ExternalID string `json:"external_id,omitempty"`
AnonymousID string `json:"anonymous_id,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
PostalCode string `json:"postal_code,omitempty"`
StateProvinceRegion string `json:"state_province_region,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
}
type Content ¶ added in v1.6.0
Content represents email content with type and value
func NewContent ¶ added in v1.6.0
NewContent creates a new Content struct
type CreditAllocation ¶ added in v0.0.3
type CreditAllocation struct {
Type string `json:"type"`
}
type DNS ¶ added in v0.0.6
type DNS struct {
MailCname Record `json:"mail_cname,omitempty"`
Dkim1 Record `json:"dkim1,omitempty"`
Dkim2 Record `json:"dkim2,omitempty"`
// automatic_security is true, the API response will contain 'subdomain_spf' instead of 'spf' for the SPF record. If automatic_security is false, the API response will contain 'spf' for the SPF record.
MailServer Record `json:"mail_server,omitempty"`
SubdomainSpf Record `json:"subdomain_spf,omitempty"`
Dkim Record `json:"dkim,omitempty"`
DomainSpf Record `json:"domain_spf,omitempty"`
}
type DNSBrandedLink ¶ added in v0.0.7
type Design ¶ added in v1.0.3
type Design struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
}
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 EngagementQualityMetadata ¶ added in v1.15.0
type EngagementQualityMetadata struct {
NextParams *EngagementQualityNextParams `json:"next_params,omitempty"`
}
type EngagementQualityMetrics ¶ added in v1.15.0
type EngagementQualityMetrics struct {
EngagementRecency float64 `json:"engagement_recency,omitempty"`
OpenRate float64 `json:"open_rate,omitempty"`
BounceClassification float64 `json:"bounce_classification,omitempty"`
BounceRate float64 `json:"bounce_rate,omitempty"`
SpamRate float64 `json:"spam_rate,omitempty"`
}
type EngagementQualityNextParams ¶ added in v1.15.0
type EngagementQualityNextParams struct {
AfterKey string `json:"after_key,omitempty"`
}
type EngagementQualityScore ¶ added in v1.15.0
type EngagementQualityScore struct {
UserID string `json:"user_id,omitempty"`
Username string `json:"username,omitempty"`
Date string `json:"date,omitempty"`
Score float64 `json:"score,omitempty"`
Metrics *EngagementQualityMetrics `json:"metrics,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 {
Error string `json:"error"`
}
ErrorResponse is sendgrid error response
type ErrorsResponse ¶ added in v0.0.16
type ErrorsResponse struct {
Errors []*Error `json:"errors"`
}
ErrorsResponse is sendgrid error response
func (ErrorsResponse) Errs ¶ added in v0.0.16
func (t ErrorsResponse) Errs() error
Errs : error list
type EventWebhook ¶ added in v1.0.2
type EventWebhook struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled,omitempty"`
URL string `json:"url,omitempty"`
GroupResubscribe bool `json:"group_resubscribe,omitempty"`
Delivered bool `json:"delivered,omitempty"`
GroupUnsubscribe bool `json:"group_unsubscribe,omitempty"`
SpamReport bool `json:"spam_report,omitempty"`
Bounce bool `json:"bounce,omitempty"`
Deferred bool `json:"deferred,omitempty"`
Unsubscribe bool `json:"unsubscribe,omitempty"`
Processed bool `json:"processed,omitempty"`
Open bool `json:"open,omitempty"`
Click bool `json:"click,omitempty"`
Dropped bool `json:"dropped,omitempty"`
FriendlyName string `json:"friendly_name,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
PublicKey string `json:"public_key,omitempty"`
}
type ExportContactsNotification ¶ added in v1.10.0
type ExportContactsNotification struct {
Email bool `json:"email,omitempty"`
}
type ExportJobList ¶ added in v1.10.0
type ExportJobSegment ¶ added in v1.10.0
type FooterSetting ¶ added in v1.6.0
type FooterSetting struct {
}
FooterSetting represents footer settings
type GlobalStat ¶ added in v1.6.0
type GlobalStat struct {
Date string `json:"date,omitempty"`
Stats StatMetrics `json:"stats,omitempty"`
}
GlobalStat represents global statistics
type GlobalUnsubscribe ¶ added in v1.10.0
type GoogleAnalyticsSetting ¶ added in v1.6.0
type GoogleAnalyticsSetting struct {
Enable *bool `json:"enable,omitempty"`
UTMSource string `json:"utm_source,omitempty"`
UTMMedium string `json:"utm_medium,omitempty"`
UTMTerm string `json:"utm_term,omitempty"`
UTMContent string `json:"utm_content,omitempty"`
UTMCampaign string `json:"utm_campaign,omitempty"`
}
GoogleAnalyticsSetting represents Google Analytics settings
type IPAddress ¶ added in v1.6.0
type IPAddress struct {
IP string `json:"ip,omitempty"`
Pools []string `json:"pools,omitempty"`
Warmup bool `json:"warmup,omitempty"`
StartDate int64 `json:"start_date,omitempty"`
Subusers []string `json:"subusers,omitempty"`
Rdns string `json:"rdns,omitempty"`
AssignedAt int64 `json:"assigned_at,omitempty"`
Whitelabeled bool `json:"whitelabeled,omitempty"`
}
type IPPool ¶ added in v1.6.0
type IPPool struct {
Name string `json:"name,omitempty"`
}
IPPool represents an IP pool
type ImportContactsResults ¶ added in v1.10.0
type ImportContactsResults struct {
RequestedCount int64 `json:"requested_count,omitempty"`
CreatedCount int64 `json:"created_count,omitempty"`
UpdatedCount int64 `json:"updated_count,omitempty"`
DeletedCount int64 `json:"deleted_count,omitempty"`
ErroredCount int64 `json:"errored_count,omitempty"`
ErrorsURL string `json:"errors_url,omitempty"`
}
type ImportContactsUploadHeader ¶ added in v1.10.0
type InboundParseWebhook ¶ added in v1.1.1
type InputAddIPToAuthenticatedDomain ¶ added in v0.0.6
type InputAddIPToAuthenticatedDomain struct {
IP string `json:"ip,omitempty"`
}
type InputAddIPToPool ¶ added in v1.6.0
type InputAddIPToPool struct {
IP string `json:"ip"`
}
type InputAddIPsToAllowList ¶ added in v1.10.0
type InputAddIPsToAllowList struct {
IPs []AllowListIP `json:"ips,omitempty"`
}
type InputAddOrUpdateContacts ¶ added in v1.10.0
type InputAddOrUpdateContacts struct {
ListIDs []string `json:"list_ids,omitempty"`
Contacts []*ContactRequest `json:"contacts"`
}
type InputAddRecipientAddressesToGlobalSuppressions ¶ added in v1.10.0
type InputAddRecipientAddressesToGlobalSuppressions struct {
RecipientEmails []string `json:"recipient_emails,omitempty"`
}
type InputAddRecipientsToLegacyList ¶ added in v1.15.0
type InputAddRecipientsToLegacyList []string
type InputAddSendIP ¶ added in v1.15.0
type InputAddSuppressionsToGroup ¶ added in v1.10.0
type InputAddSuppressionsToGroup struct {
RecipientEmails []string `json:"recipient_emails,omitempty"`
}
type InputAssociateAuthenticatedDomainWithSubuser ¶ added in v0.0.6
type InputAssociateAuthenticatedDomainWithSubuser struct {
Username string `json:"username,omitempty"`
}
type InputAssociateAuthenticatedDomainWithSubuserMultiple ¶ added in v1.15.0
type InputAssociateAuthenticatedDomainWithSubuserMultiple struct {
Username string `json:"username,omitempty"`
}
type InputAssociateBrandedLinkWithSubuser ¶ added in v0.0.7
type InputAssociateBrandedLinkWithSubuser 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"`
CustomDkimSelector string `json:"custom_dkim_selector,omitempty"`
Region string `json:"region,omitempty"`
}
type InputBatchAddSendIPPoolIPs ¶ added in v1.15.0
type InputBatchAddSendIPPoolIPs struct {
IPs []string `json:"ips"`
}
type InputBatchAddSendIPSubusers ¶ added in v1.15.0
type InputBatchAddSendIPSubusers struct {
Subusers []string `json:"subusers"`
}
type InputBatchDeleteSendIPPoolIPs ¶ added in v1.15.0
type InputBatchDeleteSendIPPoolIPs struct {
IPs []string `json:"ips"`
}
type InputBatchDeleteSendIPSubusers ¶ added in v1.15.0
type InputBatchDeleteSendIPSubusers struct {
Subusers []string `json:"subusers"`
}
type InputCreateAPIKey ¶ added in v0.0.2
type InputCreateAlert ¶ added in v1.4.0
type InputCreateBrandedLink ¶ added in v0.0.7
type InputCreateDesign ¶ added in v1.0.3
type InputCreateDesign struct {
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type InputCreateEventWebhook ¶ added in v1.0.2
type InputCreateEventWebhook struct {
Enabled bool `json:"enabled"`
URL string `json:"url,omitempty"`
GroupResubscribe bool `json:"group_resubscribe"`
Delivered bool `json:"delivered"`
GroupUnsubscribe bool `json:"group_unsubscribe"`
SpamReport bool `json:"spam_report"`
Bounce bool `json:"bounce"`
Deferred bool `json:"deferred"`
Unsubscribe bool `json:"unsubscribe"`
Processed bool `json:"processed"`
Open bool `json:"open"`
Click bool `json:"click"`
Dropped bool `json:"dropped"`
FriendlyName string `json:"friendly_name,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthClientSecret string `json:"oauth_client_secret,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
}
type InputCreateIPPool ¶ added in v1.11.0
type InputCreateIPPool struct {
Name string `json:"name,omitempty"`
}
type InputCreateInboundParseWebhook ¶ added in v1.1.1
type InputCreateLegacyCampaign ¶ added in v1.15.0
type InputCreateLegacyCampaign struct {
Title string `json:"title"`
Subject string `json:"subject,omitempty"`
SenderID int64 `json:"sender_id,omitempty"`
ListIDs []int64 `json:"list_ids,omitempty"`
SegmentIDs []int64 `json:"segment_ids,omitempty"`
Categories []string `json:"categories,omitempty"`
SuppressionGroupID int64 `json:"suppression_group_id,omitempty"`
CustomUnsubscribeURL string `json:"custom_unsubscribe_url,omitempty"`
IPPool string `json:"ip_pool,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Editor string `json:"editor,omitempty"`
}
type InputCreateLegacyList ¶ added in v1.15.0
type InputCreateLegacyList struct {
Name string `json:"name"`
}
type InputCreateLegacySegment ¶ added in v1.15.0
type InputCreateLegacySegment struct {
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
}
type InputCreateLegacySender ¶ added in v1.15.0
type InputCreateLegacySender struct {
Nickname string `json:"nickname,omitempty"`
From *LegacySenderAddress `json:"from,omitempty"`
ReplyTo *LegacySenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputCreateMarketingSender ¶ added in v1.15.0
type InputCreateMarketingSender struct {
Nickname string `json:"nickname,omitempty"`
From *MarketingSenderAddress `json:"from,omitempty"`
ReplyTo *MarketingSenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputCreateReverseDNS ¶ added in v0.0.17
type InputCreateSSOCertificate ¶ added in v0.0.20
type InputCreateSSOIntegration ¶ added in v0.0.19
type InputCreateSSOIntegration struct {
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration"`
}
type InputCreateSSOTeammate ¶ added in v1.2.0
type InputCreateSSOTeammate struct {
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsAdmin bool `json:"is_admin"`
IsSSO bool `json:"is_sso"`
Persona string `json:"persona,omitempty"`
Scopes []string `json:"scopes,omitempty"`
HasRestrictedSubuserAccess bool `json:"has_restricted_subuser_access,omitempty"`
SubuserAccess []InputSubuserAccess `json:"subuser_access,omitempty"`
}
type InputCreateSendIPPool ¶ added in v1.15.0
type InputCreateSubuser ¶ added in v0.0.3
type InputCreateSuppressionGroup ¶ added in v0.0.13
type InputCreateTemplate ¶ added in v0.0.14
type InputCreateTemplateVersion ¶ added in v0.0.14
type InputCreateTemplateVersion struct {
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
}
type InputCreateVerifiedSenderRequest ¶ added in v0.0.10
type InputCreateVerifiedSenderRequest struct {
Nickname string `json:"nickname,omitempty"`
FromEmail string `json:"from_email,omitempty"`
FromName string `json:"from_name,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
ReplyToName string `json:"reply_to_name,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputCreateWebhookSecurityPolicy ¶ added in v1.14.0
type InputCreateWebhookSecurityPolicy struct {
Name string `json:"name,omitempty"`
OAuth *WebhookSecurityPolicyOAuth `json:"oauth,omitempty"`
Signature *WebhookSecurityPolicySignature `json:"signature,omitempty"`
}
type InputDeleteContactIdentifier ¶ added in v1.10.0
type InputDeleteContacts ¶ added in v1.10.0
type InputDeleteLegacyList ¶ added in v1.15.0
type InputDeleteLegacyList struct {
DeleteContacts bool `url:"delete_contacts,omitempty"`
}
type InputDeleteLegacyLists ¶ added in v1.15.0
type InputDeleteLegacyLists []int64
type InputDeleteSuppressions ¶ added in v1.6.0
type InputDeleteSuppressions struct {
Emails []string `json:"emails,omitempty"`
DeleteAll bool `json:"delete_all,omitempty"`
}
InputDeleteSuppressions represents the request body for deleting suppressions
type InputDuplicateDesign ¶ added in v1.10.0
type InputDuplicatePreBuiltDesign ¶ added in v1.15.0
type InputDuplicateTemplate ¶ added in v0.0.14
type InputDuplicateTemplate struct {
Name string `json:"name,omitempty"`
}
type InputEmailDNSRecordsToCoworker ¶ added in v1.15.0
type InputExportContacts ¶ added in v1.10.0
type InputExportContacts struct {
ListIDs []string `json:"list_ids,omitempty"`
SegmentIDs []string `json:"segment_ids,omitempty"`
Notifications *ExportContactsNotification `json:"notifications,omitempty"`
FileType string `json:"file_type,omitempty"`
MaxFileSize int64 `json:"max_file_size,omitempty"`
}
type InputGetAccessActivities ¶ added in v1.10.0
type InputGetAccessActivities struct {
Limit int `json:"limit,omitempty"`
}
type InputGetAuthenticatedDomains ¶ added in v0.0.6
type InputGetBatchedContactsByIDs ¶ added in v1.10.0
type InputGetBatchedContactsByIDs struct {
IDs []string `json:"ids"`
}
type InputGetBounceClassifications ¶ added in v1.15.0
type InputGetBounceClassifications struct {
StartDate string `url:"start_date,omitempty"`
EndDate string `url:"end_date,omitempty"`
}
InputGetBounceClassifications represents query parameters for retrieving bounce classification totals
type InputGetBounceClassificationsByDomain ¶ added in v1.15.0
type InputGetBounceClassificationsByDomain struct {
StartDate string `url:"start_date,omitempty"`
EndDate string `url:"end_date,omitempty"`
}
InputGetBounceClassificationsByDomain represents query parameters for retrieving bounce classification over time by domain stats
type InputGetBrandedLinks ¶ added in v0.0.7
type InputGetBrandedLinks struct {
Limit int
}
type InputGetContactsByEmails ¶ added in v1.10.0
type InputGetContactsByIdentifiers ¶ added in v1.10.0
type InputGetContactsByIdentifiers struct {
Identifiers []string `json:"identifiers"`
}
type InputGetDefaultAuthentication ¶ added in v0.0.6
type InputGetDefaultAuthentication struct {
Domain string
}
type InputGetDesigns ¶ added in v1.10.0
type InputGetEngagementQualityScores ¶ added in v1.15.0
type InputGetGlobalSuppressions ¶ added in v1.10.0
type InputGetIPAddresses ¶ added in v1.11.0
type InputGetLegacyCampaigns ¶ added in v1.15.0
type InputGetLegacyListRecipients ¶ added in v1.15.0
type InputGetLegacySegmentRecipients ¶ added in v1.15.0
type InputGetMailSettings ¶ added in v1.14.0
type InputGetPartnerSettings ¶ added in v1.15.0
type InputGetPreBuiltDesigns ¶ added in v1.10.0
type InputGetReverseDNSs ¶ added in v0.0.17
type InputGetSSOIntegrations ¶ added in v0.0.19
type InputGetSSOIntegrations struct {
Si bool `json:"si,omitempty"`
}
type InputGetSendIPPoolIPs ¶ added in v1.15.0
type InputGetSendIPPools ¶ added in v1.15.0
type InputGetSendIPSubusers ¶ added in v1.15.0
type InputGetSendIPs ¶ added in v1.15.0
type InputGetSendIPs struct {
IP string `url:"ip,omitempty"`
Limit int `url:"limit,omitempty"`
AfterKey int `url:"after_key,omitempty"`
BeforeKey string `url:"before_key,omitempty"`
IsLeased bool `url:"is_leased,omitempty"`
IsEnabled bool `url:"is_enabled,omitempty"`
IsParentAssigned bool `url:"is_parent_assigned,omitempty"`
Pool string `url:"pool,omitempty"`
StartAddedAt int `url:"start_added_at,omitempty"`
EndAddedAt int `url:"end_added_at,omitempty"`
Region string `url:"region,omitempty"`
IncludeRegion bool `url:"include_region,omitempty"`
}
type InputGetSubuserEngagementQualityScores ¶ added in v1.15.0
type InputGetSubusers ¶ added in v0.0.3
type InputGetTeammateSubuserAccess ¶ added in v1.3.0
type InputGetTeammates ¶ added in v1.5.0
type InputGetTemplates ¶ added in v0.0.14
type InputGetVerifiedSenders ¶ added in v0.0.10
type InputImportContacts ¶ added in v1.10.0
type InputInviteTeammate ¶
type InputRemoveIPsFromAllowList ¶ added in v1.10.0
type InputRemoveIPsFromAllowList struct {
IDs []int64 `json:"ids,omitempty"`
}
type InputScheduleLegacyCampaign ¶ added in v1.15.0
type InputScheduleLegacyCampaign struct {
SendAt int64 `json:"send_at"`
}
type InputSearchContacts ¶ added in v1.10.0
type InputSearchContacts struct {
Query string `json:"query,omitempty"`
}
type InputSearchGroupSuppressions ¶ added in v1.10.0
type InputSearchGroupSuppressions struct {
RecipientEmails []string `json:"recipient_emails,omitempty"`
}
type InputSendLegacyCampaignTest ¶ added in v1.15.0
type InputSendLegacyCampaignTest struct {
To string `json:"to"`
}
type InputSendMail ¶ added in v1.6.0
type InputSendMail struct {
Personalizations []*Personalization `json:"personalizations"`
From *Email `json:"from"`
ReplyTo *ReplyTo `json:"reply_to,omitempty"`
ReplyToList []*ReplyToList `json:"reply_to_list,omitempty"`
Subject string `json:"subject,omitempty"`
Content []*Content `json:"content,omitempty"`
Attachments []*Attachment `json:"attachments,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Categories []string `json:"categories,omitempty"`
CustomArgs map[string]string `json:"custom_args,omitempty"`
SendAt int64 `json:"send_at,omitempty"`
BatchID string `json:"batch_id,omitempty"`
ASM *ASM `json:"asm,omitempty"`
IPPoolName string `json:"ip_pool_name,omitempty"`
MailSettings *MailSettings `json:"mail_settings,omitempty"`
TrackingSettings *TrackingSettings `json:"tracking_settings,omitempty"`
}
InputSendMail represents the request body for sending mail
func NewInputSendMail ¶ added in v1.6.0
func NewInputSendMail() *InputSendMail
NewInputSendMail creates a new InputSendMail struct
func (*InputSendMail) AddAttachment ¶ added in v1.6.0
func (m *InputSendMail) AddAttachment(attachment *Attachment)
AddAttachment adds an attachment to the mail
func (*InputSendMail) AddCategory ¶ added in v1.6.0
func (m *InputSendMail) AddCategory(category string)
AddCategory adds a category to the mail
func (*InputSendMail) AddContent ¶ added in v1.6.0
func (m *InputSendMail) AddContent(content *Content)
AddContent adds content to the mail
func (*InputSendMail) AddPersonalization ¶ added in v1.6.0
func (m *InputSendMail) AddPersonalization(personalization *Personalization)
AddPersonalization adds a personalization to the mail
func (*InputSendMail) SetFrom ¶ added in v1.6.0
func (m *InputSendMail) SetFrom(from *Email)
SetFrom sets the from email address
func (*InputSendMail) SetSendAt ¶ added in v1.6.0
func (m *InputSendMail) SetSendAt(sendAt time.Time)
SetSendAt sets the send time for the mail
func (*InputSendMail) SetSubject ¶ added in v1.6.0
func (m *InputSendMail) SetSubject(subject string)
SetSubject sets the email subject
func (*InputSendMail) SetTemplateID ¶ added in v1.6.0
func (m *InputSendMail) SetTemplateID(templateID string)
SetTemplateID sets the template ID for the mail
type InputStartIPWarmup ¶ added in v1.11.0
type InputStartIPWarmup struct {
IP string `json:"ip"`
}
type InputSubuserAccess ¶ added in v1.2.0
type InputToggleSignatureVerification ¶ added in v1.7.0
type InputToggleSignatureVerification struct {
Enabled bool `json:"enabled"`
}
type InputUpdateAPIKeyName ¶ added in v0.0.2
type InputUpdateAPIKeyName struct {
Name string `json:"name"`
}
type InputUpdateAPIKeyNameAndScopes ¶ added in v0.0.2
type InputUpdateAddressWhitelistMailSettings ¶ added in v1.14.0
type InputUpdateAlert ¶ added in v1.4.0
type InputUpdateBounceSettings ¶ added in v1.8.0
type InputUpdateBrandedLink ¶ added in v0.0.7
type InputUpdateBrandedLink struct {
Default bool `json:"default"`
}
type InputUpdateClickTrackingSettings ¶ added in v0.0.18
type InputUpdateClickTrackingSettings struct {
Enabled bool `json:"enabled"`
}
type InputUpdateCreditsForSubuser ¶ added in v1.12.0
type InputUpdateDesign ¶ added in v1.0.3
type InputUpdateDesign struct {
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type InputUpdateDomainAuthentication ¶ added in v0.0.6
type InputUpdateEnforceTLS ¶ added in v0.0.15
type InputUpdateEventWebhook ¶ added in v1.0.2
type InputUpdateEventWebhook struct {
Enabled bool `json:"enabled"`
URL string `json:"url,omitempty"`
GroupResubscribe bool `json:"group_resubscribe"`
Delivered bool `json:"delivered"`
GroupUnsubscribe bool `json:"group_unsubscribe"`
SpamReport bool `json:"spam_report"`
Bounce bool `json:"bounce"`
Deferred bool `json:"deferred"`
Unsubscribe bool `json:"unsubscribe"`
Processed bool `json:"processed"`
Open bool `json:"open"`
Click bool `json:"click"`
Dropped bool `json:"dropped"`
FriendlyName string `json:"friendly_name,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthClientSecret string `json:"oauth_client_secret,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
}
type InputUpdateFooterMailSettings ¶ added in v1.14.0
type InputUpdateFooterMailSettings struct {
}
type InputUpdateForwardBounceMailSettings ¶ added in v1.14.0
type InputUpdateForwardSpamMailSettings ¶ added in v1.14.0
type InputUpdateGoogleAnalyticsSettings ¶ added in v0.0.18
type InputUpdateGoogleAnalyticsSettings struct {
Enabled bool `json:"enabled"`
UTMCampaign string `json:"utm_campaign,omitempty"`
UTMContent string `json:"utm_content,omitempty"`
UTMMedium string `json:"utm_medium,omitempty"`
UTMSource string `json:"utm_source,omitempty"`
UTMTerm string `json:"utm_term,omitempty"`
}
type InputUpdateIPPool ¶ added in v1.11.0
type InputUpdateIPPool struct {
Name string `json:"name,omitempty"`
}
type InputUpdateInboundParseWebhook ¶ added in v1.1.1
type InputUpdateLegacyCampaign ¶ added in v1.15.0
type InputUpdateLegacyCampaignSchedule ¶ added in v1.15.0
type InputUpdateLegacyCampaignSchedule struct {
SendAt int64 `json:"send_at"`
}
type InputUpdateLegacyList ¶ added in v1.15.0
type InputUpdateLegacyList struct {
Name string `json:"name"`
}
type InputUpdateLegacySegment ¶ added in v1.15.0
type InputUpdateLegacySegment struct {
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
}
type InputUpdateLegacySender ¶ added in v1.15.0
type InputUpdateLegacySender struct {
Nickname string `json:"nickname,omitempty"`
From *LegacySenderAddress `json:"from,omitempty"`
ReplyTo *LegacySenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputUpdateMarketingSender ¶ added in v1.15.0
type InputUpdateMarketingSender struct {
Nickname string `json:"nickname,omitempty"`
From *MarketingSenderAddress `json:"from,omitempty"`
ReplyTo *MarketingSenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputUpdateOpenTrackingSettings ¶ added in v0.0.18
type InputUpdateOpenTrackingSettings struct {
Enabled bool `json:"enabled"`
}
type InputUpdateRemainingCreditsForSubuser ¶ added in v1.12.0
type InputUpdateRemainingCreditsForSubuser struct {
AllocationUpdate int `json:"allocation_update,omitempty"`
}
type InputUpdateSSOCertificate ¶ added in v0.0.19
type InputUpdateSSOIntegration ¶ added in v0.0.19
type InputUpdateSSOIntegration struct {
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration"`
}
type InputUpdateSSOTeammate ¶ added in v1.2.0
type InputUpdateSSOTeammate struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
IsAdmin bool `json:"is_admin"`
Persona string `json:"persona,omitempty"`
Scopes []string `json:"scopes,omitempty"`
HasRestrictedSubuserAccess bool `json:"has_restricted_subuser_access,omitempty"`
SubuserAccess []InputSubuserAccess `json:"subuser_access,omitempty"`
}
type InputUpdateScheduledSend ¶ added in v1.10.0
type InputUpdateScheduledSend struct {
Status string `json:"status,omitempty"`
}
type InputUpdateSendIP ¶ added in v1.15.0
type InputUpdateSendIPPool ¶ added in v1.15.0
type InputUpdateSendIPPool struct {
Name string `json:"name"`
}
type InputUpdateSubscriptionTrackingSettings ¶ added in v0.0.18
type InputUpdateSubscriptionTrackingSettings struct {
Enabled bool `json:"enabled"`
HTMLContent string `json:"html_content,omitempty"`
Landing string `json:"landing,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Replace string `json:"replace,omitempty"`
URL string `json:"url,omitempty"`
}
type InputUpdateSubuserStatus ¶ added in v0.0.3
type InputUpdateSubuserStatus struct {
Disabled bool `json:"disabled"`
}
type InputUpdateSuppressionGroup ¶ added in v0.0.13
type InputUpdateTemplate ¶ added in v0.0.14
type InputUpdateTemplate struct {
Name string `json:"name,omitempty"`
}
type InputUpdateTemplateMailSettings ¶ added in v1.14.0
type InputUpdateTemplateVersion ¶ added in v0.0.14
type InputUpdateTemplateVersion struct {
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
}
type InputUpdateUserEmail ¶ added in v1.15.0
type InputUpdateUserEmail struct {
Email string `json:"email,omitempty"`
}
type InputUpdateUserPassword ¶ added in v1.15.0
type InputUpdateUserProfile ¶ added in v1.15.0
type InputUpdateUserProfile struct {
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
Company string `json:"company,omitempty"`
Country string `json:"country,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Phone string `json:"phone,omitempty"`
State string `json:"state,omitempty"`
Website string `json:"website,omitempty"`
Zip string `json:"zip,omitempty"`
}
type InputUpdateUsername ¶ added in v1.15.0
type InputUpdateUsername struct {
Username string `json:"username,omitempty"`
}
type InputUpdateVerifiedSender ¶ added in v0.0.10
type InputUpdateVerifiedSender struct {
Nickname string `json:"nickname,omitempty"`
FromEmail string `json:"from_email,omitempty"`
FromName string `json:"from_name,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
ReplyToName string `json:"reply_to_name,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
}
type InputUpdateWebhookSecurityPolicy ¶ added in v1.14.0
type InputUpdateWebhookSecurityPolicy struct {
Name string `json:"name,omitempty"`
OAuth *WebhookSecurityPolicyOAuth `json:"oauth,omitempty"`
Signature *WebhookSecurityPolicySignature `json:"signature,omitempty"`
}
type InvalidEmail ¶ added in v1.6.0
type InvalidEmail struct {
Created int64 `json:"created"`
Email string `json:"email"`
Reason string `json:"reason"`
}
InvalidEmail represents an invalid email
type LegacyCampaign ¶ added in v1.15.0
type LegacyCampaign struct {
ID int64 `json:"id,omitempty"`
Title string `json:"title,omitempty"`
Subject string `json:"subject,omitempty"`
SenderID int64 `json:"sender_id,omitempty"`
ListIDs []int64 `json:"list_ids,omitempty"`
SegmentIDs []int64 `json:"segment_ids,omitempty"`
Categories []string `json:"categories,omitempty"`
SuppressionGroupID int64 `json:"suppression_group_id,omitempty"`
CustomUnsubscribeURL string `json:"custom_unsubscribe_url,omitempty"`
IPPool string `json:"ip_pool,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Editor string `json:"editor,omitempty"`
Status string `json:"status,omitempty"`
}
LegacyCampaign represents a Legacy Marketing Campaigns campaign resource.
type LegacyList ¶ added in v1.15.0
type LegacyListRecipient ¶ added in v1.15.0
type LegacyListRecipient struct {
ID string `json:"id,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
CustomFields []*LegacyListRecipientCustomField `json:"custom_fields,omitempty"`
Email string `json:"email,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
LastClicked int64 `json:"last_clicked,omitempty"`
LastEmailed int64 `json:"last_emailed,omitempty"`
LastOpened int64 `json:"last_opened,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
}
type LegacyListRecipientCustomField ¶ added in v1.15.0
type LegacySegment ¶ added in v1.15.0
type LegacySegment struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
LegacySegment represents a Legacy Marketing Campaigns contactdb segment.
type LegacySegmentCondition ¶ added in v1.15.0
type LegacySegmentCondition struct {
Field string `json:"field,omitempty"`
Value string `json:"value,omitempty"`
Operator string `json:"operator,omitempty"`
AndOr string `json:"and_or,omitempty"`
}
LegacySegmentCondition represents a single condition used to build a Legacy Marketing Campaigns segment.
type LegacySegmentRecipient ¶ added in v1.15.0
type LegacySegmentRecipient struct {
ID string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
LastClicked int64 `json:"last_clicked,omitempty"`
LastEmailed int64 `json:"last_emailed,omitempty"`
LastOpened int64 `json:"last_opened,omitempty"`
CustomFields []map[string]interface{} `json:"custom_fields,omitempty"`
}
LegacySegmentRecipient represents a recipient returned by the Legacy Marketing Campaigns "Retrieve recipients on a segment" endpoint.
type LegacySender ¶ added in v1.15.0
type LegacySender struct {
ID int64 `json:"id,omitempty"`
Nickname string `json:"nickname,omitempty"`
From *LegacySenderAddress `json:"from,omitempty"`
ReplyTo *LegacySenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
Verified *LegacySenderVerified `json:"verified,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
Locked bool `json:"locked,omitempty"`
}
LegacySender represents a Legacy Marketing Campaigns sender identity.
type LegacySenderAddress ¶ added in v1.15.0
type LegacySenderAddress struct {
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
}
LegacySenderAddress represents the from or reply_to address of a Legacy Marketing Campaigns sender identity.
type LegacySenderVerified ¶ added in v1.15.0
type MailSetting ¶ added in v1.14.0
type MailSettings ¶ added in v1.6.0
type MailSettings struct {
BypassListManagement *Setting `json:"bypass_list_management,omitempty"`
BypassSpamManagement *Setting `json:"bypass_spam_management,omitempty"`
BypassBounceManagement *Setting `json:"bypass_bounce_management,omitempty"`
BypassUnsubscribeManagement *Setting `json:"bypass_unsubscribe_management,omitempty"`
SandBoxMode *Setting `json:"sandbox_mode,omitempty"`
SpamCheck *SpamCheckSetting `json:"spam_check,omitempty"`
}
MailSettings contains various mail settings
type MarketingSender ¶ added in v1.15.0
type MarketingSender struct {
ID int64 `json:"id,omitempty"`
Nickname string `json:"nickname,omitempty"`
From *MarketingSenderAddress `json:"from,omitempty"`
ReplyTo *MarketingSenderAddress `json:"reply_to,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address_2,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
Verified *MarketingSenderVerified `json:"verified,omitempty"`
Locked bool `json:"locked,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
}
MarketingSender represents a Marketing Campaigns Sender.
type MarketingSenderAddress ¶ added in v1.15.0
type MarketingSenderAddress struct {
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
}
MarketingSenderAddress represents the from or reply_to address of a Marketing Campaigns Sender.
type MarketingSenderVerified ¶ added in v1.15.0
type Member ¶ added in v1.2.1
type Member struct {
Teammate
Company string `json:"company,omitempty"`
IsSSO bool `json:"is_sso,omitempty"`
Scopes []string `json:"scopes,omitempty"`
}
consolidating normal teammate and SSO teammate fields
type MetadataGetTeammateSubuserAccess ¶ added in v1.3.0
type MetadataGetTeammateSubuserAccess struct {
NextParams NextParams `json:"next_params,omitempty"`
}
type NextParams ¶ added in v1.3.0
type OpenTrackingSetting ¶ added in v1.6.0
type OpenTrackingSetting struct {
Enable *bool `json:"enable,omitempty"`
SubstitutionTag string `json:"substitution_tag,omitempty"`
}
OpenTrackingSetting represents open tracking settings
type OutputActivateTemplateVersion ¶ added in v0.0.14
type OutputActivateTemplateVersion struct {
ID string `json:"id,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Warnings []Warning `json:"warnings,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
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 OutputAddIPToPool ¶ added in v1.11.0
type OutputAddIPsToAllowList ¶ added in v1.10.0
type OutputAddIPsToAllowList struct {
Result []*AllowedIP `json:"result,omitempty"`
}
type OutputAddOrUpdateContacts ¶ added in v1.10.0
type OutputAddOrUpdateContacts struct {
JobID string `json:"job_id,omitempty"`
}
type OutputAddRecipientAddressesToGlobalSuppressions ¶ added in v1.10.0
type OutputAddRecipientAddressesToGlobalSuppressions struct {
RecipientEmails []string `json:"recipient_emails,omitempty"`
}
type OutputAddSendIP ¶ added in v1.15.0
type OutputAddSuppressionsToGroup ¶ added in v1.10.0
type OutputAddSuppressionsToGroup struct {
RecipientEmails []string `json:"recipient_emails,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 OutputAssociateAuthenticatedDomainWithSubuserMultiple ¶ added in v1.15.0
type OutputAssociateAuthenticatedDomainWithSubuserMultiple 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 OutputAssociateBrandedLinkWithSubuser ¶ added in v0.0.7
type OutputAssociateBrandedLinkWithSubuser struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,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 OutputBatchAddSendIPPoolIPs ¶ added in v1.15.0
type OutputBatchAddSendIPSubusers ¶ added in v1.15.0
type OutputBatchDeleteSendIPPoolIPs ¶ added in v1.15.0
type OutputBatchDeleteSendIPPoolIPs struct{}
OutputBatchDeleteSendIPPoolIPs is intentionally empty: the API responds with 204 No Content on success.
type OutputBatchDeleteSendIPSubusers ¶ added in v1.15.0
type OutputBatchDeleteSendIPSubusers struct{}
OutputBatchDeleteSendIPSubusers is intentionally empty: the API responds with 204 No Content on success.
type OutputCancelOrPauseScheduledSend ¶ added in v1.10.0
type OutputCompletedStepsVerifiedSender ¶ added in v0.0.10
type OutputCompletedStepsVerifiedSender struct {
CompletedStepsVerifiedSender *CompletedStepsVerifiedSender `json:"results,omitempty"`
}
type OutputCreateAPIKey ¶ added in v0.0.2
type OutputCreateAlert ¶ added in v1.4.0
type OutputCreateAlert struct {
ID int64 `json:"id,omitempty"`
EmailTo string `json:"email_to,omitempty"`
Frequency string `json:"frequency,omitempty"`
Type string `json:"type,omitempty"`
Percentage int64 `json:"percentage,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
}
type OutputCreateBatchID ¶ added in v1.10.0
type OutputCreateBatchID struct {
BatchID string `json:"batch_id,omitempty"`
}
type OutputCreateBrandedLink ¶ added in v0.0.7
type OutputCreateBrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type OutputCreateDesign ¶ added in v1.0.3
type OutputCreateDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type OutputCreateEventWebhook ¶ added in v1.0.2
type OutputCreateEventWebhook struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled,omitempty"`
URL string `json:"url,omitempty"`
AccountStatusChange bool `json:"account_status_change,omitempty"`
GroupResubscribe bool `json:"group_resubscribe,omitempty"`
Delivered bool `json:"delivered,omitempty"`
GroupUnsubscribe bool `json:"group_unsubscribe,omitempty"`
SpamReport bool `json:"spam_report,omitempty"`
Bounce bool `json:"bounce,omitempty"`
Deferred bool `json:"deferred,omitempty"`
Unsubscribe bool `json:"unsubscribe,omitempty"`
Processed bool `json:"processed,omitempty"`
Open bool `json:"open,omitempty"`
Click bool `json:"click,omitempty"`
Dropped bool `json:"dropped,omitempty"`
FriendlyName string `json:"friendly_name,omitempty"`
CreatedDate string `json:"created_date,omitempty"`
UpdatedDate string `json:"updated_date,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
}
type OutputCreateIPPool ¶ added in v1.11.0
type OutputCreateIPPool struct {
Name string `json:"name,omitempty"`
}
type OutputCreateInboundParseWebhook ¶ added in v1.1.1
type OutputCreateLegacyCampaign ¶ added in v1.15.0
type OutputCreateLegacyCampaign LegacyCampaign
type OutputCreateLegacyList ¶ added in v1.15.0
type OutputCreateLegacyList LegacyList
type OutputCreateLegacySegment ¶ added in v1.15.0
type OutputCreateLegacySegment struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
type OutputCreateLegacySender ¶ added in v1.15.0
type OutputCreateLegacySender LegacySender
type OutputCreateMarketingSender ¶ added in v1.15.0
type OutputCreateMarketingSender MarketingSender
type OutputCreateReverseDNS ¶ added in v0.0.17
type OutputCreateReverseDNS struct {
ID int64 `json:"id,omitempty"`
IP string `json:"ip,omitempty"`
RDNS string `json:"rdns,omitempty"`
Users []*User `json:"users,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
ARecord ARecord `json:"a_record,omitempty"`
}
type OutputCreateSSOCertificate ¶ added in v0.0.20
type OutputCreateSSOIntegration ¶ added in v0.0.19
type OutputCreateSSOIntegration struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration,omitempty"`
LastUpdated int64 `json:"last_updated,omitempty"`
SingleSignonURL string `json:"single_signon_url,omitempty"`
AudienceURL string `json:"audience_url,omitempty"`
}
type OutputCreateSSOTeammate ¶ added in v1.2.0
type OutputCreateSSOTeammate struct {
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Email string `json:"email,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
IsSSO bool `json:"is_sso,omitempty"`
Scopes []string `json:"scopes,omitempty"`
HasRestrictedSubuserAccess bool `json:"has_restricted_subuser_access,omitempty"`
SubuserAccess []OutputSubuserAccess `json:"subuser_access,omitempty"`
}
type OutputCreateSendIPPool ¶ added in v1.15.0
type OutputCreateSubuser ¶ added in v0.0.3
type OutputCreateSubuser struct {
UserID int64 `json:"user_id"`
Username string `json:"username"`
Email string `json:"email"`
SignupSessionToken string `json:"signup_session_token"`
AuthorizationToken string `json:"authorization_token"`
CreditAllocation CreditAllocation `json:"credit_allocation"`
Region string `json:"region"`
}
type OutputCreateSuppressionGroup ¶ added in v0.0.13
type OutputCreateTemplate ¶ added in v0.0.14
type OutputCreateTemplateVersion ¶ added in v0.0.14
type OutputCreateTemplateVersion struct {
ID string `json:"id,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Warnings []Warning `json:"warnings,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
type OutputCreateVerifiedSenderRequest ¶ added in v0.0.10
type OutputCreateVerifiedSenderRequest struct {
ID int64 `json:"id,omitempty"`
Nickname string `json:"nickname,omitempty"`
FromEmail string `json:"from_email,omitempty"`
FromName string `json:"from_name,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
ReplyToName string `json:"reply_to_name,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
Verified bool `json:"verified,omitempty"`
Locked bool `json:"locked,omitempty"`
}
type OutputCreateWebhookSecurityPolicy ¶ added in v1.14.0
type OutputCreateWebhookSecurityPolicy struct {
Policy *WebhookSecurityPolicy `json:"policy,omitempty"`
}
type OutputDeleteContactIdentifier ¶ added in v1.10.0
type OutputDeleteContactIdentifier struct {
JobID interface{} `json:"job_id,omitempty"`
}
type OutputDeleteContacts ¶ added in v1.10.0
type OutputDeleteContacts struct {
JobID interface{} `json:"job_id,omitempty"`
}
type OutputDuplicateDesign ¶ added in v1.10.0
type OutputDuplicateDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type OutputDuplicatePreBuiltDesign ¶ added in v1.15.0
type OutputDuplicatePreBuiltDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type OutputDuplicateTemplate ¶ added in v0.0.14
type OutputExportContacts ¶ added in v1.10.0
type OutputExportContacts struct {
ID string `json:"id,omitempty"`
Metadata _Metadata `json:"_metadata,omitempty"`
}
type OutputGetAPIKey ¶ added in v0.0.2
type OutputGetAPIKeys ¶ added in v0.0.2
type OutputGetAPIKeys struct {
APIKeys []APIKey `json:"result,omitempty"`
}
type OutputGetAccessActivities ¶ added in v1.10.0
type OutputGetAccessActivities struct {
Result []*AccessActivity `json:"result,omitempty"`
}
type OutputGetAddressWhitelistMailSettings ¶ added in v1.14.0
type OutputGetAlert ¶ added in v1.4.0
type OutputGetAlert struct {
ID int64 `json:"id,omitempty"`
EmailTo string `json:"email_to,omitempty"`
Frequency string `json:"frequency,omitempty"`
Type string `json:"type,omitempty"`
Percentage int64 `json:"percentage,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
}
type OutputGetAllExistingExports ¶ added in v1.10.0
type OutputGetAllExistingExports struct {
Result []*ContactExportJob `json:"result,omitempty"`
Metadata *_Metadata `json:"_metadata,omitempty"`
}
type OutputGetAllowedIP ¶ added in v1.10.0
type OutputGetAllowedIP struct {
Result []*AllowedIP `json:"result,omitempty"`
}
type OutputGetAllowedIPs ¶ added in v1.10.0
type OutputGetAllowedIPs struct {
Result []*AllowedIP `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"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,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 OutputGetBatchedContactsByIDs ¶ added in v1.10.0
type OutputGetBatchedContactsByIDs struct {
Result []*Contact `json:"result,omitempty"`
}
type OutputGetBlocks ¶ added in v1.6.0
type OutputGetBlocks struct {
Blocks []Block `json:"blocks,omitempty"`
}
OutputGetBlocks represents the response for blocks list
type OutputGetBounceClassifications ¶ added in v1.15.0
type OutputGetBounceClassifications struct {
Result []BounceClassificationsByDate `json:"result,omitempty"`
}
OutputGetBounceClassifications represents the response for bounce classification totals
type OutputGetBounceClassificationsByDomain ¶ added in v1.15.0
type OutputGetBounceClassificationsByDomain struct {
Result []BounceClassificationDomainStatsByDate `json:"result,omitempty"`
}
OutputGetBounceClassificationsByDomain represents the response for bounce classification over time by domain stats
type OutputGetBounceSettings ¶ added in v1.8.1
type OutputGetBounces ¶ added in v1.6.0
type OutputGetBounces struct {
Bounces []Bounce `json:"bounces,omitempty"`
}
OutputGetBounces represents the response for bounces list
type OutputGetBrandedLink ¶ added in v0.0.7
type OutputGetBrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type OutputGetClickTrackingSettings ¶ added in v0.0.18
type OutputGetContact ¶ added in v1.10.0
type OutputGetContact struct {
Contact *Contact `json:"contact,omitempty"`
}
type OutputGetContactsByEmails ¶ added in v1.10.0
type OutputGetContactsByEmails struct {
Result map[string]*ContactByEmailResult `json:"result,omitempty"`
}
type OutputGetContactsByIdentifiers ¶ added in v1.10.0
type OutputGetContactsByIdentifiers struct {
Result map[string]*ContactByIdentifierResult `json:"result,omitempty"`
}
type OutputGetCreditsForSubuser ¶ added in v1.12.0
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 OutputGetDefaultBrandedLink ¶ added in v0.0.7
type OutputGetDefaultBrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type OutputGetDesign ¶ added in v1.0.3
type OutputGetDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type OutputGetDesigns ¶ added in v1.0.3
type OutputGetDesigns struct {
Result []*Design `json:"result,omitempty"`
Metadata _Metadata `json:"_metadata,omitempty"`
}
type OutputGetEnforceTLS ¶ added in v0.0.15
type OutputGetEngagementQualityScores ¶ added in v1.15.0
type OutputGetEngagementQualityScores struct {
Result []*EngagementQualityScore `json:"result,omitempty"`
}
type OutputGetEventWebhook ¶ added in v1.0.2
type OutputGetEventWebhook struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled,omitempty"`
URL string `json:"url,omitempty"`
GroupResubscribe bool `json:"group_resubscribe,omitempty"`
Delivered bool `json:"delivered,omitempty"`
GroupUnsubscribe bool `json:"group_unsubscribe,omitempty"`
SpamReport bool `json:"spam_report,omitempty"`
Bounce bool `json:"bounce,omitempty"`
Deferred bool `json:"deferred,omitempty"`
Unsubscribe bool `json:"unsubscribe,omitempty"`
Processed bool `json:"processed,omitempty"`
Open bool `json:"open,omitempty"`
Click bool `json:"click,omitempty"`
Dropped bool `json:"dropped,omitempty"`
FriendlyName string `json:"friendly_name,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
PublicKey string `json:"public_key,omitempty"`
}
type OutputGetEventWebhooks ¶ added in v1.0.2
type OutputGetEventWebhooks struct {
MaxAllowed int `json:"max_allowed,omitempty"`
Webhooks []*EventWebhook `json:"webhooks,omitempty"`
}
type OutputGetExportContactsStatus ¶ added in v1.10.0
type OutputGetExportContactsStatus struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CompletedAt string `json:"completed_at,omitempty"`
ExpiresAt string `json:"expires_at,omitempty"`
URLs []string `json:"urls,omitempty"`
Message string `json:"message,omitempty"`
Metadata _Metadata `json:"_metadata,omitempty"`
ContactCount int64 `json:"contact_count,omitempty"`
}
type OutputGetFooterMailSettings ¶ added in v1.14.0
type OutputGetFooterMailSettings struct {
}
type OutputGetForwardBounceMailSettings ¶ added in v1.14.0
type OutputGetForwardSpamMailSettings ¶ added in v1.14.0
type OutputGetGlobalSuppression ¶ added in v1.10.0
type OutputGetGlobalSuppression struct {
RecipientEmail string `json:"recipient_email,omitempty"`
}
type OutputGetGoogleAnalyticsSettings ¶ added in v0.0.18
type OutputGetGoogleAnalyticsSettings struct {
Enabled bool `json:"enabled,omitempty"`
UTMCampaign string `json:"utm_campaign,omitempty"`
UTMContent string `json:"utm_content,omitempty"`
UTMMedium string `json:"utm_medium,omitempty"`
UTMSource string `json:"utm_source,omitempty"`
UTMTerm string `json:"utm_term,omitempty"`
}
type OutputGetIPAddress ¶ added in v1.11.0
type OutputGetIPAddress struct {
IP string `json:"ip,omitempty"`
Subusers []string `json:"subusers,omitempty"`
Rdns string `json:"rdns,omitempty"`
Pools []string `json:"pools,omitempty"`
Warmup bool `json:"warmup,omitempty"`
StartDate int64 `json:"start_date,omitempty"`
Whitelabeled bool `json:"whitelabeled,omitempty"`
}
type OutputGetIPPool ¶ added in v1.11.0
type OutputGetImportContactsStatus ¶ added in v1.10.0
type OutputGetImportContactsStatus struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
JobType string `json:"job_type,omitempty"`
Results *ImportContactsResults `json:"results,omitempty"`
StartedAt string `json:"started_at,omitempty"`
FinishedAt string `json:"finished_at,omitempty"`
}
type OutputGetInboundParseWebhook ¶ added in v1.1.1
type OutputGetInboundParseWebhooks ¶ added in v1.1.1
type OutputGetInboundParseWebhooks struct {
Result []*InboundParseWebhook `json:"result,omitempty"`
}
type OutputGetInvalidEmails ¶ added in v1.6.0
type OutputGetInvalidEmails struct {
InvalidEmails []InvalidEmail `json:"invalid_emails,omitempty"`
}
OutputGetInvalidEmails represents the response for invalid emails list
type OutputGetLegacyCampaign ¶ added in v1.15.0
type OutputGetLegacyCampaign LegacyCampaign
type OutputGetLegacyCampaignSchedule ¶ added in v1.15.0
type OutputGetLegacyCampaignSchedule struct {
SendAt int64 `json:"send_at,omitempty"`
}
type OutputGetLegacyCampaigns ¶ added in v1.15.0
type OutputGetLegacyCampaigns struct {
Result []*LegacyCampaign `json:"result,omitempty"`
}
type OutputGetLegacyList ¶ added in v1.15.0
type OutputGetLegacyList LegacyList
type OutputGetLegacyListRecipients ¶ added in v1.15.0
type OutputGetLegacyListRecipients struct {
Recipients []*LegacyListRecipient `json:"recipients,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
type OutputGetLegacyLists ¶ added in v1.15.0
type OutputGetLegacyLists struct {
Lists []*LegacyList `json:"lists,omitempty"`
}
type OutputGetLegacySegment ¶ added in v1.15.0
type OutputGetLegacySegment struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
type OutputGetLegacySegmentRecipients ¶ added in v1.15.0
type OutputGetLegacySegmentRecipients struct {
Recipients []*LegacySegmentRecipient `json:"recipients,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
type OutputGetLegacySegments ¶ added in v1.15.0
type OutputGetLegacySegments struct {
Segments []*LegacySegment `json:"segments,omitempty"`
}
type OutputGetLegacySender ¶ added in v1.15.0
type OutputGetLegacySender LegacySender
type OutputGetMailSettings ¶ added in v1.14.0
type OutputGetMailSettings struct {
Result []*MailSetting `json:"result,omitempty"`
}
type OutputGetMarketingSender ¶ added in v1.15.0
type OutputGetMarketingSender MarketingSender
type OutputGetOpenTrackingSettings ¶ added in v0.0.18
type OutputGetOpenTrackingSettings struct {
Enabled bool `json:"enabled,omitempty"`
}
type OutputGetPartnerSettings ¶ added in v1.15.0
type OutputGetPartnerSettings struct {
Result []*PartnerSetting `json:"result,omitempty"`
}
type OutputGetPendingTeammates ¶
type OutputGetPendingTeammates struct {
PendingTeammates []PendingTeammate `json:"result,omitempty"`
}
type OutputGetPreBuiltDesign ¶ added in v1.15.0
type OutputGetPreBuiltDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
type OutputGetPreBuiltDesigns ¶ added in v1.10.0
type OutputGetPreBuiltDesigns struct {
Result []*Design `json:"result,omitempty"`
Metadata _Metadata `json:"_metadata,omitempty"`
}
type OutputGetRemainingIPCount ¶ added in v1.11.0
type OutputGetRemainingIPCount struct {
Results []*RemainingIPCount `json:"results,omitempty"`
}
type OutputGetReverseDNS ¶ added in v0.0.17
type OutputGetReverseDNS struct {
ID int64 `json:"id,omitempty"`
IP string `json:"ip,omitempty"`
RDNS string `json:"rdns,omitempty"`
Users []*User `json:"users,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Domain string `json:"domain,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
LastValidationAttemptAt int64 `json:"last_validation_attempt_at,omitempty"`
ARecord ARecord `json:"a_record,omitempty"`
}
type OutputGetSSOCertificate ¶ added in v0.0.19
type OutputGetSSOIntegration ¶ added in v0.0.19
type OutputGetSSOIntegration struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration,omitempty"`
LastUpdated int64 `json:"last_updated,omitempty"`
SingleSignonURL string `json:"single_signon_url,omitempty"`
AudienceURL string `json:"audience_url,omitempty"`
}
type OutputGetSampleContacts ¶ added in v1.10.0
type OutputGetScheduledSend ¶ added in v1.10.0
type OutputGetScopes ¶ added in v1.15.0
type OutputGetScopes struct {
Scopes []string `json:"scopes,omitempty"`
}
type OutputGetSendIP ¶ added in v1.15.0
type OutputGetSendIP struct {
IP string `json:"ip,omitempty"`
IsParentAssigned bool `json:"is_parent_assigned,omitempty"`
IsAutoWarmup bool `json:"is_auto_warmup,omitempty"`
Pools []*SendIPPoolRef `json:"pools,omitempty"`
AddedAt int64 `json:"added_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
IsEnabled bool `json:"is_enabled,omitempty"`
IsLeased bool `json:"is_leased,omitempty"`
Region string `json:"region,omitempty"`
}
type OutputGetSendIPPool ¶ added in v1.15.0
type OutputGetSendIPPool struct {
Name string `json:"name,omitempty"`
ID string `json:"id,omitempty"`
IPsPreview []string `json:"ips_preview,omitempty"`
TotalIPCount int `json:"total_ip_count,omitempty"`
IPCountByRegion []*SendIPPoolIPCountByRegion `json:"ip_count_by_region,omitempty"`
}
type OutputGetSendIPPoolIPs ¶ added in v1.15.0
type OutputGetSendIPPoolIPs struct {
Result []*SendIPPoolIP `json:"result,omitempty"`
Metadata *OutputGetSendIPPoolIPsMetadata `json:"_metadata,omitempty"`
}
type OutputGetSendIPPoolIPsMetadata ¶ added in v1.15.0
type OutputGetSendIPPoolIPsMetadata struct {
NextParams *OutputGetSendIPPoolIPsMetadataNextParams `json:"next_params,omitempty"`
}
type OutputGetSendIPPoolIPsMetadataNextParams ¶ added in v1.15.0
type OutputGetSendIPPools ¶ added in v1.15.0
type OutputGetSendIPPools struct {
Result []*SendIPPool `json:"result,omitempty"`
Metadata *OutputGetSendIPPoolsMetadata `json:"_metadata,omitempty"`
}
type OutputGetSendIPPoolsMetadata ¶ added in v1.15.0
type OutputGetSendIPPoolsMetadata struct {
NextParams *OutputGetSendIPPoolsMetadataNextParams `json:"next_params,omitempty"`
}
type OutputGetSendIPPoolsMetadataNextParams ¶ added in v1.15.0
type OutputGetSendIPSubusers ¶ added in v1.15.0
type OutputGetSendIPSubusers struct {
Result []string `json:"result,omitempty"`
Metadata *OutputGetSendIPSubusersMetadata `json:"_metadata,omitempty"`
}
type OutputGetSendIPSubusersMetadata ¶ added in v1.15.0
type OutputGetSendIPSubusersMetadata struct {
NextParams *OutputGetSendIPSubusersMetadataNextParams `json:"next_params,omitempty"`
}
type OutputGetSendIPSubusersMetadataNextParams ¶ added in v1.15.0
type OutputGetSendIPs ¶ added in v1.15.0
type OutputGetSendIPs struct {
Result []*SendIP `json:"result,omitempty"`
Metadata *OutputGetSendIPsMetadata `json:"_metadata,omitempty"`
}
type OutputGetSendIPsMetadata ¶ added in v1.15.0
type OutputGetSendIPsMetadata struct {
NextParams *OutputGetSendIPsMetadataNextParams `json:"next_params,omitempty"`
}
type OutputGetSendIPsMetadataNextParams ¶ added in v1.15.0
type OutputGetSendIPsMetadataNextParams struct {
AfterKey string `json:"after_key,omitempty"`
BeforeKey string `json:"before_key,omitempty"`
IP string `json:"ip,omitempty"`
IsLeased bool `json:"is_leased,omitempty"`
IsEnabled bool `json:"is_enabled,omitempty"`
IsParentAssigned bool `json:"is_parent_assigned,omitempty"`
Pool string `json:"pool,omitempty"`
StartAddedAt string `json:"start_added_at,omitempty"`
EndAddedAt string `json:"end_added_at,omitempty"`
Limit string `json:"limit,omitempty"`
Region string `json:"region,omitempty"`
IncludeRegion string `json:"include_region,omitempty"`
}
type OutputGetSignedEventWebhooksPublicKey ¶ added in v1.7.0
type OutputGetSignedEventWebhooksPublicKey struct {
PublicKey string `json:"public_key,omitempty"`
}
type OutputGetSpamReports ¶ added in v1.6.0
type OutputGetSpamReports struct {
SpamReports []SpamReport `json:"spam_reports,omitempty"`
}
OutputGetSpamReports represents the response for spam reports list
type OutputGetSubscriptionTrackingSettings ¶ added in v0.0.18
type OutputGetSubscriptionTrackingSettings struct {
Enabled bool `json:"enabled,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
Landing string `json:"landing,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Replace string `json:"replace,omitempty"`
URL string `json:"url,omitempty"`
}
type OutputGetSubuserBrandedLink ¶ added in v0.0.7
type OutputGetSubuserBrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type OutputGetSubuserEngagementQualityScores ¶ added in v1.15.0
type OutputGetSubuserEngagementQualityScores struct {
Result []*EngagementQualityScore `json:"result,omitempty"`
Metadata *EngagementQualityMetadata `json:"_metadata,omitempty"`
}
type OutputGetSuppressionGroupsByEmail ¶ added in v1.10.0
type OutputGetSuppressionGroupsByEmail struct {
Suppressions []*ASMSuppressionGroup `json:"suppressions,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 OutputGetTeammateSubuserAccess ¶ added in v1.3.0
type OutputGetTeammateSubuserAccess struct {
HasRestrictedSubuserAccess bool `json:"has_restricted_subuser_access,omitempty"`
SubuserAccess []SubuserAccess `json:"subuser_access,omitempty"`
Metadata MetadataGetTeammateSubuserAccess `json:"_metadata,omitempty"`
}
type OutputGetTeammates ¶
type OutputGetTeammates struct {
Teammates []Teammate `json:"result,omitempty"`
}
type OutputGetTemplate ¶ added in v0.0.14
type OutputGetTemplateMailSettings ¶ added in v1.14.0
type OutputGetTemplateVersion ¶ added in v0.0.14
type OutputGetTemplateVersion struct {
ID string `json:"id,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Warnings Warning `json:"warnings,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
type OutputGetTemplates ¶ added in v0.0.14
type OutputGetTotalContactCount ¶ added in v1.10.0
type OutputGetTotalContactCount struct {
ContactCount int64 `json:"contact_count,omitempty"`
BillableCount int64 `json:"billable_count,omitempty"`
BillableBreakdown *ContactBillableBreakdown `json:"billable_breakdown,omitempty"`
}
type OutputGetTrackingSettings ¶ added in v0.0.18
type OutputGetTrackingSettings struct {
Result []*ResultGetTrackingSettings `json:"result,omitempty"`
}
type OutputGetUserAccount ¶ added in v1.15.0
type OutputGetUserCredits ¶ added in v1.15.0
type OutputGetUserCredits struct {
Remain int64 `json:"remain,omitempty"`
Total int64 `json:"total,omitempty"`
Overage int64 `json:"overage,omitempty"`
Used int64 `json:"used,omitempty"`
LastReset string `json:"last_reset,omitempty"`
NextReset string `json:"next_reset,omitempty"`
ResetFrequency string `json:"reset_frequency,omitempty"`
IsHardLimit bool `json:"is_hard_limit,omitempty"`
}
type OutputGetUserEmail ¶ added in v1.15.0
type OutputGetUserEmail struct {
Email string `json:"email,omitempty"`
}
type OutputGetUserProfile ¶ added in v1.15.0
type OutputGetUserProfile struct {
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
Company string `json:"company,omitempty"`
Country string `json:"country,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Phone string `json:"phone,omitempty"`
State string `json:"state,omitempty"`
Website string `json:"website,omitempty"`
Zip string `json:"zip,omitempty"`
AuthyID int64 `json:"authy_id,omitempty"`
MultifactorPhone string `json:"multifactor_phone,omitempty"`
Type string `json:"type,omitempty"`
UserID int64 `json:"userid,omitempty"`
}
type OutputGetUsername ¶ added in v1.15.0
type OutputGetVerifiedSenders ¶ added in v0.0.10
type OutputGetVerifiedSenders struct {
VerifiedSenders []*VerifiedSender `json:"results,omitempty"`
}
type OutputGetWebhookSecurityPolicies ¶ added in v1.14.0
type OutputGetWebhookSecurityPolicies struct {
Policies []*WebhookSecurityPolicy `json:"policies,omitempty"`
}
type OutputGetWebhookSecurityPolicy ¶ added in v1.14.0
type OutputGetWebhookSecurityPolicy struct {
Policy *WebhookSecurityPolicy `json:"policy,omitempty"`
}
type OutputImportContacts ¶ added in v1.10.0
type OutputImportContacts struct {
JobID string `json:"job_id,omitempty"`
UploadURI string `json:"upload_uri,omitempty"`
UploadHeaders []*ImportContactsUploadHeader `json:"upload_headers,omitempty"`
}
type OutputInviteTeammate ¶
type OutputScheduleLegacyCampaign ¶ added in v1.15.0
type OutputSearchContacts ¶ added in v1.10.0
type OutputSendLegacyCampaignNow ¶ added in v1.15.0
type OutputSendMail ¶ added in v1.6.0
type OutputSendMail struct {
MessageID string `json:"message-id,omitempty"`
}
OutputSendMail represents the response from sending mail
type OutputSubuserAccess ¶ added in v1.2.0
type OutputToggleSignatureVerification ¶ added in v1.7.0
type OutputUpdateAPIKeyName ¶ added in v0.0.2
type OutputUpdateAPIKeyNameAndScopes ¶ added in v0.0.2
type OutputUpdateAddressWhitelistMailSettings ¶ added in v1.14.0
type OutputUpdateAlert ¶ added in v1.4.0
type OutputUpdateAlert struct {
ID int64 `json:"id,omitempty"`
EmailTo string `json:"email_to,omitempty"`
Frequency string `json:"frequency,omitempty"`
Type string `json:"type,omitempty"`
Percentage int64 `json:"percentage,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
}
type OutputUpdateBounceSettings ¶ added in v1.8.1
type OutputUpdateBrandedLink ¶ added in v0.0.7
type OutputUpdateBrandedLink struct {
ID int64 `json:"id,omitempty"`
Domain string `json:"domain,omitempty"`
Subdomain string `json:"subdomain,omitempty"`
Username string `json:"username,omitempty"`
UserID int64 `json:"user_id,omitempty"`
Default bool `json:"default,omitempty"`
Valid bool `json:"valid,omitempty"`
Legacy bool `json:"legacy,omitempty"`
DNS DNSBrandedLink `json:"dns,omitempty"`
}
type OutputUpdateClickTrackingSettings ¶ added in v0.0.18
type OutputUpdateCreditsForSubuser ¶ added in v1.12.0
type OutputUpdateDesign ¶ added in v1.0.3
type OutputUpdateDesign struct {
ID string `json:"id,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Name string `json:"name,omitempty"`
Editor string `json:"editor,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Categories []string `json:"categories,omitempty"`
}
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 OutputUpdateEnforceTLS ¶ added in v0.0.15
type OutputUpdateEventWebhook ¶ added in v1.0.2
type OutputUpdateEventWebhook struct {
ID string `json:"id,omitempty"`
Enabled bool `json:"enabled,omitempty"`
URL string `json:"url,omitempty"`
GroupResubscribe bool `json:"group_resubscribe,omitempty"`
Delivered bool `json:"delivered,omitempty"`
GroupUnsubscribe bool `json:"group_unsubscribe,omitempty"`
SpamReport bool `json:"spam_report,omitempty"`
Bounce bool `json:"bounce,omitempty"`
Deferred bool `json:"deferred,omitempty"`
Unsubscribe bool `json:"unsubscribe,omitempty"`
Processed bool `json:"processed,omitempty"`
Open bool `json:"open,omitempty"`
Click bool `json:"click,omitempty"`
Dropped bool `json:"dropped,omitempty"`
FriendlyName string `json:"friendly_name,omitempty"`
CreatedDate string `json:"created_date,omitempty"`
UpdatedDate string `json:"updated_date,omitempty"`
OAuthClientID string `json:"oauth_client_id,omitempty"`
OAuthTokenURL string `json:"oauth_token_url,omitempty"`
}
type OutputUpdateFooterMailSettings ¶ added in v1.14.0
type OutputUpdateFooterMailSettings struct {
}
type OutputUpdateForwardBounceMailSettings ¶ added in v1.14.0
type OutputUpdateForwardSpamMailSettings ¶ added in v1.14.0
type OutputUpdateGoogleAnalyticsSettings ¶ added in v0.0.18
type OutputUpdateGoogleAnalyticsSettings struct {
Enabled bool `json:"enabled,omitempty"`
UTMCampaign string `json:"utm_campaign,omitempty"`
UTMContent string `json:"utm_content,omitempty"`
UTMMedium string `json:"utm_medium,omitempty"`
UTMSource string `json:"utm_source,omitempty"`
UTMTerm string `json:"utm_term,omitempty"`
}
type OutputUpdateIPPool ¶ added in v1.11.0
type OutputUpdateIPPool struct {
Name string `json:"name,omitempty"`
}
type OutputUpdateInboundParseWebhook ¶ added in v1.1.1
type OutputUpdateLegacyCampaign ¶ added in v1.15.0
type OutputUpdateLegacyCampaign LegacyCampaign
type OutputUpdateLegacyCampaignSchedule ¶ added in v1.15.0
type OutputUpdateLegacyList ¶ added in v1.15.0
type OutputUpdateLegacyList LegacyList
type OutputUpdateLegacySegment ¶ added in v1.15.0
type OutputUpdateLegacySegment struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ListID int64 `json:"list_id,omitempty"`
Conditions []*LegacySegmentCondition `json:"conditions,omitempty"`
RecipientCount int64 `json:"recipient_count,omitempty"`
}
type OutputUpdateLegacySender ¶ added in v1.15.0
type OutputUpdateLegacySender LegacySender
type OutputUpdateMarketingSender ¶ added in v1.15.0
type OutputUpdateMarketingSender MarketingSender
type OutputUpdateOpenTrackingSettings ¶ added in v0.0.18
type OutputUpdateOpenTrackingSettings struct {
Enabled bool `json:"enabled,omitempty"`
}
type OutputUpdateRemainingCreditsForSubuser ¶ added in v1.12.0
type OutputUpdateSSOCertificate ¶ added in v0.0.19
type OutputUpdateSSOIntegration ¶ added in v0.0.19
type OutputUpdateSSOIntegration struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration,omitempty"`
LastUpdated int64 `json:"last_updated,omitempty"`
SingleSignonURL string `json:"single_signon_url,omitempty"`
AudienceURL string `json:"audience_url,omitempty"`
}
type OutputUpdateSSOTeammate ¶ added in v1.2.0
type OutputUpdateSSOTeammate struct {
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
Company string `json:"company,omitempty"`
Country string `json:"country,omitempty"`
Username string `json:"username,omitempty"`
Phone string `json:"phone,omitempty"`
State string `json:"state,omitempty"`
UserType string `json:"user_type,omitempty"`
Website string `json:"website,omitempty"`
Zip string `json:"zip,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Email string `json:"email,omitempty"`
IsAdmin bool `json:"is_admin,omitempty"`
IsSSO bool `json:"is_sso,omitempty"`
Scopes []string `json:"scopes,omitempty"`
HasRestrictedSubuserAccess bool `json:"has_restricted_subuser_access,omitempty"`
SubuserAccess []OutputSubuserAccess `json:"subuser_access,omitempty"`
}
type OutputUpdateSendIP ¶ added in v1.15.0
type OutputUpdateSendIPPool ¶ added in v1.15.0
type OutputUpdateSubscriptionTrackingSettings ¶ added in v0.0.18
type OutputUpdateSubscriptionTrackingSettings struct {
Enabled bool `json:"enabled,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
Landing string `json:"landing,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Replace string `json:"replace,omitempty"`
URL string `json:"url,omitempty"`
}
type OutputUpdateSuppressionGroup ¶ added in v0.0.13
type OutputUpdateSuppressionGroup struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
IsDefault bool `json:"is_default,omitempty"`
LastEmailSentAt string `json:"last_email_sent_at,omitempty"`
Unsubscribes int64 `json:"unsubscribes,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 OutputUpdateTemplate ¶ added in v0.0.14
type OutputUpdateTemplateMailSettings ¶ added in v1.14.0
type OutputUpdateTemplateVersion ¶ added in v0.0.14
type OutputUpdateTemplateVersion struct {
ID string `json:"id,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Active int `json:"active,omitempty"`
Name string `json:"name,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
Subject string `json:"subject,omitempty"`
Editor string `json:"editor,omitempty"`
TestData string `json:"test_data,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Warnings []Warning `json:"warnings,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
type OutputUpdateUserEmail ¶ added in v1.15.0
type OutputUpdateUserEmail struct {
Email string `json:"email,omitempty"`
}
type OutputUpdateUserProfile ¶ added in v1.15.0
type OutputUpdateUserProfile struct {
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
City string `json:"city,omitempty"`
Company string `json:"company,omitempty"`
Country string `json:"country,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Phone string `json:"phone,omitempty"`
State string `json:"state,omitempty"`
Website string `json:"website,omitempty"`
Zip string `json:"zip,omitempty"`
}
type OutputUpdateUsername ¶ added in v1.15.0
type OutputUpdateUsername struct {
Username string `json:"username,omitempty"`
}
type OutputUpdateVerifiedSender ¶ added in v0.0.10
type OutputUpdateVerifiedSender struct {
ID int64 `json:"id,omitempty"`
Nickname string `json:"nickname,omitempty"`
FromEmail string `json:"from_email,omitempty"`
FromName string `json:"from_name,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
ReplyToName string `json:"reply_to_name,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
Verified bool `json:"verified,omitempty"`
Locked bool `json:"locked,omitempty"`
}
type OutputUpdateWebhookSecurityPolicy ¶ added in v1.14.0
type OutputUpdateWebhookSecurityPolicy struct {
Policy *WebhookSecurityPolicy `json:"policy,omitempty"`
}
type OutputValidateBatchID ¶ added in v1.10.0
type OutputValidateBatchID struct {
BatchID string `json:"batch_id,omitempty"`
}
type OutputValidateBrandedLink ¶ added in v0.0.7
type OutputValidateBrandedLink struct {
ID int64 `json:"id,omitempty"`
Valid bool `json:"valid,omitempty"`
ValidationResults ValidationResultsBrandedLink `json:"validation_results,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 OutputValidateReverseDNS ¶ added in v0.0.17
type OutputValidateReverseDNS struct {
ID int64 `json:"id,omitempty"`
Valid bool `json:"valid,omitempty"`
ValidationResults ValidationResultsReverseDNS `json:"validation_results,omitempty"`
}
type PartnerSetting ¶ added in v1.15.0
type PendingTeammate ¶
type Personalization ¶ added in v1.6.0
type Personalization struct {
To []*Email `json:"to,omitempty"`
Cc []*Email `json:"cc,omitempty"`
Bcc []*Email `json:"bcc,omitempty"`
Subject string `json:"subject,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
Substitutions map[string]string `json:"substitutions,omitempty"`
DynamicTemplateData map[string]interface{} `json:"dynamic_template_data,omitempty"`
CustomArgs map[string]string `json:"custom_args,omitempty"`
SendAt int64 `json:"send_at,omitempty"`
}
Personalization contains personalized data for recipients
func NewPersonalization ¶ added in v1.6.0
func NewPersonalization() *Personalization
NewPersonalization creates a new Personalization struct
func (*Personalization) AddBcc ¶ added in v1.6.0
func (p *Personalization) AddBcc(email *Email)
AddBcc adds a BCC recipient to personalization
func (*Personalization) AddCc ¶ added in v1.6.0
func (p *Personalization) AddCc(email *Email)
AddCc adds a CC recipient to personalization
func (*Personalization) AddTo ¶ added in v1.6.0
func (p *Personalization) AddTo(email *Email)
AddTo adds a recipient to personalization
func (*Personalization) SetSendAt ¶ added in v1.6.0
func (p *Personalization) SetSendAt(sendAt time.Time)
SetSendAt sets the send time for personalization
type RateLimitedError ¶ added in v1.0.0
func (*RateLimitedError) Error ¶ added in v1.0.0
func (e *RateLimitedError) Error() string
type RemainingIPCount ¶ added in v1.11.0
type ReplyToList ¶ added in v1.6.0
ReplyToList represents a list of reply-to addresses
type Reputation ¶ added in v0.0.3
type ResultGetTrackingSettings ¶ added in v0.0.18
type SSOCertificate ¶ added in v0.0.19
type SSOIntegration ¶ added in v0.0.19
type SSOIntegration struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled,omitempty"`
SigninURL string `json:"signin_url,omitempty"`
SignoutURL string `json:"signout_url,omitempty"`
EntityID string `json:"entity_id,omitempty"`
CompletedIntegration bool `json:"completed_integration,omitempty"`
LastUpdated int64 `json:"last_updated,omitempty"`
SingleSignonURL string `json:"single_signon_url,omitempty"`
AudienceURL string `json:"audience_url,omitempty"`
}
type ScheduledSend ¶ added in v1.10.0
type SendIP ¶ added in v1.15.0
type SendIP struct {
IP string `json:"ip,omitempty"`
Pools []*SendIPPoolRef `json:"pools,omitempty"`
IsAutoWarmup bool `json:"is_auto_warmup,omitempty"`
IsParentAssigned bool `json:"is_parent_assigned,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty"`
IsEnabled bool `json:"is_enabled,omitempty"`
IsLeased bool `json:"is_leased,omitempty"`
AddedAt int64 `json:"added_at,omitempty"`
Region string `json:"region,omitempty"`
}
SendIP represents an IP address on your account as returned by the newer /send_ips API (IP Address Management).
type SendIPPool ¶ added in v1.15.0
type SendIPPoolIP ¶ added in v1.15.0
type SendIPPoolIP struct {
IP string `json:"ip,omitempty"`
Region string `json:"region,omitempty"`
Pools []*SendIPPoolRef `json:"pools,omitempty"`
}
type SendIPPoolIPCountByRegion ¶ added in v1.15.0
type SendIPPoolRef ¶ added in v1.15.0
SendIPPoolRef represents an IP Pool an IP address is assigned to. It is used in the newer /send_ips API (IP Address Management), which is distinct from the older /ips and /ips/pools APIs.
type Setting ¶ added in v1.6.0
type Setting struct {
Enable *bool `json:"enable,omitempty"`
}
Setting represents a boolean setting
type SpamCheckSetting ¶ added in v1.6.0
type SpamCheckSetting struct {
Enable *bool `json:"enable,omitempty"`
Threshold int `json:"threshold,omitempty"`
PostToURL string `json:"post_to_url,omitempty"`
}
SpamCheckSetting represents spam check settings
type SpamReport ¶ added in v1.6.0
type SpamReport struct {
Created int64 `json:"created"`
Email string `json:"email"`
IP string `json:"ip"`
}
SpamReport represents a spam report
type StatItem ¶ added in v1.6.0
type StatItem struct {
Metrics StatMetrics `json:"metrics,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
}
StatItem represents individual statistic metrics
type StatMetrics ¶ added in v1.6.0
type StatMetrics struct {
Blocks int `json:"blocks,omitempty"`
BounceDrops int `json:"bounce_drops,omitempty"`
Bounces int `json:"bounces,omitempty"`
Clicks int `json:"clicks,omitempty"`
DeferredDrops int `json:"deferred_drops,omitempty"`
Delivered int `json:"delivered,omitempty"`
InvalidEmails int `json:"invalid_emails,omitempty"`
Opens int `json:"opens,omitempty"`
Processed int `json:"processed,omitempty"`
Requests int `json:"requests,omitempty"`
SpamReportDrops int `json:"spam_report_drops,omitempty"`
SpamReports int `json:"spam_reports,omitempty"`
UniqueClicks int `json:"unique_clicks,omitempty"`
UniqueOpens int `json:"unique_opens,omitempty"`
UnsubscribeDrops int `json:"unsubscribe_drops,omitempty"`
Unsubscribes int `json:"unsubscribes,omitempty"`
}
StatMetrics represents metric data
type StatsOptions ¶ added in v1.6.0
type StatsOptions struct {
StartDate string `url:"start_date,omitempty"`
EndDate string `url:"end_date,omitempty"`
Aggregation string `url:"aggregated_by,omitempty"`
Categories []string `url:"-"`
Subusers []string `url:"-"`
Tags []string `url:"-"`
Limit int `url:"limit,omitempty"`
Offset int `url:"offset,omitempty"`
}
StatsOptions represents query parameters for stats requests
type SubscriptionTrackingSetting ¶ added in v1.6.0
type SubscriptionTrackingSetting struct {
Enable *bool `json:"enable,omitempty"`
Text string `json:"text,omitempty"`
HTML string `json:"html,omitempty"`
SubstitutionTag string `json:"substitution_tag,omitempty"`
}
SubscriptionTrackingSetting represents subscription tracking settings
type SubuserAccess ¶ added in v1.3.0
type SubuserSenderAuthentication ¶ added in v0.0.6
type SubuserStat ¶ added in v1.6.0
type SubuserStat struct {
Date string `json:"date,omitempty"`
Stats []StatItem `json:"stats,omitempty"`
}
SubuserStat represents subuser statistics
type Suppression ¶ added in v1.10.0
type SuppressionGroup ¶ added in v0.0.13
type SuppressionGroup struct {
ID int64 `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
IsDefault bool `json:"is_default,omitempty"`
Unsubscribes int64 `json:"unsubscribes,omitempty"`
LastEmailSentAt string `json:"last_email_sent_at,omitempty"`
}
type SuppressionListOptions ¶ added in v1.6.0
type SuppressionListOptions struct {
StartTime int64 `url:"start_time,omitempty"`
EndTime int64 `url:"end_time,omitempty"`
Limit int `url:"limit,omitempty"`
Offset int `url:"offset,omitempty"`
Email string `url:"email,omitempty"`
}
SuppressionListOptions represents query parameters for suppression list requests
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 TrackingSettings ¶ added in v1.6.0
type TrackingSettings struct {
ClickTracking *ClickTrackingSetting `json:"click_tracking,omitempty"`
OpenTracking *OpenTrackingSetting `json:"open_tracking,omitempty"`
SubscriptionTracking *SubscriptionTrackingSetting `json:"subscription_tracking,omitempty"`
GoogleAnalytics *GoogleAnalyticsSetting `json:"ganalytics,omitempty"`
}
TrackingSettings contains various tracking settings
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"`
}
type ValidationResultsBrandedLink ¶ added in v0.0.7
type ValidationResultsBrandedLink struct {
DomainCname ValidationResult `json:"domain_cname,omitempty"`
OwnerCname ValidationResult `json:"owner_cname,omitempty"`
}
type ValidationResultsReverseDNS ¶ added in v0.0.17
type ValidationResultsReverseDNS struct {
ARecordValidationResults ARecordValidationResults `json:"a_record,omitempty"`
}
type VerifiedSender ¶ added in v0.0.10
type VerifiedSender struct {
ID int64 `json:"id,omitempty"`
Nickname string `json:"nickname,omitempty"`
FromEmail string `json:"from_email,omitempty"`
FromName string `json:"from_name,omitempty"`
ReplyTo string `json:"reply_to,omitempty"`
ReplyToName string `json:"reply_to_name,omitempty"`
Address string `json:"address,omitempty"`
Address2 string `json:"address2,omitempty"`
State string `json:"state,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
Country string `json:"country,omitempty"`
Verified bool `json:"verified,omitempty"`
Locked bool `json:"locked,omitempty"`
}
type Version ¶ added in v0.0.14
type Version struct {
ID string `json:"id,omitempty"`
TemplateID string `json:"template_id,omitempty"`
Name string `json:"name,omitempty"`
Subject string `json:"subject,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
GeneratePlainContent bool `json:"generate_plain_content,omitempty"`
HTMLContent string `json:"html_content,omitempty"`
PlainContent string `json:"plain_content,omitempty"`
Editor string `json:"editor,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
Active int `json:"active,omitempty"`
}
type WebhookSecurityPolicy ¶ added in v1.14.0
type WebhookSecurityPolicy struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
OAuth *WebhookSecurityPolicyOAuth `json:"oauth,omitempty"`
Signature *WebhookSecurityPolicySignature `json:"signature,omitempty"`
}
type WebhookSecurityPolicyOAuth ¶ added in v1.14.0
type WebhookSecurityPolicySignature ¶ added in v1.14.0
Source Files
¶
- alert.go
- api_key.go
- asm_group_suppression.go
- bounce_settings.go
- cancel_scheduled_send.go
- contact.go
- design.go
- enforce_tls.go
- engagement_quality.go
- event_webhook.go
- global_suppression.go
- inbound_parse_webhook.go
- ip_access_management.go
- ip_address_management.go
- ip_addresses.go
- ip_pool.go
- ip_warmup.go
- legacy_campaign.go
- legacy_contactdb_list.go
- legacy_contactdb_segment.go
- legacy_sender.go
- link_branding.go
- logger.go
- mail.go
- mail_settings.go
- marketing_sender.go
- misc.go
- partner_settings.go
- reverse_dns.go
- scopes.go
- sender_authentication.go
- sender_verification.go
- sendgrid.go
- sso_certificate.go
- sso_integration.go
- stats.go
- subuser.go
- suppressions.go
- suppressions_unsubscribe_groups.go
- teammate.go
- template.go
- template_version.go
- tracking.go
- user.go
- webhook_security_policy.go