def getPrint(name="world", some):
print(f"Hello {name}")
getPrint("Chiku", 55)
print(f"Hello {name}")
getPrint("Chiku", 55)
Anonymous Quiz
20%
Hello World
43%
Hello Chiku
11%
Hello 55
26%
Error
CᴏᴅɪɴɢNᴇʀᴅ 💸🐾
Basic Implementation in Python
1. Without API Key Which i defined right now!
Output:
2. With API Key
Output:
Try Yourself 🧑💻
1. Without API Key Which i defined right now!
requests.get("http://localhost:3010/api")
Output:
{
'error': 'Access Denied'
}
2. With API Key
requests.get("http://localhost:3010/api", headers={"token": "giveAccess"})
Output:
{
'message': 'Access Granted'
}
Try Yourself 🧑💻