This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Introduction to Twitter's API Forum

View Course » View Exercise

542 points
54454f6b52f863062d0092f8_704524399
Submitted by
Alex
over 4 years ago

Have no idea what to do.

Tried everything i could think off but it never works.


8 votes

permalink

First and foremost...

  • These API lessons are teaching concepts that are constantly evolving. Each of these API courses involve a 3rd party API that can change on a moments notice (can you say FB?)
  • The requirements are outlined in the source code mixed with instructions, but digging through it is a pain. I consider myself an intermediate/experienced developer, and I knew what to do, and I still got a tad lost.
  • The course instructions are definitely more geared towards intermediate programmers who know what they're looking for.

I want to help people pass this lesson, because this was written (as well as the other API docs) as a template that isn't relevant or expanding enough information to utilize them externally.

Second:

Change this line...

query   = URI.encode_www_form("id" => "TWEET ID GOES HERE")

to show this:

query   = URI.encode_www_form("id" => "266270116780576768")

Change your print_tweet function:

# ADD CODE TO PRINT THE TWEET IN "<screen name> - <text>" FORMAT

to show this:

puts tweet["user"]["name"] + " - " + tweet["text"]

I would recommend reading up here: if you want to expand your knowledge.
http://programmers.stackexchange.com/questions/90531/how-to-learn-an-api

2126 points
512d3f8f7df8cbb462001736_165830919
Submitted by
Nicholas Hazel
about 4 years ago

3 Comments

9c49dfb183b700c6fe1fd4e2c0b60987?s=140&d=retro mbj3000 almost 4 years ago

Hey Nicholas Hazel, thanks for leaving this comment. It really helped me get through something that should have been explained better. I understand what you mean about how they present the information being learned. It's as if they do expect you to know certain things and to be able to debug certain things so to speak. Just wanted to let you know this. Thx again

512d3f8f7df8cbb462001736_165830919 Nicholas Hazel almost 4 years ago

No problem :-) Here to help as much as I can. Coders unite!

54b3072995e378ba6e00662a_359596643 Lucas Vocos over 2 years ago

Thanks for the article!


6 votes

permalink

I know, the learning curve suddenly increases so much without warning.

306 points
Picture
Submitted by
Mohit Deshpande
about 4 years ago


0 votes

permalink

Hi Alex,

Could you show us your code? It will be easier for us to help you that way.

539 points
5676eb63b62548ee370005e7_472631337
Submitted by
RĂ©mi Lalonde Richard
over 4 years ago