Functions to interact with Evernote's OAuth workflow to retrieve an access token. Follows specification at http://dev.evernote.com/doc/articles/authentication.php
Functions to interact with Evernote's OAuth workflow to retrieve an access token. Follows specification at http://dev.evernote.com/doc/articles/authentication.php
(obtain-access-token config verifier {:keys [token secret rawResponse]})
Retrieve an access token for a given verifier and request token.
Retrieve an access token for a given verifier and request token. - config should be the same as for obtain-request-token. - verifier should be the oauth_verifier passed on the callback url - request token should be the same map that was returned when obtain-request-token was called Returned value will be a map, including: - :access-token - the actual access token to be used when calling Evernote API on behalf of user - various other user details - :userId, :notestore-url, :shard, :expires, :web-api-url-prefix The returned map can be used as-is for the 'user' argument when calling the clojurenote api functions.
(obtain-request-token config)
Retrieve an access token and authorization url. The returned map must be used later when calling obtain-access-token so will most likely be stored temporarily in the user's session. config must be a map of: :key - required - Your project's API key :secret - required - Your project's API secret :callback - required - the full URL that the user will be redirected to after completing login on the Evernote site :use-sandbox - not required, defaults to false - if false use Evernote production servers, otherwise use sandbox servers Returned map will contain a :url entry that you should redirect the user to in order that they can login with Evernote.
Retrieve an access token and authorization url. The returned map must be used later when calling obtain-access-token so will most likely be stored temporarily in the user's session. config must be a map of: :key - required - Your project's API key :secret - required - Your project's API secret :callback - required - the full URL that the user will be redirected to after completing login on the Evernote site :use-sandbox - not required, defaults to false - if false use Evernote production servers, otherwise use sandbox servers Returned map will contain a :url entry that you should redirect the user to in order that they can login with Evernote.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close