getAttribute

Fetches the value of an attribute (extra field) for a given object type and ID. This method returns string values; for attributes of type INTEGER use getAttributeInteger and for NUMBER attributes use getAttributeNumber.

Arguments

Name Type Description
skey string

object_type string

The object type; see getAttributeObjectTypes to determine usable values.

object_id string

The ID of the object to get the attribute value from.

id_attr_type string

The ID of the attribute type.

Return

The getAttribute method returns the attribute value (a string).

Exceptions

The getAttribute method may report the following exceptions: