freshworkscrm

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContact

func CreateContact(baseURL, apiKey string, contactData map[string]interface{}) (interface{}, error)

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

func NewFreshWorksAPIClient

func NewFreshWorksAPIClient(baseURL, apiKey string) *http.Client

Types

type Contact

type Contact struct {
	ID              int     `json:"id"`
	FirstName       string  `json:"first_name"`
	LastName        string  `json:"last_name"`
	DisplayName     string  `json:"display_name"`
	Avatar          *string `json:"avatar"`
	JobTitle        *string `json:"job_title"`
	City            *string `json:"city"`
	State           *string `json:"state"`
	Zipcode         *string `json:"zipcode"`
	Country         *string `json:"country"`
	Email           *string `json:"email"`
	TimeZone        *string `json:"time_zone"`
	WorkNumber      *string `json:"work_number"`
	MobileNumber    string  `json:"mobile_number"`
	Address         *string `json:"address"`
	LastSeen        *string `json:"last_seen"`
	LeadScore       int     `json:"lead_score"`
	LastContacted   *string `json:"last_contacted"`
	OpenDealsAmount string  `json:"open_deals_amount"`
	Links           struct {
		Conversations string `json:"conversations"`
		Activities    string `json:"activities"`
	} `json:"links"`
	CustomField struct {
		CfIsActive bool `json:"cf_is_active"`
	} `json:"custom_field"`
	UpdatedAt string  `json:"updated_at"`
	Keyword   *string `json:"keyword"`
	Medium    *string `json:"medium"`
	Facebook  *string `json:"facebook"`
	Twitter   *string `json:"twitter"`
	Linkedin  *string `json:"linkedin"`
}

type ContactWrapper

type ContactWrapper struct {
	Contacts []Contact `json:"contacts"`
}

type CreateNewContactOperation

type CreateNewContactOperation struct {
	// contains filtered or unexported fields
}

func NewCreateNewContactOperation

func NewCreateNewContactOperation() *CreateNewContactOperation

func (*CreateNewContactOperation) GetInfo

func (*CreateNewContactOperation) Run

func (*CreateNewContactOperation) Test

type FilterWrapper

type FilterWrapper struct {
	Filters []ViewDetails `json:"filters"`
}

type UpdateContactOperation

type UpdateContactOperation struct {
	// contains filtered or unexported fields
}

func NewUpdateContactOperation

func NewUpdateContactOperation() *UpdateContactOperation

func (*UpdateContactOperation) GetInfo

func (*UpdateContactOperation) Run

func (*UpdateContactOperation) Test

type ViewDetails

type ViewDetails struct {
	ID             int    `json:"id"`
	Name           string `json:"name"`
	ModelClassName string `json:"model_class_name"`
	UserID         int    `json:"user_id"`
	IsDefault      bool   `json:"is_default"`
	IsPublic       bool   `json:"is_public"`
	UpdatedAt      string `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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