thyncAPI: A theme sync API for you!
thyncAPI
The one and only thyncAPI. Used for thync projects
About
This was originally created just for the thync Bot, a discord bot that syncs with thync. However, I do think this could be more handy in other sub-projects, so I created this a bit more detailed and etc. Some of the code is used from Reflux, a project and module created by frissyn and CoolCoderSJ. However, this issue and suggestion came up, so I decided to create this. thync has also become sub-projects and a major project.
thync has not come out yet, this is just thyncAPI.
Using it
To use it, as of right now, you have to open up this, and then to use it in python, do the following:
import requests res = requests.get("https://thync-API.jbloves27.repl.co/toggle") data = res.text print(data)
OR
import requests res = requests.get("https://thync-API.jbloves27.repl.co/toggle") data = res.content print(data)
You can either print or return, depending on how you'll use it. Then copy the code, make a bookmark, and paste in the url/link. Then click the bookmark when you are on Replit. You're all set!
Suggestions and contribute
To leave suggestions, just leave a comment or a PR. To contribute, leave a PR or an issue to ask.
Conclusion
I hope you enjoy using this API! See you on the next (thync) post!
what does this do
actually what does it do
the explanation isn't very cool
javascript:(function() {document.body.className = "replit-ui-theme-root dark"})();
javascript:(function() {document.body.className = "replit-ui-theme-root light")();
for light modeSorry I'm not sure what this means, but it looks cool.
Np, so what it does is that its an api, meaning if you use the requests
module to get the content, you can bookmark the code, and use it as a dark/light mode sync. Let me know if that was confusing lol. And thanks!
Uh, well not really
@codingjluNp, basically, an api is something that can be accessible through coding langs, and you can use it for data, or just fundamental purposes.
@codingjluI hope you enjoy :)
Please don't overuse this :)
If you set the headers of
/toggle
totext/plain
, it will appear as actual code instead of HTML (Times New Roman font).Oh, ill try that asap, thanks so much!
@codingjluWait, so make the headers
@codingjlu/text/plain
?Ah, ok. Thanks!
@codingjluI think so, is it supposed to be like that?
@codingjluAh, np. Ok, I think it might be working lol
@codingjlu