papersapp

package module
v0.0.0-...-ccb06fb Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionType = "papersapp.com/collection"
	ItemType       = "papersapp.com/item"
)

Variables

This section is empty.

Functions

func ListCollections

func ListCollections(ctx context.Context, serviceURL string, opts ...operations.Option) ([]*papersappsdk.Collection, error)

Types

type APIToken

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

APIToken is an implementation of operations.Authorizer for a papersapp API token.

func NewAPIToken

func NewAPIToken(apiKey, refreshURL string) *APIToken

func (*APIToken) Refresh

func (pbt *APIToken) Refresh(ctx context.Context) (string, error)

func (*APIToken) WithAuthorization

func (pbt *APIToken) WithAuthorization(ctx context.Context, req *http.Request) error

type Item

type Item struct {
	Item       *papersappsdk.Item
	Collection *papersappsdk.Collection
}

Item represents a single item in a collection and also includes the collection to which it belongs.

type ItemPaginatorOptions

type ItemPaginatorOptions struct {
	EndpointURL string
	Parameters  url.Values
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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