gong

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 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 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) 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 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