Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Authenticate() error
- func (c *Client) CreateCampaignMember(contactID, campaignID, status string) *simpleforce.SObject
- func (c *Client) FindContactByIDs(hid, pid string) (Contact, error)
- func (c *Client) FindCurrentMembers() ([]Contact, error)
- func (c *Client) GetCampaignMembershipStatus(contactID, campaignID string) (string, error)
- func (c *Client) GetContact(id string) (Contact, error)
- func (c *Client) GetContactByDiscordID(discordID string) (Contact, error)
- func (c *Client) SetDiscordID(contactID, discordID string) error
- type Contact
Constants ¶
View Source
const DateFormat = "2006-01-02"
View Source
const MembershipGracePeriod = 100 * (24 * time.Hour)
100 day grace period
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { SFClient *simpleforce.Client // contains filtered or unexported fields }
func (*Client) Authenticate ¶
func (*Client) CreateCampaignMember ¶
func (c *Client) CreateCampaignMember(contactID, campaignID, status string) *simpleforce.SObject
func (*Client) FindContactByIDs ¶
func (*Client) FindCurrentMembers ¶
func (*Client) GetCampaignMembershipStatus ¶
func (*Client) GetContactByDiscordID ¶
func (*Client) SetDiscordID ¶
Click to show internal directories.
Click to hide internal directories.