๐๏ธ Get GDPR consent
Takes an organization ID and a person ID and returns the GDPR consent levels and timestamp for that person, if it exists.
๐๏ธ Set GDPR consent
Takes the organization ID, the person ID, and GDPR consent levels, and stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR.
๐๏ธ Store GDPR consent
Takes the organization ID, the person ID, and GDPR consent levels, and stores the GDPR consent levels and timestamp. Returns the consent levels and the timestamp at which the consent information was received. This will overwrite existing GDPR consent levels for the specified person. The consent levels indicate the types of data classes the person has allowed during their use of your services, in accordance with GDPR.
๐๏ธ Remove GDPR consent
The function takes the organization ID and person ID and removes the specified GDPR consent, or all consents.