LeaderTaskSyncService
Для получения полного списка операций щелкните здесь.
CreateUser
Create user
Тест
Чтобы протестировать операцию с использованием HTTP-протокола POST, нажмите кнопку "Запуск".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/CreateUser" <?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> <CreateUser xmlns="https://sync.leadertask.net/"> <email>string</email> <username>string</username> <system_name>string</system_name> <language>string</language> <password>string</password> <phone>string</phone> <google_token>string</google_token> <facebook_token>string</facebook_token> <cid>string</cid> <landing>string</landing> <appleid>string</appleid> </CreateUser> </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> <CreateUserResponse xmlns="https://sync.leadertask.net/"> <CreateUserResult> <error_code>int</error_code> <error_string>string</error_string> <login>string</login> <password>string</password> <uid_session>string</uid_session> <name>string</name> <is_new_user>boolean</is_new_user> </CreateUserResult> </CreateUserResponse> </soap:Body> </soap:Envelope>
HTTP GET
В следующем примере показан HTTP-запрос GET и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.
GET /LeaderTaskSyncService.asmx/CreateUser?email=string&username=string&system_name=string&language=string&password=string&phone=string&google_token=string&facebook_token=string&cid=string&landing=string&appleid=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"?> <CreateUser_Response xmlns="https://sync.leadertask.net/"> <error_code>int</error_code> <error_string>string</error_string> <login>string</login> <password>string</password> <uid_session>string</uid_session> <name>string</name> <is_new_user>boolean</is_new_user> </CreateUser_Response>
HTTP POST
В следующем примере показан HTTP-запрос POST и ответ на него. Вместо элементов-заполнителей следует подставить фактические значения.
POST /LeaderTaskSyncService.asmx/CreateUser HTTP/1.1 Host: sync.leadertask.net Content-Type: application/x-www-form-urlencoded Content-Length: length email=string&username=string&system_name=string&language=string&password=string&phone=string&google_token=string&facebook_token=string&cid=string&landing=string&appleid=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <CreateUser_Response xmlns="https://sync.leadertask.net/"> <error_code>int</error_code> <error_string>string</error_string> <login>string</login> <password>string</password> <uid_session>string</uid_session> <name>string</name> <is_new_user>boolean</is_new_user> </CreateUser_Response>