dropbox

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID              = "dropbox"
	ClientIdKey     = "key"
	ClientSecretKey = "secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dropbox

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

func NewDropbox

func NewDropbox(clientId, clientSecret, redirectURI, accessToken string) *Dropbox

func (*Dropbox) GetAccessToken

func (v *Dropbox) GetAccessToken(ctx *fiber.Ctx) (types.KV, error)

func (*Dropbox) GetAuthorizeURL

func (v *Dropbox) GetAuthorizeURL() string

func (*Dropbox) Redirect

func (v *Dropbox) Redirect(req *http.Request) (string, error)

func (*Dropbox) Upload

func (v *Dropbox) Upload(path string, content io.Reader) error

type TokenResponse

type TokenResponse struct {
	AccessToken string `json:"access_token"`
	TokenType   string `json:"token_type"`
	UID         string `json:"uid"`
	AccountID   string `json:"account_id"`
	Scope       string `json:"scope"`
}

Jump to

Keyboard shortcuts

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