Developers » API methods » Messages » messages.getLastActivity
Returns a user's current status and date of last activity.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
user_idUser ID.
int (number), required parameter
Returns an object with the following fields:
  • online Ś User's current status (0 Ś offline, 1 Ś online).
  • time Ś Date (in Unix time) of the user's last activity.
Global errors can occur while running. See their descriptions on this page.