Summary
This API request returns information on total accounts/sessions per day for a specified time-frame (between the start_date and end_date that you pass as input parameters to this request), excluding internal users actions/sessions.
Resource URL
https://api.useriq.com/api/1.0/account/get_account_sessions_actions?start_date=2018-01-01
Resource Information
Request Type: GET
Response Format: JSON
Headers
- useriq-api-key (required): Your valid API key generated from the Site settings page
Parameters
1. start_date - The first date to get actions/sessions for an account DEFAULT: today
2. end_date - The last date to get actions/sessions for an account DEFAULT: today
Example cURL Request:
curl \
-H "Content-type: application/json" \
-H "useriq-api-key: 572d7372829a3211a73d9c2cb790ffe3" \
https://api.useriq.com/api/1.0/account/get_account_sessions_actions
curl \
-H "Content-type: application/json" \
-H "useriq-api-key: 572d7372829a3211a73d9c2cb790ffe3" \
https://api.useriq.com/api/1.0/account/get_account_sessions_actions?start_date=2018-01-01
Example Result
{
"results": [
{"site_id":#########,"customer_account_id":"abc123","summary_date":"2018-01-01","count_actions":31,"count_sessions":2,"customer_account_name":"My Awesome Account"}
{ ... },
...
]
}
Response Codes
200: OK. Request processed successfully
400: Bad Request. API request could not be understood by the server.
401: Unauthorized. Invalid API access token.
Comments
0 comments
Please sign in to leave a comment.