Add files via upload

This commit is contained in:
Tanjiro
2025-09-23 12:42:47 +05:30
committed by GitHub
parent 10dc0e039f
commit 6e8ddb667b
4 changed files with 392 additions and 1 deletions

26
api_test.py Normal file
View File

@@ -0,0 +1,26 @@
import asyncio
import httpx
async def main():
async with httpx.AsyncClient(timeout=30.0) as client:
resp1 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://olamovies.watch/generate",
"mode": "iuam",
},
)
print(resp1.json())
resp2 = await client.post(
"http://localhost:8080/cloudflare",
json={
"domain": "https://lksfy.com/",
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
"mode": "turnstile",
},
)
print(resp2.json())
if __name__ == "__main__":
asyncio.run(main())