TCF API
In order to have a full spec of the TCF API, you can read more at this link: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md
Get Consent Data
The TCF framework have a helper function that will fetch the consents given by a user. you can use it by this code snippet below:
The tcData
variable will return an object that contains this data:
Last updated