Summary
This API request returns a list of all of the existing results for a specific campaign type on your site. For example, if you were to choose NPS as a campaign type, this API would return a list of all NPS results till date (for all of the NPS campaigns that you have launched in the past).
Resource URL
https://eu.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://eu.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.