Skip to content

not working for queries that change under url-encoding #12

Merged
merged 1 commit into from Jul 12, 2012
View
9 src/twitter.clj
@@ -69,21 +69,14 @@ take any required and optional arguments and call the associated Twitter method.
((first x#)
rest-map#)})
optional-query-param-names-mapping#)))
- need-to-url-encode# (if (= :get ~req-method)
- (into {}
- (map (fn [[k# v#]]
- [k#
- (oauth.signature/url-encode v#)])
- query-params#))
- query-params#)
oauth-creds# (when (and *oauth-consumer*
*oauth-access-token*)
(oauth/credentials *oauth-consumer*
*oauth-access-token*
*oauth-access-token-secret*
~req-method
req-uri#
- need-to-url-encode#))]
+ query-params#))]
(~handler (~(symbol "http" (name req-method))
req-uri#
:query (merge query-params#
Something went wrong with that request. Please try again.