listLabels
List label values from zbozi PLA feed.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
struct |
restrictionFilter { |
restrict results with these options
|
int |
premiseId |
zbozi premise id
|
array |
labels ( |
(optional) restrict result to these labels only (labels must be in lowercase format)
|
|
) |
|
|
|
} |
|
|
struct |
displayOptions { |
|
int |
offset |
index of first instance in the result
|
int |
limit |
max number of returned instances in the result
|
string |
lang |
(optional) language choice [default: cz]:
-
cz :
label names in czech
-
en :
label names in english
|
|
} |
|
|
Response
struct |
{ |
|
int |
status |
Status code (see bellow)
|
string |
statusMessage |
Status code description
|
string |
session |
(optional) Refreshed session
|
array |
labels ( |
|
struct |
{ |
|
string |
label |
name of label
|
string |
labelTitle |
name of label (human readable)
|
string |
labelType |
type of label
|
array |
values ( |
|
struct |
{ |
|
string |
value |
value for given label
|
string |
valueTitle |
(optional) human readable value, if applicable
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
) |
|
|
array |
diagnostics ( |
(optional) Various diagnostics(warnings, errors, other information)
|
|
) |
|
|
|
} |
|
|
Response status codes:
List of all possible response status codes:
200: OK
206: Partially OK
301: User is serviced
400: Bad arguments
401: Invalid session
403: Access Denied
404: Not found
406: Bad values of attributes
413: Too many items requested.
429: Too many requests. Has to wait.
500: Server Error.
409: Conflict
Diagnostics:
List of all possible diagnostics:
missing_attribute
unknown_label
user_access_denied
user_not_linked_to_pla
wrong_label_type
wrong_param_value