Dummy Code
Dummy Code

Reputation: 1898

Twitter API - iOS

I am currently creating an iOS app that integrates Twitter in such a way that it loads tweets into a UITableView. Currently I have gotten the tweets to load into the table view but I am having some issues with the names of the tweeters.

I can get the ID of the users. For example 1186989888 is the ID for DummyCode

Is there a way I can get from the ID, 1186989888 and have it return "Dummy Code". Which is DummyCode's screen name.

Does anyone know if this is possible with the Twitter API and iOS?

Upvotes: 2

Views: 274

Answers (1)

user149341
user149341

Reputation:

The Twitter users/lookup endpoint allows lookup by user_id, for up to 100 users at a time.

For a web-friendly view, you can also look up a single user by ID using a intent/user URL, e.g.

https://twitter.com/intent/user?user_id=1186989888

Upvotes: 2

Related Questions