gong

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = "https://api.gong.io"

Variables

This section is empty.

Functions

This section is empty.

Types

type CallListParams

type CallListParams struct {
	From    string
	To      string
	Cursor  string
	Context string
	// ExposeParties requests Gong call participant fields (names, emails,
	// titles) via contentSelector.exposedFields.parties=true.
	ExposeParties bool
	// ExposeHighlights requests Gong Spotlight/generated content fields via
	// contentSelector.exposedFields.content. The fields land under content.brief,
	// content.highlights, content.keyPoints, content.outline, and sometimes
	// content.callOutcome in the response payload. Treated as sensitive because
	// generated summaries and next steps can include customer-facing text.
	// Replaces the deprecated pointsOfInterest/actionItems contract.
	ExposeHighlights bool
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts Options) (*Client, error)

func (*Client) GetTranscript

func (c *Client) GetTranscript(ctx context.Context, params TranscriptParams) (*Response, error)

func (*Client) ListAnsweredScorecards added in v0.3.3

func (c *Client) ListAnsweredScorecards(ctx context.Context, params ScorecardActivityParams) (*Response, error)

func (*Client) ListCalls

func (c *Client) ListCalls(ctx context.Context, params CallListParams) (*Response, error)

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, params UserListParams) (*Response, error)

func (*Client) Raw

func (c *Client) Raw(ctx context.Context, method string, path string, body []byte) (*Response, error)

type HTTPError

type HTTPError struct {
	StatusCode int
	Body       []byte
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

type Options

type Options struct {
	BaseURL      string
	Credentials  auth.Credentials
	HTTPClient   *http.Client
	Limiter      *ratelimit.Limiter
	MaxRetries   int
	UserAgent    string
	DateLocation *time.Location
}

type PageRecords

type PageRecords struct {
	TotalRecords      int    `json:"totalRecords"`
	CurrentPageSize   int    `json:"currentPageSize"`
	CurrentPageNumber int    `json:"currentPageNumber"`
	Cursor            string `json:"cursor"`
}

func PageRecordsFromBody

func PageRecordsFromBody(body []byte) (PageRecords, error)

type Response

type Response struct {
	StatusCode int
	Header     http.Header
	Body       []byte
}

type ScorecardActivityParams added in v0.3.3

type ScorecardActivityParams struct {
	CallFromDate    string
	CallToDate      string
	ReviewFromDate  string
	ReviewToDate    string
	ReviewMethod    string
	ReviewedUserIDs []string
	ScorecardIDs    []string
	Cursor          string
}

type TranscriptParams

type TranscriptParams struct {
	CallIDs []string
	From    string
	To      string
	Cursor  string
}

type UserListParams

type UserListParams struct {
	Cursor string
	Limit  int
}

Jump to

Keyboard shortcuts

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