File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
(def *oauth-consumer* nil )
17
17
(def *oauth-access-token* nil )
18
+ (def *oauth-access-token-secret* nil )
18
19
(def *protocol* " http" )
19
20
20
21
; ; Get JSON from clj-apache-http
23
24
24
25
(defmacro with-oauth
25
26
" Set the OAuth access token to be used for all contained Twitter requests."
26
- [consumer access-token & body]
27
+ [consumer access-token access-token-secret & body]
27
28
`(binding [*oauth-consumer* ~consumer
28
- *oauth-access-token* ~access-token]
29
+ *oauth-access-token* ~access-token
30
+ *oauth-access-token-secret* ~access-token-secret]
29
31
(do
30
32
~@body)))
31
33
@@ -59,6 +61,7 @@ take any required and optional arguments and call the associated Twitter method.
59
61
*oauth-access-token*)
60
62
(oauth/credentials *oauth-consumer*
61
63
*oauth-access-token*
64
+ *oauth-access-token-secret*
62
65
~req-method
63
66
req-uri#
64
67
query-params#))]
You can’t perform that action at this time.
0 commit comments