seven5

package
v0.0.0-...-e49eac2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (self *EvernoteConnection) SendAuthenticated(r *http.Request) (*http.Response, error)

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

Jump to

Keyboard shortcuts

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