Page tree
Skip to end of metadata
Go to start of metadata

To obtain the completion statuses for all users who viewed the course, use the getContentItemFinalStatuses method.

Permissions to run the request: Account OwnerAdministratorsDepartment Administrators, Publishers.

Department Administrators and Publishers can get statuses only on the users belonging to the departments they manage and their daughter departments.

Parameters

Параметр

Тип

Описание

credentials (required)credentialsRead the description of the Credentials object.
contentItemId (required)stringID of a course.

Возвращаемые значения

Array with the following properties:

ПараметрТипОписание
userIdstringID of a user.
statusstringCourse status.
progressfloatCompletion progress.

Возможные ошибки

ОшибкаОписание
Unknown content itemThe course with the specified ID hasn't been found. 
Permission deniedThe user doesn't have enough permissions to fulfill the request.

Пример запроса

<?xml version="1.0" encoding="utf-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                     xmlns="http://ispringlearn.com/go/services/api/soap">
    <SOAP-ENV:Body>
      <GetContentItemFinalStatusesRequest>
        <credentials>
          <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
          <email>email@email.com</email>
          <password>password</password>
        </credentials>
        <contentItemId>123</contentItemId>
      </GetContentItemFinalStatusesRequest>
    </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

Пример ответа

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:ns1="http://ispringlearn.com/go/services/api/soap">    
  <SOAP-ENV:Body>
    <ns1:GetContentItemFinalStatusesResult>
      <ns1:statuses>
        <ns1:status>
          <ns1:userId>265f433a-6214-11e9-b9cf-7ef279cfa744</ns1:userId>
          <ns1:status>Passed</ns1:status>
          <ns1:progress>100</ns1:progress>
        </ns1:status>
        <ns1:status>
          <ns1:userId>43eb7146-6280-11e9-b274-a6210366ac32</ns1:userId>
          <ns1:status>In progress</ns1:status>
          <ns1:progress>45.22</ns1:progress>
        </ns1:status>
        <ns1:status>
          <ns1:userId>13172bc2-5aa7-11e9-8b7e-7a64dbc74205</ns1:userId>
          <ns1:status>Failed</ns1:status>
          <ns1:progress>66.66</ns1:progress>
        </ns1:status>
      </ns1:statuses>
    </ns1:GetContentItemFinalStatusesResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
  • No labels