User Activity Data API
Overview
Smartech provides the API to enable the client to support GDPR requests when the Data Subject has exercised Right of access by the data subject under Art. 15 GDPR.
By this API client can get User's data.
Base URL
US IDC:
https://api.netcoresmartech.com?type=export_data&activity=get_user_activity_data&apikey=
Indian IDC:
https://apiin.netcoresmartech.com?type=export_data&activity=get_user_activity_data&apikey=
HTTP Method
POST
Body Parameters
Parameter | Detail | Type | Is Mandatory | Example Value |
---|---|---|---|---|
data | Pass the as JSON | JSON String | Yes | data will be JSON string. The below key : value param will be acceptable primary_key (PK of user) from_data (ddmmyyyy) to_date (ddmmyyyy) activity_id (pass activity id) batch_size (pass number of records) batch_number (offset) |
API Response
Response Example - In the Success case
{
"status": "success",
"result": {
"activity_data": [
// array of activity data
],
"total_count": 18,
"primary_key": "[email protected]",
"from_date": "<from_date>",
"to_date": "<to_date>",
"batch_size": 10,
"batch_number": 1
},
"details": "Data fetched successfully."
}
Response Sample
{
"status": "success",
"result": {
"activity_data": [
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"current_url": "https://url.com/qa10/",
"event_type": "web",
"activity_date_time": "2018-07-19 14:58:40"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/",
"current_url": "https://url.com/qa10/my-account/",
"event_type": "web",
"activity_date_time": "2018-07-19 14:58:49"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/my-account/",
"current_url": "https://url.com/qa10/",
"event_type": "web",
"activity_date_time": "2018-07-19 14:58:53"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/product-category/electronics/",
"current_url": "https://url.com/qa10/product-category/posters/",
"event_type": "web",
"activity_date_time": "2018-07-19 14:59:11"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/product-category/electronics/",
"current_url": "https://url.com/qa10/product-category/posters/",
"event_type": "web",
"activity_date_time": "2018-07-19 15:04:13"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"current_url": "https://url.com/qa10/?__sta=jo.hg.lbhgmljxlzwskqsksv.kqlcbsq%7CYTV&__stm_medium=bpn&__stm_source=smartech",
"event_type": "web",
"activity_date_time": "2018-07-19 15:47:05"
},
{
"operating_system": "JAVA",
"event_type": "app",
"activity_date_time": "2018-07-19 15:47:50"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"current_url": "https://url.com/qa10/cart/",
"event_type": "web",
"activity_date_time": "2018-07-19 16:18:15"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/cart/",
"current_url": "https://url.com/qa10/",
"event_type": "web",
"activity_date_time": "2018-07-19 16:18:57"
},
{
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36",
"ip": "192.168.41.50",
"previous_url": "https://url.com/qa10/",
"current_url": "https://url.com/qa10/product/happy-ninja-1-2/",
"event_type": "web",
"activity_date_time": "2018-07-19 16:19:04"
}
],
"total_count": 18,
"primary_key": "[email protected]",
"from_date": "15072018",
"to_date": "19072018",
"batch_size": 10,
"batch_number": 1
},
"details": "Data fetched successfully."
}
Updated about 5 years ago