From 48511f5a878da98f7c16ce2cf8457f0984f0836d Mon Sep 17 00:00:00 2001 From: Robin Universe Date: Mon, 7 Mar 2022 07:11:23 -0600 Subject: [PATCH] Update readme.md --- readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 2cfc972..932dab7 100644 --- a/readme.md +++ b/readme.md @@ -78,11 +78,11 @@ This project is licensed under the **Do What The Fuck You Want Public License** ## Other stuff -Going to `https://fxtwitter.com/latest/` will present a page that shows the latest video that was added to the database, use with caution as results may be nsfw! +Going to `https://fxtwitter.com/latest/` will present a page that shows the all the latest tweets that were added to the database, use with caution as results may be nsfw! Current page created by @DorukSaga Using the `/dir/` endpoint will return a redirect to the direct MP4 link, this can be useful for downloading a video -Using the `/dl/` or appending a `.mp4` (before any ?t= params) will make the server download the video and return a static, locally hosted copy +Using the `/dl/` or appending a `.mp4` will make the server download the video and return a static, locally hosted copy Using the subdomain `d.fxtwitter.com/` will redirect to a direct MP4 url hosted on Twitter @@ -90,6 +90,12 @@ Using the `/info/` endpoint will return a json that contains all vide Using `/other/` will attempt to run the twitter embed stuff on other websites videos - This is mostly experimental and doesn't really work for now +Using `/api/latest/` will return a json with the latest tweet added to the database. Takes params `?tweets=INT&=pageINT` to return multiple + +Using `/api/top/` will return a json with the most hit tweet in the database. Takes params `?tweets=INT&=pageINT` to return multiple + +Using `/api/stats/` will return a json with some stats about TwitFix's activity (embeds, new cached links, API hits, downloads). Takes param `?=date"YYYY-MM-DD"` to return a specific day, otherwise will return today's stats to far + Advanced embeds are provided via a `/oembed.json?` endpoint - This is manually pointing at my server in `/templates/index.html` and should be changed from `https://fxtwitter.com/` to whatever your domain is We check for t.co links in non video tweets, and if one is found, we direct the discord useragent to embed that link directly, this means that twitter links containing youtube / vimeo links will automatically embed those as if you had just directly linked to that content