Browse files

Merge pull request #8 from kornysietsma/master

readme fix
  • Loading branch information...
2 parents 07aedea + 560b017 commit cf8d11c8b6ba3c9b0dbb11b6c16051a758a153e5 @mattrepl committed Jun 2, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.markdown
View
14 README.markdown
@@ -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.

0 comments on commit cf8d11c

Please sign in to comment.