Documentation ¶
Index ¶
- type EnvironmentType
- type EvernoteClient
- func (c *EvernoteClient) GetAuthorizedToken(requestToken *oauth.RequestToken, oauthVerifier string) (*oauth.AccessToken, error)
- func (c *EvernoteClient) GetNoteStore(ctx context.Context, authenticationToken string) (*edam.NoteStoreClient, error)
- func (c *EvernoteClient) GetNoteStoreWithURL(notestoreURL string) (*edam.NoteStoreClient, error)
- func (c *EvernoteClient) GetRequestToken(callBackURL string) (*oauth.RequestToken, string, error)
- func (c *EvernoteClient) GetUserStore() (*edam.UserStoreClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentType ¶
type EnvironmentType int
const ( SANDBOX EnvironmentType = iota PRODUCTION YINXIANG YINXIANGSANDBOX )
type EvernoteClient ¶
type EvernoteClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(key, secret string, envType EnvironmentType) *EvernoteClient
func (*EvernoteClient) GetAuthorizedToken ¶
func (c *EvernoteClient) GetAuthorizedToken(requestToken *oauth.RequestToken, oauthVerifier string) (*oauth.AccessToken, error)
func (*EvernoteClient) GetNoteStore ¶
func (c *EvernoteClient) GetNoteStore(ctx context.Context, authenticationToken string) (*edam.NoteStoreClient, error)
func (*EvernoteClient) GetNoteStoreWithURL ¶
func (c *EvernoteClient) GetNoteStoreWithURL(notestoreURL string) (*edam.NoteStoreClient, error)
func (*EvernoteClient) GetRequestToken ¶
func (c *EvernoteClient) GetRequestToken(callBackURL string) (*oauth.RequestToken, string, error)
func (*EvernoteClient) GetUserStore ¶
func (c *EvernoteClient) GetUserStore() (*edam.UserStoreClient, error)
Click to show internal directories.
Click to hide internal directories.