File size: 728 Bytes
6a44051
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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())