Skip to content

Commit

Permalink
Merge pull request #8 from kornysietsma/master
Browse files Browse the repository at this point in the history
readme fix
  • Loading branch information
drone29a committed Jun 2, 2011
2 parents 07aedea + 560b017 commit cf8d11c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.markdown
Expand Up @@ -26,17 +26,17 @@ The server support makes it simple to add OAuth support to any [Ring](http://git
:hmac-sha1))

;; Fetch a request token that a OAuth User may authorize
(def request-token (oauth/request-token consumer))

;; Send the User to this URI for authorization, they will be able
;; to choose the level of access to grant the application and will
;; then be redirected to the callback URI provided.
;;
;; If you are using OAuth with a desktop application, a callback URI
;; is not required.
(def request-token (oauth/request-token consumer <callback-uri>))

;; Send the User to this URI for authorization, they will be able
;; to choose the level of access to grant the application and will
;; then be redirected to the callback URI provided with the
;; request-token.
(oauth/user-approval-uri consumer
request-token
<callback-uri>)
(:oauth_token request-token))

;; Assuming the User has approved the request token, trade it for an access token.
;; The access token will then be used when accessing protected resources for the User.
Expand Down

0 comments on commit cf8d11c

Please sign in to comment.