UserGetOne

Z Net47 2.0
(Różnice między wersjami)
Skocz do: nawigacji, wyszukiwania
 
(Nie pokazano 2 wersji utworzonych przez jednego użytkownika)
Linia 10: Linia 10:
 
<Type>UserGetOne</Type>
 
<Type>UserGetOne</Type>
 
<UserGetOne>
 
<UserGetOne>
<ID>4</ID>
+
<ID>4</ID><!-- opcjonalne --><!-- jeżeli nie jest podane pobierane są dane użytkownika zalogowanego -->
 
</UserGetOne>
 
</UserGetOne>
 
</Request>
 
</Request>
Linia 30: Linia 30:
 
<LastName>Nowak</LastName>
 
<LastName>Nowak</LastName>
 
<Status>2</Status>
 
<Status>2</Status>
 +
<MobileUID>BLEBLEBLE1</MobileUID>
 
<Attribute>
 
<Attribute>
 
<ID>1</ID>
 
<ID>1</ID>
<Gadu-Gadu>1112233</Gadu-Gadu>
+
<AttributeName>gadu-gadu</AttributeName>
 +
<AttributeValue>42554466</AttributeValue>
 
</Attribute>
 
</Attribute>
 
<Attribute>
 
<Attribute>
 
<ID>2</ID>
 
<ID>2</ID>
<E-mail>nowak@kowalski.pl</E-mail>
+
<AttributeName>E-mail</AttributeName>
 +
<AttributeValue>nowak@kowalski.pl</AttributeValue>
 
</Attribute>
 
</Attribute>
 
<Attribute>
 
<Attribute>
 
<ID>3</ID>
 
<ID>3</ID>
<Telefon>111222333</Telefon>
+
<AttributeName>Telefon</AttributeName>
 +
<AttributeValue>111222333</AttributeValue>
 
</Attribute>
 
</Attribute>
 
<Attribute>
 
<Attribute>
 
<ID>4</ID>
 
<ID>4</ID>
<Avatar>gege2342t.jpg</Avatar>
+
<AttributeName>Avatar</AttributeName>
 +
<AttributeValue>gege2342t.jpg</AttributeValue>
 
</Attribute>
 
</Attribute>
 
</UserGetOne>
 
</UserGetOne>

Aktualna wersja na dzień 15:34, 31 sty 2018

Zapytanie:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID>
    <Priority>0</Priority>
    <Term>Short</Term>
    <Request>
        <Type>UserGetOne</Type>
        <UserGetOne>
            <ID>4</ID><!-- opcjonalne --><!-- jeżeli nie jest podane pobierane są dane użytkownika zalogowanego -->
        </UserGetOne>
    </Request>
</Net47>
//BEGINEND//

Odpowiedź:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>UserGetOne</Type>
        <UserGetOne>
            <ID>1</ID>
            <Login>testowy</Login>
            <FirstName>Jan</FristName>
            <LastName>Nowak</LastName>
            <Status>2</Status>
            <MobileUID>BLEBLEBLE1</MobileUID>
            <Attribute>
                <ID>1</ID>
                <AttributeName>gadu-gadu</AttributeName>
                <AttributeValue>42554466</AttributeValue>
            </Attribute>
            <Attribute>
                <ID>2</ID>
                <AttributeName>E-mail</AttributeName>
                <AttributeValue>nowak@kowalski.pl</AttributeValue>
            </Attribute>
            <Attribute>
                <ID>3</ID>
                <AttributeName>Telefon</AttributeName>
                <AttributeValue>111222333</AttributeValue>
            </Attribute>
            <Attribute>
                <ID>4</ID>
                <AttributeName>Avatar</AttributeName>
                <AttributeValue>gege2342t.jpg</AttributeValue>
            </Attribute>
        </UserGetOne>
    </Request>
</Net47>
//BEGINEND//

Błędy::

1
2
3
4
5
6
7
8
9
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>Error</Type>
        <Error>Użytkownik o podanym ID nie istnieje</Error>
    </Request>
</Net47>
//BEGINEND//
Osobiste
Przestrzenie nazw
Warianty
Działania
Nawigacja
Konfiguracja Systemu