tickets

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 tickets is part of HubSpots preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development.

Package tickets is part of HubSpots preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubSpotTickets

type HubSpotTickets struct {
	Objects []Object `json:"objects"`
	HasMore bool     `json:"hasMore"`
	Offset  int64    `json:"offset"`
}

type Object

type Object struct {
	ObjectType string                            `json:"objectType"`
	PortalID   int64                             `json:"portalId"`
	ObjectID   int64                             `json:"objectId"`
	Properties map[string]map[string]interface{} `json:"properties"`
	Version    int64                             `json:"version"`
	IsDeleted  bool                              `json:"isDeleted"`
}

type Tickets

type Tickets struct {
	*client.Client
	OffSet     int64
	Properties []string
}

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

func New

func New(c *client.Client) *Tickets

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

func (*Tickets) GetAllTickets

func (t *Tickets) GetAllTickets() ([]Object, error)

GetAllTickets gets all tickets from a portal. By default you will only get a few system fields for any tickets in the response. If you want to get specific properties, you'll need to use the properties parameter.

func (*Tickets) WithOffSet

func (t *Tickets) WithOffSet(offset int64) *Tickets

WithOffSet sets an offset value returning a Tickets pointer for chaining.

func (*Tickets) WithProperties

func (t *Tickets) WithProperties(props []string) *Tickets

WithProperties sets the "property" parameter, then the properties in the "ticket" object in the returned data will only include the property or properties that you request. returning a Tickets pointer for chaining.

Jump to

Keyboard shortcuts

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