I want to add a timer message which sends the link of for example the most recent tweet of someone, is it possible to do this by variables or do i need to always do it by hand
While I don’t know of any Twitter apis that do that I recommend searching for that to see if you can find one that can return the link to a latest tweet or possibly the tweet itself. If none exist then manual is really the only option.
Hey @Cattoh!
There’s an API for it:
https://decapi.me/twitter/latest_url?name=TWITTER_USERNAME
To use it simply put it in an $(urlfetch)
and update the TWITTER_USERNAME
:
$(urlfetch https://decapi.me/twitter/latest_url?name=Cattoh)
You can also have the latest Tweet instead of just the URL by using latest
instead of latest_url
.
Documentation link
2 Likes
I also want to mention that if you want both the tweet content/text and the tweet URL, you can do something like:
$(urlfetch https://decapi.me/twitter/latest?name=TWITTER_USERNAME&url=1)
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.