def get_resource_body(resource):
    """Get a full version of the resource's body
    """
    try:
        digest = resource.get_structured_body()
    except AttributeError:
        digest = resource
    return digest
