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


#1

Hello. I have written a crude ruby script to fetch a users timeline. The script is here: https://gist.github.com/arkiver/fdf1e378d9ffba1f357a
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.


#2

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”