- A new solution to make your own pastes api using python & flask
- 🧬 Simple installation (flask is the only one depedencie !)
- ⚡ Fast & Easy to use (GET requests only !)
- ✔ Create, Delete, See pastes
- ⚜ Short code
- Here is a free & 24/7 hosted public endpoint
https://api.strium.tech/
You can create a paste with a simple get request
import requests
r = requests.get("https://api.strium.tech/new?content=" + input("Enter your text >>> "))
print(r.text)
You will get a response like that
{"data": {"id": "y6s1qb", "secret": "// Nothing to see here :)", "url": "http://api.strium.tech/paste?id=y6s1qb"}, "success": true}
You can delete a paste with a simple get request
import requests
r = requests.get("https://api.strium.tech/delete?id=y6s1qb&secret=yourSecret")
print(r.text)
You will get a response like that
{"success": True}
You can see a paste with a simple get request or by opening the link in your browser
import requests
r = requests.get("https://api.strium.tech/paste?id=y6s1qb")
print(r.text)
The response never will be the same because every paste is different 🤷♂️
github.com/vodkarm