LMS Collaborator knowledge base

Home/Technical requirements/API/API - User Rewards List

API – User Rewards List

See API – Authorization

Request example:
curl 'http://localhost:8080/api/rest.php/badges? user_id=123&action=get-user-bages' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'


Answer

  • In case of successful request (HTTP response code - 200), the following result will be returned:
    data - user rewards array
    count - the number of all user rewards
  • In case of error (HTTP code response - 400) it returns JSON object with information about the error
Still have questions?
Our technical support team is always happy to help!
Write to us at technical support [email protected]. If you are registered on our Helpdesk - send request button below.
Send request