This tutorial is horrible nothing ever works


#1

In lesson four I keep getting "receiving a 401 code instead of 200


#2

Same here…I really think this tutorial is deprecated…
EDIT
If you keep having nil or 410 response
Step 1 : Verify you really have an error
Insert “puts response” beside

# Issue the request.
request.oauth! http, consumer_key, access_token
http.start
response = http.request request

Step 2 : Inject your own credential instead of Codecademy code
Replace this block

consumer_key ||= OAuth::Consumer.new "ENTER IN EXERCISE 1", ""
access_token ||= OAuth::Token.new "ENTER IN EXERCISE 1", ""

with the same value you enter on lesson 1

consumer_key = OAuth::Consumer.new(
    "YOUR_CONSUMER_KEY",
    "YOUR_CONSUMER_SECRET")
access_token = OAuth::Token.new(
    "YOUR_ACCESS_TOKEN",
    "YOUR_ACCESS_SECRET")

That should work :wink: