from typing import List
from typing import Dict
import requests


def get_airtable_data(url: str, token: str) -> List[Dict[str, str]]:
    """
    Fetch all data from airtable.

    Returns a list of records where record is an array like
        {'my-key': 'George W. Bush', 'my-value': 'Male'}
    """
    response = requests.request("GET", url, headers={"Authorization": f"Bearer {token}"})

    records = response.json()["records"]

    return [record["fields"] for record in records]