Documentation ¶
Index ¶
- func CreateContact(baseURL, apiKey string, contactData map[string]interface{}) (interface{}, error)
- func NewConnector() (*sdk.ConnectorPlugin, error)
- func NewFreshWorksAPIClient(baseURL, apiKey string) *http.Client
- type Contact
- type ContactWrapper
- type CreateNewContactOperation
- type FilterWrapper
- type UpdateContactOperation
- type ViewDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContact ¶
func NewConnector ¶
func NewConnector() (*sdk.ConnectorPlugin, error)
func NewFreshWorksAPIClient ¶
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 (c *CreateNewContactOperation) GetInfo() *sdk.OperationInfo
func (*CreateNewContactOperation) Run ¶
func (c *CreateNewContactOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)
func (*CreateNewContactOperation) Test ¶
func (c *CreateNewContactOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)
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 (c *UpdateContactOperation) GetInfo() *sdk.OperationInfo
func (*UpdateContactOperation) Run ¶
func (c *UpdateContactOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)
func (*UpdateContactOperation) Test ¶
func (c *UpdateContactOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)
Click to show internal directories.
Click to hide internal directories.