Simple ruby script for fetching user timeline. "errors"=>[{"message"=>"Could not authenticate you", "code"=>32}


Hello. I have written a crude ruby script to fetch a users timeline. The script is here:
What am I missing here? Can somebody point it out? I will reset my tokens later and don’t care about them at the moment.


We do care about your API keys though. Please reset them and avoid posting them publicly.

One thing that jumps out at me is that when preparing your Authorization HTTP header, you call the auth type “Oauth” instead of “OAuth”