LeaderTaskSyncService


Для получения полного списка операций щелкните здесь.

CreateSession

Create session

Тест

Чтобы протестировать операцию с использованием HTTP-протокола POST, нажмите кнопку "Запуск".
Параметр Значение
name:
password:
system_name:
push_token:
appleid:
user_token:

SOAP 1.1

В следующем примере показаны запрос и ответ SOAP 1.1. Вместо элементов-заполнителей следует подставить фактические значения.

POST /LeaderTaskSyncService.asmx HTTP/1.1
Host: sync.leadertask.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://sync.leadertask.net/CreateSession"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateSession xmlns="https://sync.leadertask.net/">
      <name>string</name>
      <password>string</password>
      <system_name>string</system_name>
      <push_token>string</push_token>
      <appleid>string</appleid>
      <user_token>string</user_token>
    </CreateSession>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreateSessionResponse xmlns="https://sync.leadertask.net/">
      <CreateSessionResult>
        <error_code>int</error_code>
        <error_string>string</error_string>
        <uid_session>string</uid_session>
      </CreateSessionResult>
    </CreateSessionResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

В следующем примере показан HTTP-запрос GET и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.

GET /LeaderTaskSyncService.asmx/CreateSession?name=string&password=string&system_name=string&push_token=string&appleid=string&user_token=string HTTP/1.1
Host: sync.leadertask.net
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<CreateSession_Response xmlns="https://sync.leadertask.net/">
  <error_code>int</error_code>
  <error_string>string</error_string>
  <uid_session>string</uid_session>
</CreateSession_Response>

HTTP POST

В следующем примере показан HTTP-запрос POST и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.

POST /LeaderTaskSyncService.asmx/CreateSession HTTP/1.1
Host: sync.leadertask.net
Content-Type: application/x-www-form-urlencoded
Content-Length: length

name=string&password=string&system_name=string&push_token=string&appleid=string&user_token=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<CreateSession_Response xmlns="https://sync.leadertask.net/">
  <error_code>int</error_code>
  <error_string>string</error_string>
  <uid_session>string</uid_session>
</CreateSession_Response>