![]() Also you learned how you can download the media files from a tweet for a more performant website. I showed you quickly how you can use the twitter API. length i ++ ) Īs mentioned in the beginning, in my real portfolio project I fetch the latest tweet from the JSON file and pass the biggest tweet id as parameter since_id to the Twitter API. project/download/twitter.js#L46-L54 for ( var i = 0 i < results. I want all tweets from my own account but exclude retweets and answers. Please write them down because they are not displayed again after you close the page! Then you get access tokens and secret keys. Twitter provides a very good documentation. But that will be the subject of one of the following articles. In an ideal world the CI build runs every day and pushes the new tweets to the git repository. provide all tweets to 11ty and use them in a template.load all latest tweets that are older than maxId.The twitter API delivers only the latest 200 tweets so we need some kind of data store for the tweets. If I use them all the time, I just have to look for the tweets that contain the hashtag drawing (or any other hashtag). I publish a tweet with specific hashtags. This reduces the effort to maintain that stuff.Įxample: Please go to to see this how this can look like. I publish my drawings on Twitter and I want to fetch the from there and publish them at my site. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |