ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.31k stars 568 forks source link

How do I get the URL of most recent tweet? #440

Closed xThuby closed 6 years ago

xThuby commented 6 years ago

I use this module for a discord bot where you can tweet via discord, and I want to link the tweet in discord, but I can't find out how to get the URL of the most recent tweet. Anyone know how?

ttezel commented 6 years ago

Hi @SirFelolis, please don't use github issues as a forum - open an issue if you have a particular problem with this package. Thanks :)

xThuby commented 6 years ago

How am I supposed to solve this issue then?

I thought it was related to this module.

pthieu commented 6 years ago

@SirFelolis: have you found a way to do this?

@ttezel: where would be an appropriate location to ask this question?

maziyarpanahi commented 6 years ago

Since the returning Tweets are the same among all ththe libraries and this question is not an issue nor related to this specific library, your best bet is places like StackOverflow or even Twitter community.

pthieu commented 6 years ago

Did a look up on the twitter API, for anyone that's stills curious how to do this, you can just use the id_str returned from a tweet and plug it into https://twitter.com/<this part of the route does not matter>/statuses/<id_str>