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 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 (*OAuth) CompleteLogin ¶
func (oa *OAuth) CompleteLogin(ctx context.Context, params CallbackParams) (TokenDetails, error)
type TokenDetails ¶
Click to show internal directories.
Click to hide internal directories.