JSON API » analytics » analytics/data

Gets the list of features to populate an analytics report.

Input parameters

Requires authentication and the administrator privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
recursiveInteger1 to include sub-customers recursively, 0 not to.No0

Responses

CodeDescription
200Success.
401The authentication details provided are invalid.
402Your role does not allow this.
404The report does not exist.

Data returned

Enswitch features which can be reported on.

Example:

http://enswitch.example.com/api/json/analytics/features/?auth_username=user;auth_password=password

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], {"data":{"error":"","queues":[{"id":1...}],"phones":[{"name":"1234567"...}]}} }

Change history

VersionChanges
4.3Function added.