partner.channel.stats
Parameters
string |
session |
Session (as retrieved from client.loginByToken() )
|
int |
channelId |
Channel id (for example retrieved from partner.listChannels() )
|
Response
struct |
{ |
|
int |
status |
Status code:
-
200 :
OK
-
301 :
User unavailable
-
400 :
Invalid parameters
-
401 :
Invalid session
-
403 :
Forbidden
-
404 :
Not found
-
500 :
Server Error
|
string |
statusMessage |
Status code description
|
string |
session |
Refreshed session
|
struct |
stats { |
|
int |
impressions |
View count
|
int |
commission |
Commission (in halers)
|
int |
webViews |
Web views count
|
int |
codeViews |
Code views count
|
|
} |
|
|
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: