import requests


def get_citeas_apa_citation(resource):
    """
    Returns a dict with a resource and generated CiteAs citation in APA format.
    """
    r = requests.get("https://api.citeas.org/product/" + resource)
    citation = r.json()["citations"][0]["citation"]
    return {resource: citation}