conversions.list
List conversions.
If userId is not given, conversions of the logged id user will be listed.
Conversion value is in halers; it means, that in Sklik API this value is 100x
bigger than what you see in web interface.
Parameters
struct |
user { |
|
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
userId |
(optional) Managed user ID
|
|
} |
|
|
Response
struct |
{ |
|
string |
statusMessage |
Status code description
|
string |
session |
Refreshed session
|
array |
conversions ( |
|
struct |
{ |
|
string |
name |
Conversion name
|
int |
conversionTypeId |
Conversion type id (see listConversionTypes() for conversion type enumeration)
|
string |
conversionTypeName |
Conversion type name
|
bool |
removed |
Whether conversion is removed
|
string |
proto |
Protocol (DEPRECATED, always returns empty string)
|
string |
color |
(can be null) Conversion color in hexadecimal format (white=ffffff) or nil
|
int |
value |
Conversion value (in halers)
|
|
} |
|
|
|
) |
|
|
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: