CustomerAttributeGetAll
(Różnice między wersjami)
Linia 35: | Linia 35: | ||
<MapID>8</MapID> | <MapID>8</MapID> | ||
<Desc>opis</Desc> | <Desc>opis</Desc> | ||
+ | <ZgodyID>1,2,3</ZgodyID> | ||
+ | <ZgodyNazwa>test,test1,test2</ZgodyNazwa> | ||
</Attribute> | </Attribute> | ||
<Attribute> | <Attribute> | ||
Linia 44: | Linia 46: | ||
<MapID>8</MapID> | <MapID>8</MapID> | ||
<Desc>opis</Desc> | <Desc>opis</Desc> | ||
+ | <ZgodyID>1,2,3</ZgodyID> | ||
+ | <ZgodyNazwa>test,test1,test2</ZgodyNazwa> | ||
</Attribute> | </Attribute> | ||
</CustomerAttributeGetAll> | </CustomerAttributeGetAll> |
Wersja z 15:32, 10 lut 2021
Zapytanie:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | //BEGIN// <? xml version = "1.0" encoding = "UTF-8" ?> < Net47 > < SessionID >9859c16379c2f22e2db8dde9f41cc6a8</ SessionID > < Priority >3</ Priority > < Term >Short</ Term > < Request > < Type >CustomerAttributeGetAll</ Type > < CustomerAttributeGetAll > < CustomerID >3</ CustomerID > <!-- opcjonalne --> <!-- w przypadku braku tej sekcji, pobierane są atrybuty wszystkich użytkowników do których mamy uprawnienia --> < SortName >id</ SortName > <!-- id, customer_id, typ, wartosc, oznacz --> < SortType >ASC</ SortType > <!-- ASC lub DESC --> </ CustomerAttributeGetAll > </ 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 | //BEGIN// <? xml version = "1.0" encoding = "UTF-8" ?> < Net47 > < Request > < Type >CustomerAttributeGetAll</ Type > < CustomerAttributeGetAll > < Attribute > < ID >2</ ID > < CustomerID >2</ CustomerID > < MapName >Pesel</ MapName > <!-- CustomerAttributeMapGetAll --> < Value >56498484684681968</ Value > < Default >false</ Default > < MapID >8</ MapID > < Desc >opis</ Desc > < ZgodyID >1,2,3</ ZgodyID > < ZgodyNazwa >test,test1,test2</ ZgodyNazwa > </ Attribute > < Attribute > < ID >3</ ID > < CustomerID >2</ CustomerID > < MapName >Telefon GSM</ MapName > <!-- CustomerAttributeMapGetAll --> < Value >123456789</ Value > < Default >true</ Default > <!-- Wystepuje tylko w przypadku email, sms: oznacza domyślna wysyłke komunikatów na ten adres --> < MapID >8</ MapID > < Desc >opis</ Desc > < ZgodyID >1,2,3</ ZgodyID > < ZgodyNazwa >test,test1,test2</ ZgodyNazwa > </ Attribute > </ CustomerAttributeGetAll > </ 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 >Brak uprawnień do grupy</ Error > </ Request > </ Net47 > //BEGINEND// |