client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidResponsePayload = errors.New("invalid response payload")

Functions

This section is empty.

Types

type DropboxClient

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

func NewDropboxAuthClient

func NewDropboxAuthClient(
	credentials *oauth2.Config,
) DropboxClient

func (DropboxClient) CreateFile

func (c DropboxClient) CreateFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)
func (c DropboxClient) GetDownloadLink(ctx context.Context, path, token string) (response.DropboxDownloadResponse, error)

func (DropboxClient) GetFile

func (c DropboxClient) GetFile(ctx context.Context, path, token string) (response.DropboxFileResponse, error)

func (DropboxClient) GetUser

func (DropboxClient) SaveFileFromURL

func (c DropboxClient) SaveFileFromURL(ctx context.Context, path, url, token string) error

func (DropboxClient) UploadFile

func (c DropboxClient) UploadFile(ctx context.Context, path, token string, file io.Reader) (response.DropboxFileResponse, error)

Jump to

Keyboard shortcuts

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