Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

ЗаголовокТипОписание
contentItemId    string    ID папки или курса
title    string    Название папки или курса
type    string    Тип материала
addedDate    dateTime    Дата добавления материала
viewUrl    string    Ссылка на просмотр материала
parentId    string    ID родительской папки материала
isShared

boolean

False или true. True, если материал из библиотеки курсов.

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

Permission denied    У пользователя недостаточно прав для выполнения запроса.
Authorization failedОшибка авторизации.

...

Блок кода
<?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:GetCoursesTreeRequest>
      <ns1:credentials>
        <ns1:accountUrl>http://myaccount.ispringlearn.ru</ns1:accountUrl>
        <ns1:email>elena.ivanova@email.com</ns1:email>
        <ns1:password>1234567Wz</ns1:password>
      </ns1:credentials>
    </ns1:GetCoursesTreeRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


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

Блок кода
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlnsEnvelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlnsxmlns:ns1="httpshttp://ispringlearn.com/go/services/api/soap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP   <SOAP-ENV:Body>
    <ns1      <ns1:GetCoursesTreeResult>
      <ns1:coursesTreeItem>
        <ns1:contentItemId>1<         <ns1:contentItem>
            <ns1:contentItemId>92fe174d-afea-11f0-9cfd-368fa1b5239d</ns1:contentItemId>
        <ns1            <ns1:title>Курсы для продавцов продавцов<</ns1:title>
        <ns1:type>Folder<            <ns1:type>Папка</ns1:type>
        <ns1:addedDate>2024-02-22T19:52:31+03:00</ns1:addedDate>
        <ns1:parentId/>
      </ns1:coursesTreeItem>
      <ns1:coursesTreeItem>
        <ns1:contentItemId>5</ns1:contentItemId>
        <ns1:title>Мои проекты</ns1:title>
        <ns1:type>Folder</ns1:type>
        <ns1            <ns1:description xsi:nil="true"/>
            <ns1:addedDate>2024-02-22T19:54:50+03:00</ns1:addedDate>
        <ns1:viewUrl>http://myaccount.ispringlearn.ru/view/4-p4MHJ-H7YQK-AUGBz</ns1:viewUrl>
        <ns1:parentId>1</ns1:parentId>
      </ns1:coursesTreeItem>
      <ns1:coursesTreeItem>
        <ns1:contentItemId>6<            <ns1:viewUrl xsi:nil="true"/>
            <ns1:parentId>0</ns1:parentId>
            <ns1:isShared>false</ns1:isShared>
         </ns1:contentItem>
         <ns1:contentItem>
            <ns1:contentItemId>a3396932-afea-11f0-bca0-b66da7d73f76</ns1:contentItemId>
        <ns1:title>Мерчендайзинг<           <ns1:title>В чем вам поможет iSpring Learn</ns1:title>
        <ns1:type>Presentation<            <ns1:type>Материал iSpring Suite</ns1:type>
            <ns1:description xsi:nil="true"/>
        <ns1            <ns1:addedDate>2024-02-22T2022T19:0554:3350+03:00</ns1:addedDate>
        <ns1:viewUrl>http            <ns1:viewUrl>https://myaccount.ispringlearn.ru/view/410321311-9DQZpBKhge-vYojmJqfdH-izSdp<MtD3g</ns1:viewUrl>
        <ns1:parentId>5<            <ns1:parentId>92fe174d-afea-11f0-9cfd-368fa1b5239d</ns1:parentId>
      <
            <ns1:isShared>false</ns1:isShared>
         </ns1:coursesTreeItem>
    <contentItem>
      </ns1:GetCoursesTreeResult>
  <   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

...