Versions in this module Expand all Collapse all v0 v0.0.19 Jun 25, 2025 v0.0.18 May 11, 2025 v0.0.17 Apr 27, 2025 v0.0.16 Apr 21, 2025 v0.0.15 Apr 20, 2025 Changes in this version type FilterGroups + Filters []Filter v0.0.14 Apr 19, 2025 v0.0.13 Apr 19, 2025 v0.0.12 Jan 28, 2025 v0.0.11 Jan 23, 2025 v0.0.10 Jan 16, 2025 v0.0.9 Jan 16, 2025 Changes in this version + const Oauth2Scopes + func GetSwagger() (swagger *openapi3.T, err error) + func NewCreateLeadRequest(server string, body CreateLeadJSONRequestBody) (*http.Request, error) + func NewCreateLeadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewDeleteLeadByIdRequest(server string, leadId string) (*http.Request, error) + func NewGetLeadByIdRequest(server string, leadId string, params *GetLeadByIdParams) (*http.Request, error) + func NewGetLeadsRequest(server string, params *GetLeadsParams) (*http.Request, error) + func NewSearchLeadsRequest(server string, params *SearchLeadsParams, body SearchLeadsJSONRequestBody) (*http.Request, error) + func NewSearchLeadsRequestWithBody(server string, params *SearchLeadsParams, contentType string, body io.Reader) (*http.Request, error) + func NewUpdateLeadRequest(server string, leadId string, body UpdateLeadJSONRequestBody) (*http.Request, error) + func NewUpdateLeadRequestWithBody(server string, leadId string, contentType string, body io.Reader) (*http.Request, error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type Archived = bool + type AssociationResponse struct + Id *string + Type *string + type Associations = []string + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) CreateLead(ctx context.Context, body CreateLeadJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateLeadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DeleteLeadById(ctx context.Context, leadId string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetLeadById(ctx context.Context, leadId string, params *GetLeadByIdParams, ...) (*http.Response, error) + func (c *Client) GetLeads(ctx context.Context, params *GetLeadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) SearchLeads(ctx context.Context, params *SearchLeadsParams, ...) (*http.Response, error) + func (c *Client) SearchLeadsWithBody(ctx context.Context, params *SearchLeadsParams, contentType string, ...) (*http.Response, error) + func (c *Client) UpdateLead(ctx context.Context, leadId string, body UpdateLeadJSONRequestBody, ...) (*http.Response, error) + func (c *Client) UpdateLeadWithBody(ctx context.Context, leadId string, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + CreateLead func(ctx context.Context, body CreateLeadJSONRequestBody, ...) (*http.Response, error) + CreateLeadWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + DeleteLeadById func(ctx context.Context, leadId string, reqEditors ...RequestEditorFn) (*http.Response, error) + GetLeadById func(ctx context.Context, leadId string, params *GetLeadByIdParams, ...) (*http.Response, error) + GetLeads func(ctx context.Context, params *GetLeadsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + SearchLeads func(ctx context.Context, params *SearchLeadsParams, ...) (*http.Response, error) + SearchLeadsWithBody func(ctx context.Context, params *SearchLeadsParams, contentType string, ...) (*http.Response, error) + UpdateLead func(ctx context.Context, leadId string, body UpdateLeadJSONRequestBody, ...) (*http.Response, error) + UpdateLeadWithBody func(ctx context.Context, leadId string, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) CreateLeadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLeadResponse, error) + func (c *ClientWithResponses) CreateLeadWithResponse(ctx context.Context, body CreateLeadJSONRequestBody, ...) (*CreateLeadResponse, error) + func (c *ClientWithResponses) DeleteLeadByIdWithResponse(ctx context.Context, leadId string, reqEditors ...RequestEditorFn) (*DeleteLeadByIdResponse, error) + func (c *ClientWithResponses) GetLeadByIdWithResponse(ctx context.Context, leadId string, params *GetLeadByIdParams, ...) (*GetLeadByIdResponse, error) + func (c *ClientWithResponses) GetLeadsWithResponse(ctx context.Context, params *GetLeadsParams, reqEditors ...RequestEditorFn) (*GetLeadsResponse, error) + func (c *ClientWithResponses) SearchLeadsWithBodyWithResponse(ctx context.Context, params *SearchLeadsParams, contentType string, ...) (*SearchLeadsResponse, error) + func (c *ClientWithResponses) SearchLeadsWithResponse(ctx context.Context, params *SearchLeadsParams, ...) (*SearchLeadsResponse, error) + func (c *ClientWithResponses) UpdateLeadWithBodyWithResponse(ctx context.Context, leadId string, contentType string, body io.Reader, ...) (*UpdateLeadResponse, error) + func (c *ClientWithResponses) UpdateLeadWithResponse(ctx context.Context, leadId string, body UpdateLeadJSONRequestBody, ...) (*UpdateLeadResponse, error) + type ClientWithResponsesInterface interface + CreateLeadWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateLeadResponse, error) + CreateLeadWithResponse func(ctx context.Context, body CreateLeadJSONRequestBody, ...) (*CreateLeadResponse, error) + DeleteLeadByIdWithResponse func(ctx context.Context, leadId string, reqEditors ...RequestEditorFn) (*DeleteLeadByIdResponse, error) + GetLeadByIdWithResponse func(ctx context.Context, leadId string, params *GetLeadByIdParams, ...) (*GetLeadByIdResponse, error) + GetLeadsWithResponse func(ctx context.Context, params *GetLeadsParams, reqEditors ...RequestEditorFn) (*GetLeadsResponse, error) + SearchLeadsWithBodyWithResponse func(ctx context.Context, params *SearchLeadsParams, contentType string, ...) (*SearchLeadsResponse, error) + SearchLeadsWithResponse func(ctx context.Context, params *SearchLeadsParams, ...) (*SearchLeadsResponse, error) + UpdateLeadWithBodyWithResponse func(ctx context.Context, leadId string, contentType string, body io.Reader, ...) (*UpdateLeadResponse, error) + UpdateLeadWithResponse func(ctx context.Context, leadId string, body UpdateLeadJSONRequestBody, ...) (*UpdateLeadResponse, error) + type CreateLeadJSONBody struct + Associations []struct{ ... } + ObjectWriteTraceId *string + Properties map[string]string + type CreateLeadJSONBodyAssociationsTypesAssociationCategory string + const HUBSPOTDEFINED + const INTEGRATORDEFINED + const Search + const USERDEFINED + type CreateLeadJSONRequestBody CreateLeadJSONBody + type CreateLeadResponse struct + Body []byte + HTTPResponse *http.Response + JSON201 ... + func ParseCreateLeadResponse(rsp *http.Response) (*CreateLeadResponse, error) + func (r CreateLeadResponse) Status() string + func (r CreateLeadResponse) StatusCode() int + type DeleteLeadByIdResponse struct + Body []byte + HTTPResponse *http.Response + func ParseDeleteLeadByIdResponse(rsp *http.Response) (*DeleteLeadByIdResponse, error) + func (r DeleteLeadByIdResponse) Status() string + func (r DeleteLeadByIdResponse) StatusCode() int + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type Filter struct + HighValue *string + Operator *FilterOperator + PropertyName *string + Value *string + Values *[]string + type FilterGroups = []struct + type FilterOperator string + const CONTAINSTOKEN + const EQ + const GT + const GTE + const HASPROPERTY + const LT + const LTE + const NEQ + const NOTCONTAINSTOKEN + const NOTHASPROPERTY + type GetLeadByIdParams struct + Archived *Archived + Associations *Associations + IdProperty *string + Properties *Properties + PropertiesWithHistory *PropertiesWithHistory + type GetLeadByIdResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *LeadResponse + func ParseGetLeadByIdResponse(rsp *http.Response) (*GetLeadByIdResponse, error) + func (r GetLeadByIdResponse) Status() string + func (r GetLeadByIdResponse) StatusCode() int + type GetLeadsParams struct + After *string + Archived *Archived + Associations *Associations + Limit *int + Properties *Properties + PropertiesWithHistory *PropertiesWithHistory + type GetLeadsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *LeadsResponse + func ParseGetLeadsResponse(rsp *http.Response) (*GetLeadsResponse, error) + func (r GetLeadsResponse) Status() string + func (r GetLeadsResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type LeadResponse struct + Archived bool + ArchivedAt time.Time + Associations map[string]ObjectAssociationsResponse + CreatedAt time.Time + Id string + Properties map[string]string + PropertiesWithHistory map[string][]PropertyHistory + UpdatedAt time.Time + type LeadsResponse struct + Paging Paging + Results []LeadResponse + type ObjectAssociationsResponse struct + Paging Paging + Results *[]AssociationResponse + type Paging struct + Next PagingNext + type PagingNext struct + After string + Link string + type Properties = []string + type PropertiesWithHistory = []string + type PropertyHistory struct + SourceId string + SourceLabel string + SourceType string + Timestamp time.Time + UpdatedByUserId int + Value string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SearchLeadsJSONBody struct + After *string + FilterGroups *FilterGroups + Limit *int + Properties *[]string + Query *string + Sorts *[]string + type SearchLeadsJSONRequestBody SearchLeadsJSONBody + type SearchLeadsParams struct + Hapikey string + type SearchLeadsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *LeadsResponse + func ParseSearchLeadsResponse(rsp *http.Response) (*SearchLeadsResponse, error) + func (r SearchLeadsResponse) Status() string + func (r SearchLeadsResponse) StatusCode() int + type ServerInterface interface + CreateLead func(ctx echo.Context) error + DeleteLeadById func(ctx echo.Context, leadId string) error + GetLeadById func(ctx echo.Context, leadId string, params GetLeadByIdParams) error + GetLeads func(ctx echo.Context, params GetLeadsParams) error + SearchLeads func(ctx echo.Context, params SearchLeadsParams) error + UpdateLead func(ctx echo.Context, leadId string) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) CreateLead(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DeleteLeadById(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetLeadById(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetLeads(ctx echo.Context) error + func (w *ServerInterfaceWrapper) SearchLeads(ctx echo.Context) error + func (w *ServerInterfaceWrapper) UpdateLead(ctx echo.Context) error + type UpdateLeadJSONBody struct + ObjectWriteTraceId *string + Properties map[string]string + type UpdateLeadJSONRequestBody UpdateLeadJSONBody + type UpdateLeadResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + func ParseUpdateLeadResponse(rsp *http.Response) (*UpdateLeadResponse, error) + func (r UpdateLeadResponse) Status() string + func (r UpdateLeadResponse) StatusCode() int