Link Search Menu Expand Document

Constructor: restrictionReason

Back to constructors index

Restriction reason.

See here » for the full flow to use for restricted or age-gated content.

Attributes:

NameTypeRequiredDescription
platformstringYesPlatform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)
reasonstringYesRestriction reason (porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons » client configuration parameter.
textstringYesError message to be shown to the user

Type: RestrictionReason

Example:

$restrictionReason = ['_' => 'restrictionReason', 'platform' => 'string', 'reason' => 'string', 'text' => 'string'];