adamwynne/twitter-api — Issue #3: how to update-status?
Author: joachimdb
Created: 2012-01-09 20:01:54+00:00
State: open

Dear,

I've been playing around with the twitter-api, and most things seem to work fine, so that is great!

One thing I was not able to figure out so far is how to use 'update-status'. Following your examples, here is what I tried:

...
(def ^:dynamic *creds* (make-oauth-creds app-consumer-key app-consumer-secret user-access-token user-access-token-secret))
;; => *creds*

(-> (show-user :oauth-creds *creds* :params {:screen-name "JoachimDeBeule"}) :body :status :text)
;; => "hello world"

(update-status :oauth-creds *creds* :body [(status-body-part "Hello World from Clojure!")])
;; => exception thrown

The second form returns my current status ("hello world"), so it works, but the last form throws an exception and reports that "Twitter responded to request with error 32: Could not authenticate you"
Could you tell me what I am doing wrong? Both clojure and twitter are new to me, so forgive me if this is a stupid question.

Joachim.

PS: I think I found a small mistake in the RESTful calls example, should it not be "response-throw-error" instead of "response-error-throw"?