etsy

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ListingsRead = "listings_r" // Read a members's inactive and expired (i.e., non-public) listings.
	ProfileRead  = "profile_r"  // Read a member's private profile information.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackParams

type CallbackParams struct {
	Verifier    string
	Token       string
	TokenSecret string
}

type EtsyClient

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

func NewClient

func NewClient(o *OAuth) *EtsyClient

func (*EtsyClient) Callback

func (e *EtsyClient) Callback(ctx context.Context, pin, token, secret string) (TokenDetails, error)

func (*EtsyClient) HTTPClient

func (e *EtsyClient) HTTPClient(accessToken, accessSecret string) *http.Client

func (*EtsyClient) Login

func (e *EtsyClient) Login(ctx context.Context) (string, TokenDetails, error)

type OAuth

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

func NewOAuth

func NewOAuth(ck, ss, uri string) *OAuth

func (*OAuth) Client

func (oa *OAuth) Client(accessToken, accessSecret string) *http.Client

func (*OAuth) CompleteLogin

func (oa *OAuth) CompleteLogin(ctx context.Context, params CallbackParams) (TokenDetails, error)

func (*OAuth) Login

func (oa *OAuth) Login(ctx context.Context) (oauth1.Credentials, error)

type TokenDetails

type TokenDetails struct {
	Token       string
	TokenSecret string
}

Jump to

Keyboard shortcuts

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