Python Notes Set 10
Python Notes Set 10
What is an API?
REST API:
import requests
GET Request:
response = requests.get("http://api.com/data")
print(response.json())
POST Request:
@app.route('/api')
def api():
API Key:
Bearer Token:
- 200 OK