engagement

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package engagement covers the engagements which are used to store data from CRM actions, including notes, tasks, meetings, and calls.

Package engagement covers the engagements which are used to store data from CRM actions, including notes, tasks, meetings, and calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Associations

type Associations struct {
	ContactIDS  []int64       `json:"contactIds"`
	CompanyIDS  []interface{} `json:"companyIds"`
	DealIDS     []interface{} `json:"dealIds"`
	OwnerIDS    []interface{} `json:"ownerIds"`
	WorkflowIDS []interface{} `json:"workflowIds"`
	TicketIDS   []interface{} `json:"ticketIds"`
	ContentIDS  []interface{} `json:"contentIds"`
	QuoteIDS    []interface{} `json:"quoteIds"`
}

Associations is a struct generated from the HubSpot API

type Engagement

type Engagement struct {
	ID                   int64         `json:"id"`
	PortalID             int64         `json:"portalId"`
	Active               bool          `json:"active"`
	CreatedAt            int64         `json:"createdAt"`
	LastUpdated          int64         `json:"lastUpdated"`
	CreatedBy            int64         `json:"createdBy"`
	ModifiedBy           int64         `json:"modifiedBy"`
	OwnerID              int64         `json:"ownerId"`
	Type                 string        `json:"type"`
	Timestamp            int64         `json:"timestamp"`
	AllAccessibleTeamIDS []interface{} `json:"allAccessibleTeamIds"`
	BodyPreview          string        `json:"bodyPreview"`
	QueueMembershipIDS   []interface{} `json:"queueMembershipIds"`
}

Engagement is a struct generated from the HubSpot API

type Engagements

type Engagements struct {
	*client.Client
}

Engagements contains the elements to communicate with the HubSpot Engagements endpoints.

func New

func New(c *client.Client) *Engagements

New creates a new instance of the Engagements service with default settings.

func (*Engagements) GetEngagement

func (e *Engagements) GetEngagement(engagementID int64) (HubspotEngagement, error)

GetEngagement gets an engagement (a task or activity) on an object in HubSpot.

type HubspotEngagement

type HubspotEngagement struct {
	Engagement   Engagement    `json:"engagement"`
	Associations Associations  `json:"associations"`
	Attachments  []interface{} `json:"attachments"`
	Metadata     Metadata      `json:"metadata"`
}

HubspotEngagement is a struct generated from the HubSpot API

type Metadata

type Metadata struct {
	Body string `json:"body"`
}

Metadata is a struct generated from the HubSpot API

Jump to

Keyboard shortcuts

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