ePages 6.17.52 - DE_EPAGES/EasyMarketing/API/Attributes/TokenAttribute.pm

Package DE_EPAGES::EasyMarketing::API::Attributes::TokenAttribute

Implements an attribute for a Rest API Token

Base
DE_EPAGES::Object::API::Attributes::EncryptedStringAttribute

Functions

getAttribute
setAttribute

getAttribute

Returns a single attribute value. Don't call this function directly. Returns undef if attribute was not found. Use $Object->get() instead.

Syntax
$Value = $Package->getAttribute( $Object, $Name, $LanguageID );
Input
$Object (object)
object
$Name (string)
attribute name
$LanguageID (int)
language id
Return
$Value (ref.hash)
attribute value

setAttribute

Sets the attribute if ePagesJ is running. If both ConsumerKey and ConsumerSecret is set, a Consumer is created in ePagesJ.

Syntax
$Package->setAttribute( $Object, $Name, $rValue, $LanguageID );
Input
$Object (object)
object
$Name (string)
attribute name
$rValue (ref.hash)
attribute value
$LanguageID (int)
language id