Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
import requests | |
app = FastAPI() | |
async def root(): | |
return {"message": "Hello World"} | |
async def get_eatc_headers(eatc_code: str): | |
url = f"https://donantes.eatcloud.info/api/abaco/eatc_dona_headers?eatc-code={eatc_code}" | |
response = requests.get(url) | |
return response.json()[1] |