consentmanager_get_consents

Return all consent data for a given resource

Variable Description Data type
$resource * The ID of the resource. int

Return values

JSON containing the consent metadata.

[
    {
        "ref": 1,
        "name": "Joe Smith",
        "consent_usage": "",
        "expires": null
    }
]