connectors

package
v2.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) Create

Creates a new connector. The connector is tested during registration and will cancel registration when the test is unsuccessful. See ['Creating and Deploying a Connector'](https://docs.cohere.com/v1/docs/creating-and-deploying-a-connector) for more information.

func (*Client) Delete

func (c *Client) Delete(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) (v2.DeleteConnectorResponse, error)

Delete a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/connectors) for more information.

func (*Client) Get

func (c *Client) Get(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) (*v2.GetConnectorResponse, error)

Retrieve a connector by ID. See ['Connectors'](https://docs.cohere.com/docs/connectors) for more information.

func (*Client) List

Returns a list of connectors ordered by descending creation date (newer first). See ['Managing your Connector'](https://docs.cohere.com/docs/managing-your-connector) for more information.

func (*Client) OAuthAuthorize

func (c *Client) OAuthAuthorize(
	ctx context.Context,

	id string,
	request *v2.ConnectorsOAuthAuthorizeRequest,
	opts ...option.RequestOption,
) (*v2.OAuthAuthorizeResponse, error)

Authorize the connector with the given ID for the connector oauth app. See ['Connector Authentication'](https://docs.cohere.com/docs/connector-authentication) for more information.

func (*Client) Update

Update a connector by ID. Omitted fields will not be updated. See ['Managing your Connector'](https://docs.cohere.com/docs/managing-your-connector) for more information.

Jump to

Keyboard shortcuts

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