This commit is contained in:
27
api_test.py
27
api_test.py
@@ -12,15 +12,24 @@ async def main():
|
||||
)
|
||||
print(resp1.json())
|
||||
|
||||
resp2 = await client.post(
|
||||
"http://localhost:8080/cloudflare",
|
||||
json={
|
||||
"domain": "https://lksfy.com/",
|
||||
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
|
||||
"mode": "turnstile",
|
||||
},
|
||||
)
|
||||
print(resp2.json())
|
||||
resp2 = await client.post(
|
||||
"http://localhost:8080/cloudflare",
|
||||
json={
|
||||
"domain": "https://lksfy.com/",
|
||||
"siteKey": "0x4AAAAAAA49NnPZwQijgRoi",
|
||||
"mode": "turnstile",
|
||||
},
|
||||
)
|
||||
print(resp2.json())
|
||||
|
||||
resp3 = await client.post(
|
||||
"http://localhost:8080/cookie",
|
||||
json={
|
||||
"domain": "https://example.com/",
|
||||
"cookieName": "session_id",
|
||||
},
|
||||
)
|
||||
print(resp3.json())
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user