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

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

Ключ

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

...

Права пользователя для выполнения запроса:  владелец Владелец аккаунта, администратор Администратор, администратор организации Администратор подразделения, автор Автор.

Параметры

ПараметрТипОписание
credentials (required)credentialsСмотрите описание объекта Credentials.

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

После того, как запрос успешно обработан, система отправляет объект со следующими свойствами:

ПараметрТекстОписание
userFieldInfo[]arrayМассив объектов со следующими свойствами: userFieldInfoId, name, label, type, isUnique, isVisible, isRequired, orderPriority.

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

Блок кода
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:ns1="http://new.webservice.namespace">
  <SOAP-ENV:Body>
    <GetUserProfileFieldsRequest>
       <credentials>
         <accountUrl>http://myaccount.ispringonlineispringlearn.ru</accountUrl>
         <email>email@email.com</email>
         <password>password</password>
       </credentials>
    </GetUserProfileFieldsRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

...

Блок кода
languagexml
<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:GetUserProfileFieldsResult>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>67<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>login</ns1:name>
                <ns1:label>Login</ns1:label>
                <ns1:type>login</ns1:type>
                <ns1:isUnique>true</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>true</ns1:isRequired>
                <ns1:orderPriority>0</ns1:orderPriority>
            </ns1:userFieldInfo>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>2<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>password</ns1:name>
                <ns1:label>Password</ns1:label>
                <ns1:type>password</ns1:type>
                <ns1:isUnique>false</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>true</ns1:isRequired>
                <ns1:orderPriority>1</ns1:orderPriority>
            </ns1:userFieldInfo>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>3<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>first_name</ns1:name>
                <ns1:label>First Name</ns1:label>
                <ns1:type>string</ns1:type>
                <ns1:isUnique>false</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>false</ns1:isRequired>
                <ns1:orderPriority>2</ns1:orderPriority>
            </ns1:userFieldInfo>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>1<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>email</ns1:name>
                <ns1:label>Email</ns1:label>
                <ns1:type>email</ns1:type>
                <ns1:isUnique>true</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>true</ns1:isRequired>
                <ns1:orderPriority>3</ns1:orderPriority>
            </ns1:userFieldInfo>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>13<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>country_id</ns1:name>
                <ns1:label>Country</ns1:label>
                <ns1:type>country</ns1:type>
                <ns1:isUnique>false</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>false</ns1:isRequired>
                <ns1:orderPriority>5</ns1:orderPriority>
                <ns1:values>
                    <ns1:field>
                        <ns1:name>1</ns1:name>
                        <ns1:value>Afghanistan</ns1:value>
                    </ns1:field>
                    <ns1:field>
                        <ns1:name>2</ns1:name>
                        <ns1:value>Albania</ns1:value>
                    </ns1:field>
                    <ns1:field>
                        <ns1:name>3</ns1:name>
                        <ns1:value>Algeria</ns1:value>
                    </ns1:field>
                    <ns1:field>
                        <ns1:name>238</ns1:name>
                        <ns1:value>Zimbabwe</ns1:value>
                    </ns1:field>
                </ns1:values>
            </ns1:userFieldInfo>
            <ns1:userFieldInfo>
                <ns1:userFieldInfoId>71<userFieldInfoId>string</ns1:userFieldInfoId>
                <ns1:name>oYh00</ns1:name>
                <ns1:label>Position</ns1:label>
                <ns1:type>list</ns1:type>
                <ns1:isUnique>false</ns1:isUnique>
                <ns1:isVisible>true</ns1:isVisible>
                <ns1:isRequired>false</ns1:isRequired>
                <ns1:orderPriority>7</ns1:orderPriority>
                <ns1:values>
                    <ns1:field>
                        <ns1:name>Бухгалтер</ns1:name>
                        <ns1:value>Бухгалтер</ns1:value>
                    </ns1:field>
                    <ns1:field>
                        <ns1:name>Директор</ns1:name>
                        <ns1:value>Директор</ns1:value>
                    </ns1:field>
                </ns1:values>
            </ns1:userFieldInfo>
         </ns1:GetUserProfileFieldsResult>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>