Documentation ¶
Index ¶
- Constants
- type EvernoteConnection
- type EvernoteOauth1
- func (self *EvernoteOauth1) ClientTokenValueName() string
- func (self *EvernoteOauth1) CodeValueName() string
- func (self *EvernoteOauth1) ErrorValueName() string
- func (self *EvernoteOauth1) Name() string
- func (self *EvernoteOauth1) Phase1(state string, callbackPath string) (OauthCred, error)
- func (self *EvernoteOauth1) Phase2(token string, verifier string) (OauthConnection, error)
- func (self *EvernoteOauth1) StateValueName() string
- func (self *EvernoteOauth1) UserInteractionURL(tempCred OauthCred, state string, callbackPath string) string
Constants ¶
View Source
const ( EVERNOTE_AUTH_URL_HOST = "https://sandbox.evernote.com" EVERNOTE_AUTH_URL_PATH = "/oauth" EVERNOTE_AUTH_URL = EVERNOTE_AUTH_URL_HOST + EVERNOTE_AUTH_URL_PATH EVERNOTE_USER_URL = "https://sandbox.evernote.com/OAuth.action" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvernoteConnection ¶
type EvernoteConnection struct { *oauth1.Credentials EvernoteId int64 Notestore *url.URL }
func (*EvernoteConnection) SendAuthenticated ¶
type EvernoteOauth1 ¶
type EvernoteOauth1 struct {
// contains filtered or unexported fields
}
EvernoteOauth1 is the implementation of an ServiceConnector for Evernote. XXX the set of known credentials should be culled every few minutes because one could mount an attack against this growing without bounds. XXX
func NewEvernoteOauth1 ¶
func NewEvernoteOauth1(d OauthClientDetail, dep DeploymentEnvironment) *EvernoteOauth1
NewEvernoteOauth1 returns an OauthConnector suitable for use with Evernote. The OauthClientDetail is passed here because we need extract client id and secret from somewhere other than the code. The Deployment is passed to help calculate correct hostnames.
func (*EvernoteOauth1) ClientTokenValueName ¶
func (self *EvernoteOauth1) ClientTokenValueName() string
func (*EvernoteOauth1) CodeValueName ¶
func (self *EvernoteOauth1) CodeValueName() string
func (*EvernoteOauth1) ErrorValueName ¶
func (self *EvernoteOauth1) ErrorValueName() string
func (*EvernoteOauth1) Name ¶
func (self *EvernoteOauth1) Name() string
func (*EvernoteOauth1) Phase1 ¶
func (self *EvernoteOauth1) Phase1(state string, callbackPath string) (OauthCred, error)
func (*EvernoteOauth1) Phase2 ¶
func (self *EvernoteOauth1) Phase2(token string, verifier string) (OauthConnection, error)
func (*EvernoteOauth1) StateValueName ¶
func (self *EvernoteOauth1) StateValueName() string
func (*EvernoteOauth1) UserInteractionURL ¶
func (self *EvernoteOauth1) UserInteractionURL(tempCred OauthCred, state string, callbackPath string) string
Click to show internal directories.
Click to hide internal directories.