mailingList

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Token      string
	Datacenter string
	Rest       rest.Rest
}

type Contact

type Contact struct {
	Id        string
	Email     string
	FirstName string
	LastName  string
}

type MailingList

type MailingList struct {
	Id   string
	Name string
	Conn Connection
}

func New

func New(name string) *MailingList

New - return a MailingList struct containing the name and connection information

func (MailingList) DeleteContact

func (mList MailingList) DeleteContact(contactId string) bool

DeleteContact - use the 'id' field of a Contact to issue and API call to remove it from the preset mailing list

func (MailingList) GetAllContacts

func (mList MailingList) GetAllContacts(nextPage string, allContacts *[]Contact)

GetAllContacts - return an array of Contact for the preset mailing list name This is a recursive function as results have to be paginated in order to get all of the contacts allContacts will contain the results

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL