client

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// HubSpot's APIs allow for two means of authentication, OAuth and API keys.  API keys are great for rapid prototyping.
	// You can generate a new API key under the Settings -> Integrations -> API key menu
	APIKey string
}

Client contains all the functions to communicate between HubSpot and your app.

func NewClient

func NewClient() *Client

NewClient returns a new Client pointer that can be chained with builder methods to set multiple configuration values inline without using pointers.

func (*Client) Call

func (c *Client) Call(urlSuffix string, httpMethod string, payload []byte) ([]byte, error)

Call sends a request to HubSpot and receives the response.

func (*Client) WithAPIKey

func (c *Client) WithAPIKey(apikey string) *Client

WithAPIKey sets a config API key value returning a Client pointer for chaining.

Directories

Path Synopsis
Package contacts are for the fundamental building block to HubSpot, contacts.
Package contacts are for the fundamental building block to HubSpot, contacts.
Package crmassociations covers the CRM Associations API is used to manage associations between objects in the HubSpot CRM.
Package crmassociations covers the CRM Associations API is used to manage associations between objects in the HubSpot CRM.
Package deals covers the Deals API which has been exposed to allow for easy integration with the HubSpot CRM objects.
Package deals covers the Deals API which has been exposed to allow for easy integration with the HubSpot CRM objects.
Package engagement covers the engagements which are used to store data from CRM actions, including notes, tasks, meetings, and calls.
Package engagement covers the engagements which are used to store data from CRM actions, including notes, tasks, meetings, and calls.
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.

Jump to

Keyboard shortcuts

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