Versions in this module Expand all Collapse all v0 v0.0.2 Sep 8, 2021 v0.0.1 Sep 8, 2021 Changes in this version + const VisibleToOwnersAndFollowers + const VisibleToWholeCompany + func Stringify(message interface{}) string + type ActiveFlag uint8 + const ActiveFlagDisabled + const ActiveFlagEnabled + type ActivitiesCreateOptions struct + DealID uint + Done uint8 + DueDate string + DueTime string + Duration string + OrgID uint + Participants interface{} + PersonID uint + Subject string + Type string + UserID uint + type ActivitiesReponse struct + AdditionalData AdditionalData + Data []Activity + Success bool + type ActivitiesService service + func (s *ActivitiesService) Create(ctx context.Context, opt *ActivitiesCreateOptions) (*ActivityResponse, *Response, error) + func (s *ActivitiesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *ActivitiesService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *ActivitiesService) GetByID(ctx context.Context, id int) (*ActivitiesReponse, *Response, error) + func (s *ActivitiesService) List(ctx context.Context) (*ActivitiesReponse, *Response, error) + func (s *ActivitiesService) Update(ctx context.Context, id int, opt *ActivitiesCreateOptions) (*ActivityResponse, *Response, error) + type Activity struct + ActiveFlag bool + AddTime string + AssignedToUserID int + CompanyID int + CreatedByUserID int + DealDropboxBcc string + DealID int + DealTitle string + Done bool + DueDate string + DueTime string + Duration string + GcalEventID interface{} + GoogleCalendarEtag interface{} + GoogleCalendarID interface{} + ID int + MarkedAsDoneTime string + Note string + OrgID int + OrgName string + OwnerName string + Participants []Participants + PersonDropboxBcc string + PersonID int + PersonName string + ReferenceID int + ReferenceType string + Subject string + Type string + UpdateTime string + UserID int + func (a Activity) String() string + type ActivityField struct + ActiveFlag bool + AddTime string + AddVisibleFlag bool + BulkEditAllowed bool + DetailsVisibleFlag bool + EditFlag bool + FieldType string + ID int + ImportantFlag bool + IndexVisibleFlag bool + Key string + MandatoryFlag bool + Name string + Options []struct{ ... } + OrderNr int + PicklistData interface{} + UpdateTime string + type ActivityFieldsResponse struct + AdditionalData AdditionalData + Data []ActivityField + Success bool + type ActivityFieldsService service + func (s *ActivityFieldsService) List(ctx context.Context) (*ActivityFieldsResponse, *Response, error) + type ActivityResponse struct + Data Activity + Success bool + type ActivityType struct + ActiveFlag bool + AddTime string + Color interface{} + ID int + IconKey string + IsCustomFlag bool + KeyString string + Name string + OrderNr int + UpdateTime interface{} + func (at ActivityType) String() string + type ActivityTypeResponse struct + Data ActivityType + Success bool + type ActivityTypesAddOptions struct + Color string + IconKey string + Name string + type ActivityTypesEditOptions struct + Color string + IconKey string + Name string + OrderNr uint + type ActivityTypesResponse struct + AdditionalData AdditionalData + Data []ActivityType + Success bool + type ActivityTypesService service + func (s *ActivityTypesService) Create(ctx context.Context, opt *ActivityTypesAddOptions) (*ActivityTypeResponse, *Response, error) + func (s *ActivityTypesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *ActivityTypesService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *ActivityTypesService) List(ctx context.Context) (*ActivityTypesResponse, *Response, error) + func (s *ActivityTypesService) Update(ctx context.Context, id int, opt *ActivityTypesEditOptions) (*ActivityTypeResponse, *Response, error) + type AdditionalData struct + CompanyID int + DefaultCompanyID int + LastTimestampOnPage string + MultipleCompanies bool + Pagination Pagination + SinceTimestamp string + User struct{ ... } + type Authorization struct + APIToken string + AddTime string + Company struct{ ... } + CompanyID int + UserID int + func (a Authorization) String() string + type AuthorizationsListOptions struct + Email string + Password string + type AuthorizationsResponse struct + AdditionalData AdditionalData + Data []Authorization + Success bool + type AuthorizationsService service + func (s *AuthorizationsService) List(ctx context.Context, opt *AuthorizationsListOptions) (*AuthorizationsResponse, *Response, error) + type Client struct + Activities *ActivitiesService + ActivityFields *ActivityFieldsService + ActivityTypes *ActivityTypesService + Authorizations *AuthorizationsService + BaseURL *url.URL + Currencies *CurrenciesService + DealFields *DealFieldsService + Deals *DealService + Files *FilesService + Filters *FiltersService + GoalsService *GoalsService + NoteFields *NoteFieldsService + Notes *NotesService + OrganizationField *OrganizationFieldsService + Organizations *OrganizationsService + PersonFields *PersonFieldsService + Persons *PersonsService + PipelinesService *PipelinesService + ProductFields *ProductFieldsService + Products *ProductsService + Recents *RecentsService + SearchResults *SearchResultsService + Stages *StagesService + UserConnections *UserConnectionsService + UserSettings *UserSettingsService + Users *UsersService + Webhooks *WebhooksService + func NewClient(options *Config) *Client + func (c *Client) Do(ctx context.Context, request *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(method, url string, opt interface{}, body interface{}) (*http.Request, error) + func (c *Client) SetOptions(options ...func(*Client) error) error + type Config struct + APIKey string + CompanyDomain string + type CreateRemoteLinkedFileOptions struct + FileType string + ItemID uint + ItemType string + RemoteLocation string + Title string + type CurrenciesListOptions struct + Term string + type CurrenciesResponse struct + Data []Currency + Error string + ErrorInfo string + Success bool + type CurrenciesService service + func (s *CurrenciesService) List(ctx context.Context, opt *CurrenciesListOptions) (*CurrenciesResponse, *Response, error) + type Currency struct + ActiveFlag bool + Code string + DecimalPoints int + ID int + IsCustomFlag bool + Name string + Symbol string + func (c Currency) String() string + type Deal struct + Active bool + ActivitiesCount int + AddTime string + AgencyInCharge struct{ ... } + ArrivalNextCT string + CcEmail string + CloseTime string + CreatorUserID struct{ ... } + Currency string + Deleted bool + DepartureCurrentCT string + DoneActivitiesCount int + EmailMessagesCount int + ExpectedCloseDate interface{} + FilesCount int + FirstWonTime interface{} + FollowersCount int + FormattedValue string + FormattedWeightedValue string + ID int + LastActivityDate string + LastActivityID int + LastIncomingMailTime interface{} + LastOutgoingMailTime interface{} + LeadSource uint + LostReason string + LostTime string + NextActivityDate interface{} + NextActivityDuration interface{} + NextActivityID interface{} + NextActivityNote interface{} + NextActivitySubject interface{} + NextActivityTime interface{} + NextActivityType interface{} + NotesCount int + OfflineCommunication string + OrgHidden bool + OrgID struct{ ... } + OrgName string + OwnerName string + ParticipantsCount int + PersonHidden bool + PersonID struct{ ... } + PersonName string + PipelineID int + Probability interface{} + ProductsCount int + ReferenceActivitiesCount int + RequirementAnalysis string + RideCosts string + RottenTime interface{} + ServicePrice float64 + StageChangeTime string + StageID int + StageOrderNr int + Status string + TemporaryLink string + Title string + UndoneActivitiesCount int + UpdateTime string + UserID struct{ ... } + Value float64 + VisibleTo string + WantedStartTime string + WeightedValue int + WonTime interface{} + func (d Deal) String() string + type DealCreateOptions struct + AddTime Timestamp + Currency string + LeadSource uint + LostReason string + OrgID uint + PersonID uint + Probability uint + RequirementAnalysis string + StageID uint + Status string + TemporaryLink string + Title string + UserID uint + Value string + VisibleTo VisibleTo + type DealField struct + ActiveFlag bool + AddTime string + AddVisibleFlag bool + BulkEditAllowed bool + BulkEditAllowedConditions struct{ ... } + DetailsVisibleFlag bool + EditFlag bool + FieldType string + FilteringAllowed bool + ID int + ImportantFlag bool + IndexVisibleFlag bool + IsSubfield bool + Key string + Link string + MandatoryFlag bool + Name string + Options []struct{ ... } + OrderNr int + PicklistData interface{} + SearchableFlag bool + SortableFlag bool + UpdateTime string + UseField string + func (d DealField) String() string + type DealFieldCreateOptions struct + FieldType FieldType + Name string + Options string + type DealFieldResponse struct + AdditionalData AdditionalData + Data DealField + Success bool + type DealFieldUpdateOptions struct + Name string + Options string + type DealFieldsResponse struct + AdditionalData AdditionalData + Data []DealField + Success bool + type DealFieldsService service + func (s *DealFieldsService) Create(ctx context.Context, opt *DealFieldCreateOptions) (*DealFieldResponse, *Response, error) + func (s *DealFieldsService) Delete(ctx context.Context, id uint) (*Response, error) + func (s *DealFieldsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *DealFieldsService) GetByID(ctx context.Context, id int) (*DealFieldResponse, *Response, error) + func (s *DealFieldsService) List(ctx context.Context) (*DealFieldsResponse, *Response, error) + func (s *DealFieldsService) Update(ctx context.Context, id int, opt *DealFieldUpdateOptions) (*ProductFieldResponse, *Response, error) + type DealProbability uint8 + const DealProbabilityDisabled + const DealProbabilityEnabled + type DealResponse struct + AdditionalData AdditionalData + Data Deal + Success bool + type DealService service + func (s *DealService) Create(ctx context.Context, opt *DealCreateOptions) (*DealResponse, *Response, error) + func (s *DealService) Delete(ctx context.Context, id int) (*Response, error) + func (s *DealService) DeleteAttachedProduct(ctx context.Context, dealID int, productAttachmentID int) (*Response, error) + func (s *DealService) DeleteFollower(ctx context.Context, id int, followerID int) (*Response, error) + func (s *DealService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *DealService) DeleteParticipant(ctx context.Context, dealID int, participantID int) (*Response, error) + func (s *DealService) Duplicate(ctx context.Context, id int) (*DealResponse, *Response, error) + func (s *DealService) Find(ctx context.Context, term string) (*DealsResponse, *Response, error) + func (s *DealService) List(ctx context.Context, filterID int) (*DealsResponse, *Response, error) + func (s *DealService) ListUpdates(ctx context.Context, id int) (*DealsResponse, *Response, error) + func (s *DealService) Merge(ctx context.Context, id int, opt *DealsMergeOptions) (*Response, error) + func (s *DealService) Update(ctx context.Context, id int, opt *DealsUpdateOptions) (*Response, error) + type DealsMergeOptions struct + MergeWithID uint + type DealsResponse struct + AdditionalData AdditionalData + Data []Deal + Success bool + type DealsUpdateOptions struct + Currency string + LostReason string + OrganizationID uint + PersonID uint + RequirementAnalysis string + StageID uint + Status string + TemporaryLink string + Title string + UserID uint + Value string + VisibleTo uint + type DeleteMultipleOptions struct + Ids string + type DeletePermissionSetAssignmentOptions struct + PermissionSetID uint + type DeleteRoleAssignmentOptions struct + RoleID uint + type Email struct + Label string + Primary bool + Value string + type ErrorFields struct + Error string + ErrorInfo string + type ErrorResponse struct + Message string + Response *http.Response + func (e *ErrorResponse) Error() string + type EventAction string + const ACTION_ADDED + const ACTION_ALL + const ACTION_DELETED + const ACTION_MERGED + const ACTION_UPDATED + type EventObject string + const OBJECT_ACTIVITY + const OBJECT_ACTIVTIY_TYPE + const OBJECT_ALL_ + const OBJECT_DEAL + const OBJECT_NOTE + const OBJECT_ORGANIZATION + const OBJECT_PERSON + const OBJECT_PIPELINE + const OBJECT_PRODUCT + const OBJECT_STAGE + const OBJECT_USER + type FieldType string + const FieldTypeDate + const FieldTypeDaterange + const FieldTypeDouble + const FieldTypeEnum + const FieldTypeMonetary + const FieldTypeOrg + const FieldTypePeople + const FieldTypePhone + const FieldTypeSet + const FieldTypeText + const FieldTypeTime + const FieldTypeTimerange + const FieldTypeUser + const FieldTypeVarchar + const FieldTypeVarcharAuto + type File struct + ActiveFlag bool + ActivityID interface{} + AddTime string + Cid interface{} + DealID int + DealName string + Description interface{} + EmailMessageID interface{} + FileName string + FileSize int + FileType string + ID int + InlineFlag bool + LogID interface{} + MailMessageID interface{} + Name string + NoteID interface{} + OrgID int + OrgName string + PersonID int + PersonName string + ProductID interface{} + ProductName interface{} + RemoteID string + RemoteLocation string + S3Bucket interface{} + URL string + UpdateTime string + UserID int + func (f File) String() string + type FileResponse struct + AdditionalData AdditionalData + Data File + Success bool + type FilesResponse struct + AdditionalData AdditionalData + Data []File + Success bool + type FilesService service + func (s *FilesService) CreateRemoteLinkedFile(ctx context.Context, opt *CreateRemoteLinkedFileOptions) (*FileResponse, *Response, error) + func (s *FilesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *FilesService) GetByID(ctx context.Context, id int) (*FileResponse, *Response, error) + func (s *FilesService) GetDownloadLinkByID(id int) (string, *http.Request, error) + func (s *FilesService) LinkRemoteFileToItem(ctx context.Context, opt *LinkRemoteFileToItemOptions) (*FileResponse, *Response, error) + func (s *FilesService) List(ctx context.Context) (*FilesResponse, *Response, error) + func (s *FilesService) Update(ctx context.Context, id int, opt *UpdateFileDetailsOptions) (*FileResponse, *Response, error) + func (s *FilesService) Upload(ctx context.Context, fileName string, filePath string) (*FileResponse, *Response, error) + type Filter struct + ActiveFlag bool + AddTime string + CustomViewID int + ID int + Name string + TemporaryFlag interface{} + Type string + UpdateTime string + UserID int + VisibleTo string + func (f Filter) String() string + type FilterConditions struct + Conditions []struct{ ... } + Glue string + type FilterCreateOptions struct + Conditions string + Name string + Type string + type FilterOptions struct + FilterID int + Status string + type FilterResponse struct + Data struct{ ... } + Success bool + type FilterUpdateOptions struct + Conditions string + Name string + type FiltersListOptions struct + Type string + type FiltersResponse struct + AdditionalData AdditionalData + Data []Filter + Success bool + type FiltersService service + func (s *FiltersService) Create(ctx context.Context, opt *FilterCreateOptions) (*FilterResponse, *Response, error) + func (s *FiltersService) Delete(ctx context.Context, id int) (*Response, error) + func (s *FiltersService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *FiltersService) GetByID(ctx context.Context, id int) (*FilterResponse, *Response, error) + func (s *FiltersService) List(ctx context.Context, opt *FiltersListOptions) (*FiltersResponse, *Response, error) + func (s *FiltersService) Update(ctx context.Context, id int, opt *FilterUpdateOptions) (*FilterResponse, *Response, error) + type Goal struct + ActiveFlag bool + ActiveGoalID int + AddTime string + CompanyID int + CreatedByUserID int + Currency string + Delivered int + DeliveredSum int + Expected int + ExpectedSum int + ExpectedType string + GoalType string + ID int + MasterExpected int + Percentage int + Period string + PeriodEnd string + PeriodStart string + PipelineID interface{} + StageID interface{} + UserID int + UserName string + func (g Goal) String() string + type GoalCreateOptions struct + Currency string + Expected uint + ExpectedType string + GoalType string + Period string + PipelineID uint + StageID uint + UserID uint + type GoalGetResultsByIDOptions struct + PeriodEnd uint8 + PeriodStart string + type GoalResponse struct + Data Goal + Success bool + type GoalsListOptions struct + Everyone uint8 + UserID uint + type GoalsResponse struct + AdditionalData AdditionalData + Data []Goal + Success bool + type GoalsService service + func (s *GoalsService) Create(ctx context.Context, opt *GoalCreateOptions) (*GoalResponse, *Response, error) + func (s *GoalsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *GoalsService) GetByID(ctx context.Context, id int) (*GoalResponse, *Response, error) + func (s *GoalsService) GetResultsByID(ctx context.Context, id int, opt *GoalGetResultsByIDOptions) (*GoalsResponse, *Response, error) + func (s *GoalsService) List(ctx context.Context, opt *GoalsListOptions) (*GoalsResponse, *Response, error) + func (s *GoalsService) Update(ctx context.Context, id int, opt *GoalCreateOptions) (*GoalResponse, *Response, error) + type LinkRemoteFileToItemOptions struct + ItemID uint + ItemType string + RemoteID uint + RemoteLocation string + type Note struct + ActiveFlag bool + AddTime Timestamp + Content string + DealID int + ID int + LastUpdateUserID int + OrgID int + PersonID int + PinnedToDealFlag bool + PinnedToOrganizationFlag bool + PinnedToPersonFlag bool + UpdateTime Timestamp + UserID int + func (n Note) String() string + type NoteCreateOptions struct + Content string + DealID uint + OrgID uint + PersonID uint + PinnedToDealFlag uint8 + PinnedToOrganizationFlag uint8 + PinnedToPersonFlag uint8 + type NoteField struct + ActiveFlag bool + EditFlag int + FieldType string + ID int + Key string + MandatoryFlag bool + Name string + Options []Option + VisibleInExportsFlag bool + func (nf NoteField) String() string + type NoteFieldsResponse struct + AdditionalData AdditionalData + Data []NoteField + Success bool + type NoteFieldsService service + func (s *NoteFieldsService) List(ctx context.Context) (*NoteFieldsResponse, *Response, error) + type NoteResponse struct + Data Note + Success bool + type NoteUpdateOptions struct + Content string + DealID uint + OrgID uint + PersonID uint + PinnedToDealFlag uint8 + PinnedToOrganizationFlag uint8 + PinnedToPersonFlag uint8 + type NotesResponse struct + AdditionalData AdditionalData + Data []Note + Success bool + type NotesService service + func (s *NotesService) Create(ctx context.Context, opt *NoteCreateOptions) (*NoteResponse, *Response, error) + func (s *NotesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *NotesService) GetByID(ctx context.Context, id int) (*NoteResponse, *Response, error) + func (s *NotesService) List(ctx context.Context) (*NotesResponse, *Response, error) + func (s *NotesService) Update(ctx context.Context, id int, opt *NoteUpdateOptions) (*NoteResponse, *Response, error) + type Option struct + ID int + Label string + type Organization struct + ActiveFlag bool + ActivitiesCount int + AddTime string + Address string + AddressAdminAreaLevel1 string + AddressAdminAreaLevel2 string + AddressCountry string + AddressFormattedAddress string + AddressLocality string + AddressPostalCode string + AddressRoute string + AddressStreetNumber string + AddressSublocality string + AddressSubpremise string + CategoryID interface{} + CcEmail string + ClosedDealsCount int + CompanyID int + CountryCode interface{} + DoneActivitiesCount int + EmailMessagesCount int + FilesCount int + FirstChar string + FollowersCount int + ID int + LastActivityDate string + LastActivityID int + LostDealsCount int + Name string + NextActivityDate string + NextActivityID int + NextActivityTime interface{} + NotesCount int + OpenDealsCount int + OwnerID struct{ ... } + OwnerName string + PeopleCount int + Phone string + PictureID interface{} + ReferenceActivitiesCount int + RelatedClosedDealsCount int + RelatedLostDealsCount int + RelatedOpenDealsCount int + RelatedWonDealsCount int + TimelineLastActivityTime interface{} + TimelineLastActivityTimeByOwner interface{} + UndoneActivitiesCount int + UpdateTime string + VisibleTo string + WonDealsCount int + func (o Organization) String() string + type OrganizationCreateOptions struct + AddTime Timestamp + Label uint + Name string + OwnerID uint + VisibleTo VisibleTo + type OrganizationField struct + ActiveFlag bool + AddTime string + AddVisibleFlag bool + BulkEditAllowed bool + DetailsVisibleFlag bool + DisplayField string + EditFlag bool + FieldType string + ID int + ImportantFlag bool + IndexVisibleFlag bool + IsSubfield bool + Key string + Link string + MandatoryFlag bool + Name string + Options []struct{ ... } + OrderNr int + PicklistData interface{} + SearchableFlag bool + UpdateTime string + UseField string + func (of OrganizationField) String() string + type OrganizationFieldCreateOptions struct + FieldType FieldType + Name string + Options string + type OrganizationFieldResponse struct + AdditionalData AdditionalData + Data OrganizationField + Success bool + type OrganizationFieldUpdateOptions struct + Name string + Options string + type OrganizationFieldsResponse struct + AdditionalData AdditionalData + Data []OrganizationField + Success bool + type OrganizationFieldsService service + func (s *OrganizationFieldsService) Create(ctx context.Context, opt *OrganizationFieldCreateOptions) (*OrganizationFieldResponse, *Response, error) + func (s *OrganizationFieldsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *OrganizationFieldsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *OrganizationFieldsService) GetByID(ctx context.Context, id int) (*OrganizationFieldResponse, *Response, error) + func (s *OrganizationFieldsService) List(ctx context.Context) (*OrganizationFieldsResponse, *Response, error) + func (s *OrganizationFieldsService) Update(ctx context.Context, id int, opt *OrganizationFieldUpdateOptions) (*OrganizationFieldResponse, *Response, error) + type OrganizationResponse struct + AdditionalData AdditionalData + Data Organization + Success bool + type OrganizationUpdateOptions struct + Address string + Name string + OwnerID uint + Phone string + VisibleTo VisibleTo + type OrganizationsResponse struct + AdditionalData AdditionalData + Data []Organization + Success bool + type OrganizationsService service + func (s *OrganizationsService) Create(ctx context.Context, opt *OrganizationCreateOptions) (*OrganizationResponse, *Response, error) + func (s *OrganizationsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *OrganizationsService) DeleteFollower(ctx context.Context, id int, followerID int) (*Response, error) + func (s *OrganizationsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *OrganizationsService) List(ctx context.Context) (*OrganizationsResponse, *Response, error) + func (s *OrganizationsService) Merge(ctx context.Context, id int, mergeWithID int) (*OrganizationResponse, *Response, error) + func (s *OrganizationsService) Update(ctx context.Context, id int, opt *OrganizationUpdateOptions) (*OrganizationResponse, *Response, error) + type Pagination struct + Limit int + MoreItemsInCollection bool + Start int + type Participants struct + PersonID int + PrimaryFlag bool + type Person struct + ActiveFlag bool + ActivitiesCount int + AddTime string + BillingAddress string + CcEmail string + ClosedDealsCount int + CompanyID int + DeliveryAddress string + DoneActivitiesCount int + Email []Email + EmailMessagesCount int + FilesCount int + FirstChar string + FirstName string + FollowersCount int + ID int + Label uint + LastActivityDate string + LastActivityID int + LastIncomingMailTime interface{} + LastName string + LastOutgoingMailTime interface{} + LostDealsCount int + Name string + NextActivityDate interface{} + NextActivityID interface{} + NextActivityTime interface{} + NotesCount int + OpenDealsCount int + OrgID interface{} + OrgName interface{} + OwnerID struct{ ... } + OwnerName string + ParticipantClosedDealsCount int + ParticipantOpenDealsCount int + Phone []struct{ ... } + PictureID interface{} + ReferenceActivitiesCount int + RelatedClosedDealsCount int + RelatedLostDealsCount int + RelatedOpenDealsCount int + RelatedWonDealsCount int + TimelineLastActivityTime interface{} + TimelineLastActivityTimeByOwner interface{} + UndoneActivitiesCount int + UpdateTime string + VisibleTo string + WonDealsCount int + func (p Person) String() string + type PersonAddFollowerResponse struct + Data struct{ ... } + Success bool + type PersonCreateOptions struct + AddTime Timestamp + Email string + Label uint + Name string + OrgID uint + OwnerID uint + Phone string + VisibleTo VisibleTo + type PersonField struct + ActiveFlag bool + AddTime string + AddVisibleFlag bool + Autocomplete string + BulkEditAllowed bool + DetailsVisibleFlag bool + DisplayField string + EditFlag bool + FieldType string + FilteringAllowed bool + ID int + ImportantFlag bool + IndexVisibleFlag bool + Key string + Link string + MandatoryFlag bool + Name string + Options []struct{ ... } + OrderNr int + PicklistData interface{} + SearchableFlag bool + SortableFlag bool + UpdateTime string + UseField string + type PersonFieldCreateOptions struct + FieldType FieldType + Name string + Options string + type PersonFieldResponse struct + AdditionalData AdditionalData + Data PersonField + Success bool + type PersonFieldUpdateOptions struct + Name string + Options string + type PersonFieldsResponse struct + AdditionalData AdditionalData + Data []PersonField + Success bool + type PersonFieldsService service + func (s *PersonFieldsService) Create(ctx context.Context, opt *PersonFieldCreateOptions) (*ProductFieldResponse, *Response, error) + func (s *PersonFieldsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *PersonFieldsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *PersonFieldsService) GetByID(ctx context.Context, id int) (*PersonFieldResponse, *Response, error) + func (s *PersonFieldsService) List(ctx context.Context) (*PersonFieldsResponse, *Response, error) + func (s *PersonFieldsService) Update(ctx context.Context, id int, opt *PersonFieldUpdateOptions) (*PersonFieldResponse, *Response, error) + type PersonResponse struct + AdditionalData AdditionalData + Data Person + Success bool + type PersonUpdateOptions struct + BillingAddress string + DeliveryAddress string + Email []Email + Name string + OrgID uint + OwnerID uint + Phone string + VisibleTo VisibleTo + type PersonsRespose struct + AdditionalData AdditionalData + Data []Person + Success bool + type PersonsService service + func (s *PersonsService) AddFollower(ctx context.Context, id int, userID int) (*PersonAddFollowerResponse, *Response, error) + func (s *PersonsService) Create(ctx context.Context, opt *PersonCreateOptions) (*PersonResponse, *Response, error) + func (s *PersonsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *PersonsService) DeleteFollower(ctx context.Context, id int, followerID int) (*Response, error) + func (s *PersonsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *PersonsService) DeletePicture(ctx context.Context, id int) (*Response, error) + func (s *PersonsService) Get(ctx context.Context, personID int) (*PersonResponse, *Response, error) + func (s *PersonsService) List(ctx context.Context) (*PersonsRespose, *Response, error) + func (s *PersonsService) Merge(ctx context.Context, id int, mergeWithID int) (*PersonResponse, *Response, error) + func (s *PersonsService) Update(ctx context.Context, id int, opt *PersonUpdateOptions) (*PersonResponse, *Response, error) + type Pipeline struct + Active bool + AddTime string + DealProbability bool + ID int + Name string + OrderNr int + Selected bool + URLTitle string + UpdateTime string + func (p Pipeline) String() string + type PipelineCreateOptions struct + Active ActiveFlag + DealProbability DealProbability + Name string + OrderNr int + type PipelineDealsConversionRateResponse struct + Data struct{ ... } + Success bool + type PipelineDealsMovementResponse struct + Data struct{ ... } + Success bool + type PipelineResponse struct + AdditionalData AdditionalData + Data Pipeline + Success bool + type PipelineUpdateOptions struct + Active ActiveFlag + DealProbability DealProbability + Name string + OrderNr int + type PipelinesResponse struct + AdditionalData AdditionalData + Data []Pipeline + Success bool + type PipelinesService service + func (s *PipelinesService) Create(ctx context.Context, opt *PipelineCreateOptions) (*PipelineResponse, *Response, error) + func (s *PipelinesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *PipelinesService) GetByID(ctx context.Context, id int) (*PipelineResponse, *Response, error) + func (s *PipelinesService) GetDeals(ctx context.Context, id int) (*PipelinesResponse, *Response, error) + func (s *PipelinesService) GetDealsConversionRate(ctx context.Context, id int, startDate Timestamp, endDate Timestamp) (*PipelineDealsConversionRateResponse, *Response, error) + func (s *PipelinesService) GetDealsMovement(ctx context.Context, id int, startDate Timestamp, endDate Timestamp) (*PipelineDealsMovementResponse, *Response, error) + func (s *PipelinesService) List(ctx context.Context) (*PipelinesResponse, *Response, error) + func (s *PipelinesService) Update(ctx context.Context, id int, opt *PipelineUpdateOptions) (*PipelineResponse, *Response, error) + type Product struct + ActiveFlag bool + AddTime string + Code interface{} + FilesCount interface{} + FirstChar string + FollowersCount int + ID int + Name string + OwnerID struct{ ... } + Prices []struct{ ... } + Selectable bool + Tax int + Unit string + UpdateTime string + VisibleTo string + func (p Product) String() string + type ProductAttachedDealsResponse struct + AdditionalData AdditionalData + Data []Deal + Success bool + type ProductCreateOptions struct + ActiveFlag ActiveFlag + Code string + Name string + OwnerID int + Prices string + Tax int + Unit string + VisibleTo VisibleTo + type ProductField struct + ActiveFlag bool + AddTime string + AddVisibleFlag bool + BulkEditAllowed bool + DetailsVisibleFlag bool + DisplayField string + EditFlag bool + FieldType string + FilteringAllowed bool + ID int + ImportantFlag bool + IndexVisibleFlag bool + Key string + Link string + MandatoryFlag bool + Name string + Options []struct{ ... } + OrderNr int + PicklistData interface{} + SearchableFlag bool + SortableFlag bool + UpdateTime string + UseField string + func (p ProductField) String() string + type ProductFieldCreateOptions struct + FieldType FieldType + Name string + Options string + type ProductFieldResponse struct + AdditionalData AdditionalData + Data ProductField + Success bool + type ProductFieldUpdateOptions struct + Name string + Options string + type ProductFieldsResponse struct + AdditionalData AdditionalData + Data []ProductField + Success bool + type ProductFieldsService service + func (s *ProductFieldsService) Create(ctx context.Context, opt *ProductFieldCreateOptions) (*ProductFieldResponse, *Response, error) + func (s *ProductFieldsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *ProductFieldsService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *ProductFieldsService) GetByID(ctx context.Context, id int) (*ProductFieldResponse, *Response, error) + func (s *ProductFieldsService) List(ctx context.Context) (*ProductFieldsResponse, *Response, error) + func (s *ProductFieldsService) Update(ctx context.Context, id int, opt *ProductFieldUpdateOptions) (*ProductFieldResponse, *Response, error) + type ProductFindOptions struct + Term string + type ProductResponse struct + AdditionalData AdditionalData + Data []Product + Success bool + type ProductUpdateOptions struct + ActiveFlag ActiveFlag + Code string + Name string + OwnerID int + Prices string + Tax int + Unit string + VisibleTo VisibleTo + type ProductsResponse struct + AdditionalData AdditionalData + Data []Product + Success bool + type ProductsService service + func (s *ProductsService) Create(ctx context.Context, opt *ProductCreateOptions) (*ProductResponse, *Response, error) + func (s *ProductsService) Delete(ctx context.Context, id int) (*Response, error) + func (s *ProductsService) DeleteFollower(ctx context.Context, id int, followerID int) (*Response, error) + func (s *ProductsService) Find(ctx context.Context, term string) (*ProductsResponse, *Response, error) + func (s *ProductsService) GetAttachedDeals(ctx context.Context, id int) (*ProductAttachedDealsResponse, *Response, error) + func (s *ProductsService) GetByID(ctx context.Context, id int) (*ProductResponse, *Response, error) + func (s *ProductsService) List(ctx context.Context) (*ProductsResponse, *Response, error) + func (s *ProductsService) Update(ctx context.Context, id int, opt *ProductUpdateOptions) (*ProductResponse, *Response, error) + type Rate struct + Limit int + Remaining int + Reset Timestamp + func (r Rate) String() string + type RateLimitError struct + Message string + Rate Rate + Response *http.Response + func (e *RateLimitError) Error() string + type RecentRecord struct + Data []RecentRecordDetails + ID int + Item string + type RecentRecordDetails struct + Activated bool + ActiveFlag bool + Created string + DefaultCurrency string + Email string + HasCreatedCompany bool + ID int + IconURL string + IsAdmin int + IsYou bool + Lang int + LastLogin string + Locale string + Modified string + Name string + Phone string + RoleID int + SignupFlowVariation string + TimezoneName string + TimezoneOffset string + func (rrd RecentRecordDetails) String() string + type RecentsListOptions struct + Items string + Limit uint + SinceTimestamp string + Start uint + type RecentsResponse struct + AdditionalData AdditionalData + Data []RecentRecord + Success bool + type RecentsService service + func (s *RecentsService) List(ctx context.Context, opt *RecentsListOptions) (*RecentsResponse, *Response, error) + type Response struct + type SearchOptions struct + Term string + type SearchResult struct + Details struct{ ... } + Fields struct{ ... } + ID int + Notes struct{ ... } + ResultScore float64 + Source string + Title string + Type string + func (sr SearchResult) String() string + type SearchResults struct + AdditionalData AdditionalData + Data []SearchResult + Success bool + type SearchResultsListOptions struct + ExactMatch uint8 + ItemType string + Limit uint + Start uint + Term string + type SearchResultsService service + func (s *SearchResultsService) Search(ctx context.Context, opt *SearchResultsListOptions) (*SearchResults, *Response, error) + type Stage struct + ActiveFlag bool + AddTime string + DealProbability int + ID int + Name string + OrderNr int + PipelineID int + PipelineName string + RottenDays interface{} + RottenFlag bool + UpdateTime string + func (s Stage) String() string + type StageDealsResponse struct + AdditionalData AdditionalData + Data []Deal + Success bool + type StageResponse struct + Data Stage + Success bool + type StagesCreateOptions struct + DealProbability uint + Name string + PipelineID uint + RottenDays uint + RottenFlag uint8 + type StagesGetDealsInStageOptions struct + Everyone uint8 + FilterID uint + Limit uint + Start uint + UserID uint + type StagesListOptions struct + PipelineID uint + type StagesResponse struct + Data []Stage + Success bool + type StagesService service + func (s *StagesService) Create(ctx context.Context, opt *StagesCreateOptions) (*StageResponse, *Response, error) + func (s *StagesService) Delete(ctx context.Context, id int) (*Response, error) + func (s *StagesService) DeleteMultiple(ctx context.Context, ids []int) (*Response, error) + func (s *StagesService) GetByID(ctx context.Context, id int) (*StageResponse, *Response, error) + func (s *StagesService) GetDealsInStage(ctx context.Context, id int, opt *StagesGetDealsInStageOptions) (*StageDealsResponse, *Response, error) + func (s *StagesService) List(ctx context.Context, opt *StagesListOptions) (*StagesResponse, *Response, error) + func (s *StagesService) Update(ctx context.Context, id int, opt *StagesUpdateOptions) (*StageResponse, *Response, error) + type StagesUpdateOptions struct + DealProbability uint + Name string + OrderNr uint + PipelineID uint + RottenDays uint + RottenFlag uint8 + type Timestamp struct + func (t Timestamp) Format() string + func (t Timestamp) FormatFull() string + func (t Timestamp) String() string + type UpdateFileDetailsOptions struct + Description string + Name string + type User struct + Activated bool + ActiveFlag bool + Created string + DefaultCurrency string + Email string + HasCreatedCompany bool + ID int + IconURL string + IsAdmin int + IsYou bool + Lang int + LastLogin string + Locale string + Modified string + Name string + Phone string + RoleID int + SignupFlowVariation string + TimezoneName string + TimezoneOffset string + func (u User) String() string + type UserConnections struct + Data struct{ ... } + Success bool + type UserConnectionsService service + func (s *UserConnectionsService) List(ctx context.Context) (*UserConnections, *Response, error) + type UserCreateOptions struct + ActiveFlag uint8 + Email string + Name string + type UserFollowersResponse struct + AdditionalData AdditionalData + Data []int + Success bool + type UserPermissionsResponse struct + Data struct{ ... } + Success bool + type UserRoleSettingsResponse struct + Data struct{ ... } + Success bool + type UserSettings struct + Data struct{ ... } + Success bool + type UserSettingsService service + func (s *UserSettingsService) List(ctx context.Context) (*UserSettings, *Response, error) + type UserSingleResponse struct + AdditionalData AdditionalData + Data User + Success bool + type UsersFindByNameOptions struct + SearchByEmail int + Term string + type UsersResponse struct + AdditionalData AdditionalData + Data []User + Error string + ErrorInfo string + Success bool + type UsersService service + func (s *UsersService) Create(ctx context.Context, opt *UserCreateOptions) (*UserSingleResponse, *Response, error) + func (s *UsersService) DeletePermissionSetAssignment(ctx context.Context, id int, opt *DeletePermissionSetAssignmentOptions) (*Response, error) + func (s *UsersService) DeleteRoleAssignment(ctx context.Context, id int, opt *DeleteRoleAssignmentOptions) (*Response, error) + func (s *UsersService) FindByName(ctx context.Context, opt *UsersFindByNameOptions) (*UsersResponse, *Response, error) + func (s *UsersService) GetByID(ctx context.Context, id int) (*UserFollowersResponse, *Response, error) + func (s *UsersService) GetCurrentUserData(ctx context.Context) (*UserSingleResponse, *Response, error) + func (s *UsersService) List(ctx context.Context) (*UsersResponse, *Response, error) + func (s *UsersService) ListFollowers(ctx context.Context, id int) (*UserFollowersResponse, *Response, error) + func (s *UsersService) ListUserPermissions(ctx context.Context, id int) (*UserPermissionsResponse, *Response, error) + func (s *UsersService) ListUserRoleSettings(ctx context.Context, id int) (*UserRoleSettingsResponse, *Response, error) + func (s *UsersService) UpdateUserDetails(ctx context.Context, id int, opt *UsersUpdateUserDetailsOptions) (*Response, error) + type UsersUpdateUserDetailsOptions struct + ActiveFlag uint8 + type VisibleTo uint8 + const VisibleToEntireCompany + const VisibleToOwnersFollowers + type Webhook struct + AddTime time.Time + AdditionalData struct{} + AdminID int + CompanyID int + EventAction string + EventObject string + HTTPAuthPassword interface{} + HTTPAuthUser interface{} + ID int + IsActive int + LastDeliveryTime time.Time + LastHTTPStatus int + OwnerID int + RemoveTime interface{} + SubscriptionURL string + Type string + UserID int + func (w Webhook) String() string + type WebhookResponse struct + Data Webhook + Status string + Success bool + type WebhooksCreateOptions struct + DealProbability EventObject + EventAction EventAction + HTTPAuthPassword string + HTTPAuthUser string + SubscriptionURL string + UserID uint + type WebhooksResponse struct + Data []Webhook + Status string + Success bool + type WebhooksService service + func (s *WebhooksService) Create(ctx context.Context, opt *WebhooksCreateOptions) (*WebhookResponse, *Response, error) + func (s *WebhooksService) Delete(ctx context.Context, id int) (*Response, error) + func (s *WebhooksService) List(ctx context.Context) (*WebhooksResponse, *Response, error)