Skip to navigation

Get User Statistics

View as Markdown

The POST /api/user/userStatsendpoint is used to retrieve user statistics in the application courses based on the user’name.

Request

  • Method: POST

  • Base URL: {{baseUrl}}

  • Path: /api/user/userStats

  • Headers:

    • Content-Type: application/x-www-form-urlencoded
  • Body:

    • idst (text): User ID

    • auth (text): The authentication token

Response

  • success (boolean): Indicates the success of the request.

  • data (object)

    • general (object):

      • name: user’s username

      • user_type: Type of user

      • member_since: Date user was registered

    • course_attendance:

      • subscribed: number of courses user is subscribed to.

      • in _progress: number of courses currently in progress by user.

      • completed: number of completed courses

      • total_courses: total number of courses associated with the user

    • competencies_attained: number of competencies attained.

    • certificates_attained: number of certificates attained.

    • last_login: Last login date/time for the user

Request

This endpoint expects an object.
authstringRequired
idststringRequired

Response headers

Keep-AlivestringOptional
X-Powered-BystringOptional

Response

OK
dataobject
successboolean