Documentation ¶
Index ¶
- Variables
- type Connector
- func (c *Connector) HTTPClient() *common.HTTPClient
- func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
- func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string) (*common.ListObjectMetadataResult, error)
- func (c *Connector) Provider() providers.Provider
- func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
- func (c *Connector) String() string
- func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
var ObjectNameToResponseField = datautils.NewDefaultMap(map[string]string{}, func(key string) string { return key }, )
ObjectNameToResponseField maps ObjectName to the response field name which contains that object.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { BaseURL string Client *common.JSONHTTPClient Module common.Module }
Connector represents the Pipedrive Connector.
func NewConnector ¶
NewConnector constructs the Pipedrive Connector and returns it, Fails if any of the required fields are not instantiated.
func (*Connector) HTTPClient ¶
func (c *Connector) HTTPClient() *common.HTTPClient
func (*Connector) JSONHTTPClient ¶
func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient
JSONHTTPClient returns the underlying JSON HTTP client.
func (*Connector) ListObjectMetadata ¶
func (c *Connector) ListObjectMetadata(ctx context.Context, objectNames []string, ) (*common.ListObjectMetadataResult, error)
ListObjectMetadata returns metadata for an object by sampling an object from Pipedrive's API. If that fails, it generates object metadata by parsing Pipedrive's OpenAPI files.
func (*Connector) Read ¶
func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)
Read retrieves data based on the provided read parameters. https://developers.pipedrive.com/docs/api/v1
func (*Connector) Write ¶
func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)
Write creates or updates records in a pipedriver account. https://developers.pipedrive.com/docs/api/v1
type Option ¶
type Option = func(params *parameters)
func WithAuthenticatedClient ¶
func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option