Twitter methods


#1

I'm in the Twitter Querying II Section and I was curious about the method being used twitter_api.GetUserTimeline. I searched GetUserTimeline in Twitter's development site. https://dev.twitter.com/rest/reference/get/statuses/user_timeline
There are a few other parameters for this that Codecademy doesn't have us input. I'm assuming if I wanted to use any other methods I would search in here. But how would I know which parameters are vital? At first glance I would think all are necessary.


#2

Here -> https://dev.twitter.com/rest/reference/get/statuses/user_timeline in the parameters section all optional parameters have a grey optional label and required parameters have required label.


#3

Wow I can't believe I missed that, thanks! Funny how like all of them are optional :slight_smile:


#4

You're very welcome!

It depends on the method :slight_smile: In some cases, you have to pay attention to the extra notes, like here:

Always specify either an user_id or screen_name when requesting a user timeline.

So they both are optional, but you have to specify one of them :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.