ConsentsService
A list of all methods in the ConsentsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
consents_get_consents | Get all consents definitions |
Example of metaData for a Consent:
{
"metaData": {
"conditionText": {
"sv-SE": "Svensk villkorstext",
"en-GB": "English text to show for condition"
},
"displayText": {
"sv-SE": "Svensk text att visa",
"en-GB": "English text to display"
},
"linkText": {
"sv-SE": "Svensk text att visa på länk",
"en-GB": "English text to show on link"
}
}
}
|
consents_get_consents
Get all consents definitions
Example of metaData for a Consent:
{
"metaData": {
"conditionText": {
"sv-SE": "Svensk villkorstext",
"en-GB": "English text to show for condition"
},
"displayText": {
"sv-SE": "Svensk text att visa",
"en-GB": "English text to display"
},
"linkText": {
"sv-SE": "Svensk text att visa på länk",
"en-GB": "English text to show on link"
}
}
}
- HTTP Method:
GET
- Endpoint:
/api/v2/consents
Return Type
List[ApiConsentDefinition]
Example Usage Code Snippet
from voyado_engage import VoyadoEngage, Environment
sdk = VoyadoEngage(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
result = sdk.consents.consents_get_consents()
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs