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!
thyncAPI: A theme sync API for you!
thyncAPI
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.
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:
OR
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
Uh, so its an api, meaning you can access it through
requests
*, get the light/dark mode sync code, bookmark it, and then use it.Sorry if it was unclear, ill try to fix the description asap. But yeah, i hope my explanation cleared things up
@ch1ck3njavascript:(function() {document.body.className = "replit-ui-theme-root dark"})();
Does it work? With websites as well? Just checking :)
@ch1ck3nYeah, but would that code work in Replit?
@ch1ck3nOh. I'll try that with other versions of thyncAPI, thanks :D
@ch1ck3njavascript:(function() {document.body.className = "replit-ui-theme-root light")();
for light modeGot it, thanks a lot! :D
@ch1ck3nUh, I tried that, but it didn't work
@ch1ck3n.