Versions in this module Expand all Collapse all v1 v1.0.4 Jul 7, 2020 Changes in this version type Store + IsSyncing bool v1.0.3 Jul 4, 2020 Changes in this version type Order + StoreID string + func (order Order) CreateLine(req *LineItem) (*LineItem, error) + func (order Order) DeleteLine(id string) (bool, error) + func (order Order) HasID() error + func (order Order) UpdateLine(req *LineItem) (*LineItem, error) + type OrderLineItem struct + ID string + OrderID string + Price float64 + ProductID string + ProductTitle string + ProductVariantID string + ProductVariantTitle string + Quantity int + StoreID string + type OrderLineItemList struct + Lines []LineItem + Links []Link + OrderID string + StoreID string + TotalItems int v1.0.2 Jul 3, 2020 Changes in this version type Cart + StoreID string + func (cart Cart) CreateLine(req *LineItem) (*LineItem, error) + func (cart Cart) DeleteLine(id string) (bool, error) + func (cart Cart) HasID() error + func (cart Cart) UpdateLine(req *LineItem) (*LineItem, error) type LineItem + CartID string + StoreID string + type LineItemList struct + CartID string + Lines []LineItem + Links []Link + StoreID string + TotalItems int v1.0.1 Jul 1, 2020 Changes in this version + const CAMPAIGN_SEND_TYPE_HTML + const CAMPAIGN_SEND_TYPE_PLAINTEXT + const CAMPAIGN_TYPE_ABSPLIT + const CAMPAIGN_TYPE_PLAINTEXT + const CAMPAIGN_TYPE_REGULAR + const CAMPAIGN_TYPE_RSS + const CAMPAIGN_TYPE_VARIATE + const CONDITION_MATCH_ALL + const CONDITION_MATCH_ANY + const CONDITION_OP_CONTAINS + const CONDITION_TYPE_INTERESTS + const URIFormat + const Version + var DatacenterRegex = regexp.MustCompile("[^-]\\w+$") + type API struct + Debug bool + Key string + Timeout time.Duration + Transport http.RoundTripper + User string + func New(apiKey string) *API + func (api API) CreateAuthorizedApp(body *AuthorizedAppRequest) (*AuthorizedAppCreateResponse, error) + func (api API) CreateAutomationEmailQueue(workflowID, emailID, emailAddress string) (*AutomationQueue, error) + func (api API) CreateAutomationRemovedSubscribers(workflowID, emailAddress string) (*RemovedSubscriber, error) + func (api API) CreateBatchOperation(body *BatchOperationCreationRequest) (*BatchOperationResponse, error) + func (api API) CreateCampaign(body *CampaignCreationRequest) (*CampaignResponse, error) + func (api API) CreateCampaignFolder(body *CampaignFolderCreationRequest) (*CampaignFolder, error) + func (api API) CreateList(body *ListCreationRequest) (*ListResponse, error) + func (api API) CreateStore(req *Store) (*Store, error) + func (api API) CreateTemplate(body *TemplateCreationRequest) (*TemplateResponse, error) + func (api API) CreateTemplateFolder(body *TemplateFolderCreationRequest) (*TemplateFolder, error) + func (api API) DeleteCampaign(id string) (bool, error) + func (api API) DeleteList(id string) (bool, error) + func (api API) DeleteStore(id string) (bool, error) + func (api API) DeleteTemplate(id string) (bool, error) + func (api API) GetAuthorizedApps(params *ExtendedQueryParams) (*ListOfAuthorizedApps, error) + func (api API) GetAuthroizedApp(id string, params *BasicQueryParams) (*AuthorizedApp, error) + func (api API) GetAutomation(id string) (*Automation, error) + func (api API) GetAutomationEmail(automationID, emailID string) (*AutomationEmail, error) + func (api API) GetAutomationEmails(automationID string) (*ListOfEmails, error) + func (api API) GetAutomationQueue(workflowID, emailID, subsID string) (*AutomationQueue, error) + func (api API) GetAutomationQueues(workflowID, emailID string) (*ListOfAutomationQueues, error) + func (api API) GetAutomationRemovedSubscribers(workflowID string) (*ListOfRemovedSubscribers, error) + func (api API) GetAutomations(params *BasicQueryParams) (*ListOfAutomations, error) + func (api API) GetBatchOperation(id string, params *BasicQueryParams) (*BatchOperationResponse, error) + func (api API) GetBatchOperations(params *ListQueryParams) (*ListOfBatchOperations, error) + func (api API) GetCampaign(id string, params *BasicQueryParams) (*CampaignResponse, error) + func (api API) GetCampaignFolders(params *CampaignFolderQueryParams) (*ListOfCampaignFolders, error) + func (api API) GetCampaigns(params *CampaignQueryParams) (*ListOfCampaigns, error) + func (api API) GetList(id string, params *BasicQueryParams) (*ListResponse, error) + func (api API) GetLists(params *ListQueryParams) (*ListOfLists, error) + func (api API) GetRoot(params *BasicQueryParams) (*RootResponse, error) + func (api API) GetStore(id string, params QueryParams) (*Store, error) + func (api API) GetStores(params *ExtendedQueryParams) (*StoreList, error) + func (api API) GetTemplate(id string, params *BasicQueryParams) (*TemplateResponse, error) + func (api API) GetTemplateFolders(params *TemplateFolderQueryParams) (*ListOfTemplateFolders, error) + func (api API) GetTemplates(params *TemplateQueryParams) (*ListOfTemplates, error) + func (api API) NewListResponse(id string) *ListResponse + func (api API) PauseSending(workflowID, emailID string) (bool, error) + func (api API) PauseSendingAll(id string) (bool, error) + func (api API) Request(method, path string, params QueryParams, body, response interface{}) error + func (api API) RequestOk(method, path string) (bool, error) + func (api API) SendCampaign(id string, body *SendCampaignRequest) (bool, error) + func (api API) SendTestEmail(id string, body *TestEmailRequest) (bool, error) + func (api API) StartSending(workflowID, emailID string) (bool, error) + func (api API) StartSendingAll(id string) (bool, error) + func (api API) UpdateCampaign(id string, body *CampaignCreationRequest) (*CampaignResponse, error) + func (api API) UpdateList(id string, body *ListCreationRequest) (*ListResponse, error) + func (api API) UpdateStore(req *Store) (*Store, error) + func (api API) UpdateTemplate(id string, body *TemplateCreationRequest) (*TemplateResponse, error) + type APIError struct + Detail string + Errors []struct{ ... } + Instance string + Status int + Title string + Type string + func (err APIError) Error() string + func (err APIError) HasError() bool + func (err APIError) String() string + type AbuseReport struct + CampaignID string + Date string + EmailAddress string + EmailID string + ID string + ListID string + type AccountContact struct + Addr1 string + Addr2 string + City string + Company string + Country string + State string + Zip string + type Activity struct + Day string + EmailsSent int + HardBounce int + OtherAdds int + OtherRemoves int + RecipientClicks int + SoftBounce int + Subs int + UniqueOpens int + Unsubs int + type Address struct + Address1 string + Address2 string + City string + Country string + CountryCode string + Latitude float64 + Longitude float64 + PostalCode string + Province string + ProvinceCode string + func (address *Address) MarshalJSON() ([]byte, error) + type AuthorizedApp struct + Description string + ID int + Name string + Users []string + type AuthorizedAppCreateResponse struct + AccessToken string + ViewerToken string + type AuthorizedAppRequest struct + ClientID string + ClientSecret string + type Automation struct + CreateTime string + EmailsSent int + ID string + Recipients AutomationRecipient + ReportSummary ReportSummary + Settings AutomationSettingsShort + StartTime string + Status string + Tracking AutomationTracking + TriggerSettings WorkflowType + func (auto Automation) CanMakeRequest() error + func (auto Automation) CreateRemovedSubscribers(emailAddress string) (*RemovedSubscriber, error) + func (auto Automation) GetEmail(id string) (*AutomationEmail, error) + func (auto Automation) GetEmails() (*ListOfEmails, error) + func (auto Automation) GetRemovedSubscribers() (*ListOfRemovedSubscribers, error) + func (auto Automation) PauseSendingAll() (bool, error) + func (auto Automation) StartSendingAll() (bool, error) + type AutomationDelay struct + Action string + Amount int + Direction string + Type string + type AutomationEmail struct + ArchiveURL string + ContentType string + CreateTime string + Delay AutomationDelay + EmailsSent int + ID string + Position int + Recipients AutomationRecipient + ReportSummary ReportSummary + SendTime string + Settings AutomationSettingsLong + SocialCard SocialCard + StartTime string + Status string + Tracking AutomationTracking + TriggerSettings WorkflowType + WorkflowID string + func (email AutomationEmail) CanMakeRequest() error + func (email AutomationEmail) CreateQueue(emailAddress string) (*AutomationQueue, error) + func (email AutomationEmail) GetQueue(id string) (*AutomationQueue, error) + func (email AutomationEmail) GetQueues() (*ListOfAutomationQueues, error) + func (email AutomationEmail) PauseSending() (bool, error) + func (email AutomationEmail) StartSending() (bool, error) + type AutomationOptions struct + Conditions []SegmentConditional + Match string + SavedSegmentID int + type AutomationQueue struct + EmailAddress string + EmailID string + ID string + ListID string + NextSend string + WorkflowID string + type AutomationQueueRequest struct + EmailAddress string + type AutomationRecipient struct + ListID string + SegmentOptions AutomationOptions + type AutomationSettingsLong struct + Authenticate bool + AutoFBPost []string + AutoFooter bool + AutoTweet bool + DragAndDrop bool + FBComments bool + FromName string + InlineCSS bool + ReplyTo string + SubjectLine string + TemplateID int + Title string + type AutomationSettingsShort struct + Authenticate bool + AutoFooter bool + FromName string + InlineCSS bool + ReplyTo string + Title string + ToName string + UseConversation bool + type AutomationTracking struct + Capsule Capsule + Clicktale string + Ecomm360 bool + GoalTracking bool + GoogleAnalytics string + HTMLClicks bool + Highrise Highrise + Opens bool + Salesforce Salesforce + TextClicks bool + type BasicQueryParams struct + ExcludeFields []string + Fields []string + SortDirection string + SortField string + Status string + func (q BasicQueryParams) Params() map[string]string + type BatchOperation struct + Body string + Method string + OperationID string + Params url.Values + Path string + type BatchOperationCreationRequest struct + Operations []BatchOperation + type BatchOperationResponse struct + CompletedAt string + ErroredOperations int + FinishedOperations int + ID string + Links []Link + ResponseBodyUrl string + Status string + SubmittedAt string + TotalOperations int + type BatchSubscribeMembersError struct + EmailAddress string + ErrorMessage string + type BatchSubscribeMembersRequest struct + Members []MemberRequest + UpdateExisting bool + type BatchSubscribeMembersResponse struct + ErrorCount int + ErrorMessages []BatchSubscribeMembersError + NewMembers []ListOfMembers + TotalCreated int + TotalUpdated int + UpdatedMembers []ListOfMembers + type CampaignCreationRecipients struct + ListId string + SegmentOptions CampaignCreationSegmentOptions + type CampaignCreationRequest struct + Recipients CampaignCreationRecipients + Settings CampaignCreationSettings + Tracking CampaignTracking + Type string + type CampaignCreationSegmentOptions struct + Conditions interface{} + Match string + SavedSegmentId int + type CampaignCreationSettings struct + Authenticate bool + AutoFooter bool + AutoTweet bool + FbComments bool + FolderId string + FromName string + InlineCss bool + PreviewText string + ReplyTo string + SubjectLine string + TemplateId uint + Title string + ToName string + UseConversation bool + type CampaignDefaults struct + FromEmail string + FromName string + Language string + Subject string + type CampaignDeliveryStatus struct + Enabled bool + type CampaignEcommerce struct + TotalOrders int + TotalRevenue int + TotalSpent int + type CampaignFolder struct + Count uint + ID string + Name string + type CampaignFolderCreationRequest struct + Name string + type CampaignFolderQueryParams struct + type CampaignQueryParams struct + BeforeCreateTime string + BeforeSendTime string + FolderId string + ListId string + SinceCreateTime string + SinceSendTime string + SortDir string + SortField string + Status string + Type string + func (q CampaignQueryParams) Params() map[string]string + type CampaignReportSummary struct + ClickRate float32 + Clicks int + Ecommerce CampaignEcommerce + OpenRate float32 + Opens int + SubscriberClicks int + UniqueOpens int + type CampaignResponse struct + ArchiveUrl string + ContentType string + CreateTime string + DeliveryStatus CampaignDeliveryStatus + EmailsSent uint + ID string + LongArchiveUrl string + NeedsBlockRefresh bool + Recipients CampaignResponseRecipients + ReportSummary CampaignReportSummary + SendTime string + Settings CampaignResponseSettings + Status string + Tracking CampaignTracking + Type string + WebID uint + func (campaign CampaignResponse) CanMakeRequest() error + type CampaignResponseRecipients struct + ListId string + ListName string + RecipientCount int + SegmentText string + type CampaignResponseSettings struct + Authenticate bool + AutoFooter bool + AutoTweet bool + DragAndDrop bool + FbComments bool + FolderId string + FromName string + InlineCss bool + PreviewText string + ReplyTo string + SubjectLine string + TemplateId uint + Timewarp bool + Title string + ToName string + UseConversation bool + type CampaignTracking struct + Clicktale string + Ecomm360 bool + GoalTracking bool + GoogleAnalytics string + HtmlClicks bool + Opens bool + TextClicks bool + type Capsule struct + Notes bool + type Cart struct + CampaignID string + CheckoutURL string + CreatedAt time.Time + CurrencyCode string + Customer Customer + ID string + Lines []LineItem + Links []Link + OrderTotal float64 + TaxTotal float64 + UpdatedAt time.Time + func (cart *Cart) MarshalJSON() ([]byte, error) + type CartList struct + Carts []Cart + Links []Link + TotalItems int + type Client struct + Client string + ListID string + Members int + type Contact struct + Address1 string + Address2 string + City string + Company string + Country string + PhoneNumber string + State string + Zip string + type Customer struct + Address *Address + Company string + CreatedAt string + EmailAddress string + FirstName string + ID string + LastName string + Links []Link + OptInStatus bool + OrdersCount int + TotalSpent float64 + UpdatedAt string + type CustomerList struct + Customers []Customer + Links []Link + TotalItems int + type ExtendedQueryParams struct + Count int + Offset int + func (q ExtendedQueryParams) Params() map[string]string + type GrowthHistory struct + Existing int + Imports int + ListID string + Month string + OptIns int + type Highrise struct + Campaign bool + Notes bool + type HookEvents struct + Campaign bool + Cleaned bool + Profile bool + Subscribe bool + Unsubscribe bool + Upemail bool + type HookSources struct + API bool + Admin bool + User bool + type IndustryStats struct + BounceRate float64 + ClickRate float64 + OpenRate float64 + type Interest struct + CategoryID string + DisplayOrder int + ID string + ListID string + Name string + type InterestCategoriesQueryParams struct + Type string + func (q InterestCategoriesQueryParams) Params() map[string]string + type InterestCategory struct + ID string + ListID string + func (interestCategory InterestCategory) CreateInterest(body *InterestRequest) (*Interest, error) + func (interestCatgory InterestCategory) CanMakeRequest() error + type InterestCategoryRequest struct + DisplayOrder int + Title string + Type string + type InterestRequest struct + DisplayOrder int + Name string + type InterestsCondition struct + ConditionType string + Field string + Op string + Value []string + type LineItem struct + ID string + Price float64 + ProductID string + ProductTitle string + ProductVariantID string + ProductVariantTitle string + Quantity int + type Link struct + Href string + Method string + Rel string + Schema string + TargetSchema string + type ListCreationRequest struct + CampaignDefaults CampaignDefaults + Contact Contact + EmailTypeOption bool + Name string + NotifyOnSubscribe string + NotifyOnUnsubscribe string + PermissionReminder string + UseArchiveBar bool + Visibility string + type ListOfAbuseReports struct + ListID string + Reports []AbuseReport + type ListOfActivity struct + Activities []Activity + ListID string + type ListOfAuthorizedApps struct + Apps []AuthorizedApp + type ListOfAutomationQueues struct + EmailID string + Queues []AutomationQueue + WorkflowID string + type ListOfAutomations struct + Automations []Automation + type ListOfBatchOperations struct + BatchOperations []BatchOperationResponse + type ListOfCampaignFolders struct + Folders []CampaignFolder + type ListOfCampaigns struct + Campaigns []CampaignResponse + type ListOfClients struct + Clients []Client + ListID string + type ListOfEmails struct + Emails []AutomationEmail + type ListOfGrownHistory struct + History []GrowthHistory + ListID string + type ListOfInterestCategories struct + Categories []InterestCategory + ListID string + type ListOfInterests struct + CategoryID string + Interests []Interest + ListID string + TotalItems int + type ListOfLists struct + Lists []ListResponse + type ListOfMemberActivity struct + Activity []Activity + EmailID string + ListID string + type ListOfMemberGoals struct + EmailID string + Goals []MemberGoal + ListID string + type ListOfMemberNotes struct + EmailID string + ListID string + Notes []MemberNoteLong + type ListOfMembers struct + ListID string + Members []Member + type ListOfMergeFields struct + ListID string + MergeFields []MergeField + type ListOfRemovedSubscribers struct + Subscribers []RemovedSubscriber + WorkflowID string + type ListOfSegments struct + ListID string + Segments []Segment + type ListOfTemplateFolders struct + Folders []TemplateFolder + type ListOfTemplates struct + Templates []TemplateResponse + type ListOfWebHooks struct + ListID string + WebHooks []WebHook + type ListQueryParams struct + BeforeCampaignLastSent string + BeforeDateCreated string + Email string + SinceCampaignLastSent string + SinceDateCreated string + func (q ListQueryParams) Params() map[string]string + type ListResponse struct + BeamerAddress string + DateCreated string + ID string + ListRating int + Modules []string + Stats Stats + SubscribeURLLong string + SubscribeURLShort string + func (list ListResponse) AddOrUpdateMember(id string, body *MemberRequest) (*Member, error) + func (list ListResponse) BatchModifySegment(id string, body *SegmentBatchRequest) (*SegmentBatchResponse, error) + func (list ListResponse) BatchSubscribeMembers(body *BatchSubscribeMembersRequest) (*BatchSubscribeMembersResponse, error) + func (list ListResponse) CanMakeRequest() error + func (list ListResponse) CreateInterestCategory(body *InterestCategoryRequest) (*InterestCategory, error) + func (list ListResponse) CreateMember(body *MemberRequest) (*Member, error) + func (list ListResponse) CreateMergeField(body *MergeFieldRequest) (*MergeField, error) + func (list ListResponse) CreateSegment(body *SegmentRequest) (*Segment, error) + func (list ListResponse) CreateWebHooks(body *WebHookRequest) (*WebHook, error) + func (list ListResponse) DeleteInterestCategory(id string) (bool, error) + func (list ListResponse) DeleteMember(id string) (bool, error) + func (list ListResponse) DeleteSegment(id string) (bool, error) + func (list ListResponse) DeleteWebHook(id string) (bool, error) + func (list ListResponse) GetAbuseReport(id string, params *ExtendedQueryParams) (*AbuseReport, error) + func (list ListResponse) GetAbuseReports(params *ExtendedQueryParams) (*ListOfAbuseReports, error) + func (list ListResponse) GetActivity(params *BasicQueryParams) (*ListOfActivity, error) + func (list ListResponse) GetClients(params *BasicQueryParams) (*ListOfClients, error) + func (list ListResponse) GetGrowthHistory(params *ExtendedQueryParams) (*ListOfGrownHistory, error) + func (list ListResponse) GetGrowthHistoryForMonth(month string, params *BasicQueryParams) (*GrowthHistory, error) + func (list ListResponse) GetInterest(interestCategoryID, interestID string, params *BasicQueryParams) (*Interest, error) + func (list ListResponse) GetInterestCategories(params *InterestCategoriesQueryParams) (*ListOfInterestCategories, error) + func (list ListResponse) GetInterestCategory(id string, params *BasicQueryParams) (*InterestCategory, error) + func (list ListResponse) GetInterests(interestCategoryID string, params *ExtendedQueryParams) (*ListOfInterests, error) + func (list ListResponse) GetMember(id string, params *BasicQueryParams) (*Member, error) + func (list ListResponse) GetMembers(params *InterestCategoriesQueryParams) (*ListOfMembers, error) + func (list ListResponse) GetMergeField(params *MergeFieldParams) (*MergeField, error) + func (list ListResponse) GetMergeFields(params *MergeFieldsParams) (*ListOfMergeFields, error) + func (list ListResponse) GetSegment(id string, params *BasicQueryParams) (*Segment, error) + func (list ListResponse) GetSegments(params *SegmentQueryParams) (*ListOfSegments, error) + func (list ListResponse) GetWebHook(id string) (*WebHook, error) + func (list ListResponse) GetWebHooks() (*ListOfWebHooks, error) + func (list ListResponse) SearchMembers(params *SearchMembersQueryParams) (*SearchMembersResponse, error) + func (list ListResponse) UpdateInterestCategory(id string, body *InterestCategoryRequest) (*InterestCategory, error) + func (list ListResponse) UpdateMember(id string, body *MemberRequest) (*Member, error) + func (list ListResponse) UpdateSegment(id string, body *SegmentRequest) (*Segment, error) + func (list ListResponse) UpdateWebHook(id string, body *WebHookRequest) (*WebHook, error) + type Matches struct + Members []Member + TotalItems int64 + type Member struct + EmailClient string + EmailType string + ID string + LastChanged string + LastNote MemberNoteShort + ListID string + MemberRating int + Stats MemberStats + Tags []TagsResponse + UniqueEmailID string + func (mem Member) CanMakeRequest() error + func (mem Member) CreateNote(msg string) (*MemberNoteLong, error) + func (mem Member) DeleteNote(id string) (bool, error) + func (mem Member) GetActivity(params *BasicQueryParams) (*ListOfMemberActivity, error) + func (mem Member) GetGoals(params *BasicQueryParams) (*ListOfMemberGoals, error) + func (mem Member) GetNote(id string, params *BasicQueryParams) (*MemberNoteLong, error) + func (mem Member) GetNotes(params *ExtendedQueryParams) (*ListOfMemberNotes, error) + func (mem Member) UpdateNote(id, msg string) (*MemberNoteLong, error) + func (mem Member) UpdateTags(tags []TagRequest) error + type MemberActivity struct + Action string + CampaignID string + ParentCampaign string + Timestamp string + Title string + Type string + URL string + type MemberGoal struct + Data string + Event string + ID int + LastVisitedAt string + type MemberLocation struct + CountryCode string + DSTOffset int + GMTOffset int + Latitude float64 + Longitude float64 + Timezone string + func (loc *MemberLocation) MarshalJSON() ([]byte, error) + type MemberNoteLong struct + CreatedAt string + CreatedBy string + EmailID string + ID int + ListID string + Note string + UpdatedAt string + type MemberNoteShort struct + CreatedAt string + CreatedBy string + ID int + Note string + type MemberRequest struct + EmailAddress string + EmailType string + IPOpt string + IPSignup string + Interests map[string]bool + Language string + Location *MemberLocation + MergeFields map[string]interface{} + Status string + StatusIfNew string + Tags []string + TimestampOpt string + TimestampSignup string + VIP bool + type MemberStats struct + AvgClickRate float64 + AvgOpenRate float64 + type MemberTag struct + ID int + Name string + type MergeField struct + DefaultValue string + DisplayOrder int + HelpText string + ListID string + MergeID int + Name string + Options MergeFieldOptions + Public bool + Required bool + Tag string + Type string + type MergeFieldOptions struct + Choices []string + DateFormat string + DefaultCountry int + PhoneFormat string + Size int + type MergeFieldParams struct + MergeID string + type MergeFieldRequest struct + DefaultValue string + DisplayOrder int + HelpText string + Name string + Options MergeFieldOptions + Public bool + Required bool + Tag string + Type string + type MergeFieldsParams struct + Required bool + Type string + type Order struct + BillingAddress *Address + CampaignID string + CancelledAtForeign time.Time + CreatedAt time.Time + CurrencyCode string + Customer Customer + FinancialStatus string + FulfillmentStatus string + ID string + Lines []LineItem + Links []Link + OrderTotal float64 + ProcessedAtForeign time.Time + ShippingAddress *Address + ShippingTotal float64 + TaxTotal float64 + TrackingCode string + UpdatedAt time.Time + UpdatedAtForeign time.Time + func (order *Order) MarshalJSON() ([]byte, error) + type OrderList struct + Links []Link + Orders []Order + TotalItems int + type Product struct + Description string + Handle string + ID string + ImageURL string + Links []Link + PublishedAtForeign time.Time + StoreID string + Title string + Type string + URL string + Variants []Variant + Vendor string + func (product *Product) MarshalJSON() ([]byte, error) + func (product Product) CreateVariant(req *Variant) (*Variant, error) + func (product Product) DeleteVariant(id string) (bool, error) + func (product Product) HasID() error + func (product Product) UpdateVariant(req *Variant) (*Variant, error) + type ProductList struct + Links []Link + Products []Product + StoreID string + TotalItems int + type QueryParams interface + Params func() map[string]string + type RemovedSubscriber struct + EmailAddress string + ID string + ListID string + WorkflowID string + type RemovedSubscriberRequest struct + EmailAddress string + type ReportSummary struct + ClickRate float64 + Clicks int + OpenRate float64 + Opens int + SubscriberClicks int + UniqueOpens int + type RootResponse struct + AccountID string + AccountName string + Contact AccountContact + Email string + IndustyStats IndustryStats + LastLogin string + Links []Link + ProEnabled bool + Role string + TotalSubscribers int + type Salesforce struct + Campaign bool + Notes bool + type SearchMembersQueryParams struct + Query string + func (q SearchMembersQueryParams) Params() map[string]string + type SearchMembersResponse struct + ExactMatches Matches + FullSearch Matches + Links []Link + type Segment struct + CreatedAt string + ID string + ListID string + MemberCount int + Type string + UpdatedAt string + type SegmentBatchError struct + EmailAddresses []string + Error string + type SegmentBatchRequest struct + MembersToAdd []string + MembersToRemove []string + type SegmentBatchResponse struct + ErrorCount int + Errors []SegmentBatchError + MembersAdded []Member + MembersRemoved []Member + TotalAdded int + TotalRemoved int + type SegmentConditional struct + Field string + OP string + Value interface{} + type SegmentOptions struct + Conditions []SegmentConditional + Match string + type SegmentQueryParams struct + BeforeCreatedAt string + BeforeUpdatedAt string + SinceCreatedAt string + SinceUpdatedAt string + Type string + func (q SegmentQueryParams) Params() map[string]string + type SegmentRequest struct + Name string + Options *SegmentOptions + StaticSegment []string + type SendCampaignRequest struct + CampaignId string + type SocialCard struct + Description string + ImageURL string + Title string + type Stats struct + AvgSubRate float64 + AvgUnsubRate float64 + CampaignCount int + CampaignLastSent string + CleanedCount int + CleanedCountSinceSend int + ClickRate float64 + LastSubDate string + LastUnsubDate string + MemberCount int + MemberCountSinceSend int + MergeFieldCount int + OpenRate float64 + TargetSubRate float64 + UnsubscribeCount int + UnsubscribeCountSinceSend int + type Store struct + Address *Address + CreatedAt time.Time + CurrencyCode string + Domain string + EmailAddress string + ID string + Links []Link + ListID string + MoneyFormat string + Name string + Phone string + Platform string + PrimaryLocale string + Timezone string + UpdatedAt time.Time + func (store *Store) MarshalJSON() ([]byte, error) + func (store Store) CreateCart(req *Cart) (*Cart, error) + func (store Store) CreateCustomer(req *Customer) (*Customer, error) + func (store Store) CreateOrder(req *Order) (*Order, error) + func (store Store) CreateProduct(req *Product) (*Product, error) + func (store Store) DeleteCart(id string) (bool, error) + func (store Store) DeleteCustomer(id string) (bool, error) + func (store Store) DeleteOrder(id string) (bool, error) + func (store Store) DeleteProduct(id string) (bool, error) + func (store Store) GetCart(id string, params *BasicQueryParams) (*Cart, error) + func (store Store) GetCarts(params *ExtendedQueryParams) (*CartList, error) + func (store Store) GetCustomer(id string, params *BasicQueryParams) (*Customer, error) + func (store Store) GetCustomers(params *ExtendedQueryParams) (*CustomerList, error) + func (store Store) GetOrder(id string, params *BasicQueryParams) (*Order, error) + func (store Store) GetOrders(params *ExtendedQueryParams) (*OrderList, error) + func (store Store) GetProduct(id string, params *BasicQueryParams) (*Product, error) + func (store Store) GetProducts(params *ExtendedQueryParams) (*ProductList, error) + func (store Store) HasID() error + func (store Store) UpdateCart(req *Cart) (*Cart, error) + func (store Store) UpdateCustomer(req *Customer) (*Customer, error) + func (store Store) UpdateOrder(req *Order) (*Order, error) + func (store Store) UpdateProduct(req *Product) (*Product, error) + type StoreList struct + Links []Link + Stores []Store + TotalItems int + type TagRequest struct + Name string + Status TagRequestStatus + type TagRequestStatus string + const TagRequestStatusActive + const TagRequestStatusInactive + type TagsRequest struct + Tags []TagRequest + type TagsResponse struct + ID int32 + Name string + type TemplateCreationRequest struct + FolderId string + Html string + Name string + type TemplateFolder struct + Count uint + ID string + Name string + type TemplateFolderCreationRequest struct + Name string + type TemplateFolderQueryParams struct + type TemplateQueryParams struct + BeforeCreatedAt string + CreatedBy string + FolderId string + SinceCreatedAt string + Type string + func (q TemplateQueryParams) Params() map[string]string + type TemplateResponse struct + Active bool + Category string + CreatedBy string + DateCreated string + DragAndDrop bool + FolderId string + ID uint + Name string + Responsive bool + ShareUrl string + Thumbnail string + Type string + func (template TemplateResponse) CanMakeRequest() error + type TestEmailRequest struct + SendType string + TestEmails []string + type TimeToRun map[string]interface + func SendAsap(days []string, sendAsap bool) *TimeToRun + func SendAt(days []string, sendAt string) *TimeToRun + func SendBetween(days []string, start string, end string) *TimeToRun + type Variant struct + Backorders string + ID string + ImageURL string + InventoryQuantity int + Price float64 + ProductID string + SKU string + StoreID string + Title string + URL string + Visibility string + type VariantList struct + Links []Link + StoreID string + TotalItems int + Variants []Variant + type WebHook struct + ID string + ListID string + type WebHookRequest struct + Events HookEvents + Sources HookSources + URL string + type WorkflowType map[string]interface + func WorkflowAPI(emailCount int, runtime TimeToRun) *WorkflowType + func WorkflowBestCustomer(emailCount int, sendImmediately bool, lifetimePurchaseValue float64, ...) *WorkflowType + func WorkflowCategoryFollowup(emailCount int, sendImmediately bool, categoryName string, runtime TimeToRun) *WorkflowType + func WorkflowDateAdded(emailCount int, runtime TimeToRun) *WorkflowType + func WorkflowEmailFollowup(emailCount int, triggerOnImport, sendImmediately bool, runtime TimeToRun) *WorkflowType + func WorkflowEmailSeries(emailCount int, triggerOnImport, sendImmediately bool, runtime TimeToRun) *WorkflowType + func WorkflowGroupAdd(emailCount int, sendImmediately bool, groupID int, runtime TimeToRun) *WorkflowType + func WorkflowGroupRemove(emailCount int, sendImmediately bool, groupID int, runtime TimeToRun) *WorkflowType + func WorkflowMandrill(emailCount int, sendImmediately bool, mandrillTags []string, runtime TimeToRun) *WorkflowType + func WorkflowProductFollowup(emailCount int, sendImmediately bool, productName string, runtime TimeToRun) *WorkflowType + func WorkflowPurchaseFollowup(emailCount int, sendImmediately bool, runtime TimeToRun) *WorkflowType + func WorkflowRecurringEvent(emailCount int, mergeFieldTrigger string, runtime TimeToRun) *WorkflowType + func WorkflowSpecialEvent(emailCount int, mergeFieldTrigger string, runtime TimeToRun) *WorkflowType + func WorkflowVisitURL(emailCount int, sendImmediately bool, goalURL string, runtime TimeToRun) *WorkflowType + func WorkflowWelcomeSeries(emailCount int, triggerOnImport, sendImmediately bool, runtime TimeToRun) *WorkflowType