VP_EVENT_USER_ATTRIBUTES

From Virtual Paradise Wiki
Revision as of 23:49, 25 August 2013 by Roy Curtis (talk | contribs) (Created page with "{{sdk event page|USER_ATTRIBUTES|Received after a successful call to {{sdk function|user_attributes_by_id}} or {{sdk function|user_attributes_by_name}}. |attributes= {{sdk a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event set and handler snippet

vp_event_set(instance, VP_EVENT_USER_ATTRIBUTES, event_user_attributes);

void event_user_attributes(VPInstance instance) { }

Received after a successful call to vp_user_attributes_by_id() or vp_user_attributes_by_name().

Attributes

Attribute Usage
Data of the requested user:
VP_USER_ID ID number
VP_USER_REGISTRATION_TIME Registration timestamp
VP_USER_ONLINE_TIME Amount of time online
VP_USER_LAST_LOGIN Unused - Last login timestamp
VP_USER_NAME Canonical login name
VP_USER_EMAIL E-mail address

Behavior

  • VP_USER_ONLINE_EMAIL is blank if the requesting client's user ID does not match that of the requested user

Caveats

Examples

This event has no usage examples; please add at least one to this page