Difference between revisions of "NATS5 REST API Maintenance GET admin-actions"

From TMM Wiki
Jump to navigationJump to search
Line 1: Line 1:
{{NATS4 Manual
+
{{NATS5 Manual
 
| show_api_admin_section = true
 
| show_api_admin_section = true
 
}}
 
}}
 
== '''GET /maintenance/admin-actions''' ==
 
== '''GET /maintenance/admin-actions''' ==
 +
 
'''Description'''  
 
'''Description'''  
 
* Search admin actions  
 
* Search admin actions  
Line 9: Line 10:
 
*Replace domain with the nats domain
 
*Replace domain with the nats domain
  
'''[[NATS4_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]
+
'''[[NATS5_REST_API_Overview#Allowed_HTTP_Request_Methods|Request Method''']]
 
*GET
 
*GET
 
'''Response Format'''
 
'''Response Format'''
 
*JSON
 
*JSON
  
'''[[NATS4_REST_API_Overview#Authentication|Authentication]]'''
+
'''[[NATS5_REST_API_Overview#Authentication|Authentication]]'''
 
*HTTP headers
 
*HTTP headers
  
Line 49: Line 50:
 
** optional
 
** optional
 
* '''has_action'''
 
* '''has_action'''
** type: boolean_digit
+
** type: boolean_digit (0 or 1)
 
** optional
 
** optional
 
* '''has_view'''
 
* '''has_view'''
** type: boolean_digit
+
** type: boolean_digit (0 or 1)
 
** optional
 
** optional
 
* '''search_page'''
 
* '''search_page'''
Line 79: Line 80:
 
Method: '''GET'''<br/>
 
Method: '''GET'''<br/>
 
URL: <nowiki>http://domain/api/maintenance/admin-actions</nowiki><br/>
 
URL: <nowiki>http://domain/api/maintenance/admin-actions</nowiki><br/>
 +
Query String: <nowiki>start=100&count=25&loginid=1&start_date=2018-06-10&end_date=2020-06-10&has_view=1</nowiki><br/>
  
 
Response:
 
Response:
 
<pre>
 
<pre>
 
{
 
{
     "total_count": 105838,
+
     "total_count": 121913,
 
     "actions": [
 
     "actions": [
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684704,
+
             "time": 1555684877,
             "page": "\/api\/service",
+
             "page": "\/api\/notification",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 95: Line 97:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 117: Line 119:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49746",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
 
                 "QUERY_STRING": "",
 
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/service\/timezone",
+
                 "REQUEST_URI": "\/api\/notification\/count",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/service\/timezone",
+
                 "PATH_INFO": "\/notification\/count",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/timezone",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
                 "PHP_SELF": "\/api\/service\/timezone",
+
                 "PHP_SELF": "\/api\/notification\/count",
                 "REQUEST_TIME_FLOAT": "1555684704.83",
+
                 "REQUEST_TIME_FLOAT": "1555684877.228",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684877"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "timezone",
+
                 "resource": "count",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "service"
+
                 "collection": "notification"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "timezone",
+
                 "view": "count",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "timezone",
+
                 "api_resource": "count",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "service"
+
                 "api_collection": "notification"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "timezone",
+
             "view": "count",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:24",
+
             "date": "2019-04-19 10:41:17",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684704,
+
             "time": 1555684877,
 
             "page": "\/api\/report",
 
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
Line 163: Line 165:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 185: Line 187:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49738",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
 
                 "QUERY_STRING": "",
 
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/widgets",
+
                 "REQUEST_URI": "\/api\/report\/hit-totals",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/widgets",
+
                 "PATH_INFO": "\/report\/hit-totals",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widgets",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
                 "PHP_SELF": "\/api\/report\/widgets",
+
                 "PHP_SELF": "\/api\/report\/hit-totals",
                 "REQUEST_TIME_FLOAT": "1555684704.881",
+
                 "REQUEST_TIME_FLOAT": "1555684877.458",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684877"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "widgets",
+
                 "resource": "hit-totals",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
Line 207: Line 209:
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "widgets",
+
                 "view": "hit-totals",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "widgets",
+
                 "api_resource": "hit-totals",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
Line 216: Line 218:
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "widgets",
+
             "view": "hit-totals",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:24",
+
             "date": "2019-04-19 10:41:17",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684704,
+
             "time": 1555684877,
 
             "page": "\/api\/affiliate",
 
             "page": "\/api\/affiliate",
 
             "SERVER": {
 
             "SERVER": {
Line 231: Line 233:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 253: Line 255:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49740",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=join_date+desc",
                 "REQUEST_URI": "\/api\/affiliate\/current",
+
                 "REQUEST_URI": "\/api\/affiliate\/search?start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=join_date+desc",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/affiliate\/current",
+
                 "PATH_INFO": "\/affiliate\/search",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
                 "PHP_SELF": "\/api\/affiliate\/current",
+
                 "PHP_SELF": "\/api\/affiliate\/search",
                 "REQUEST_TIME_FLOAT": "1555684704.892",
+
                 "REQUEST_TIME_FLOAT": "1555684877.695",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684877"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "current",
+
                 "resource": "search",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
Line 275: Line 277:
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "current",
+
                "start": "0",
 +
                "count": "10",
 +
                "as_array": "1",
 +
                "widget": "1",
 +
                "orderby": "join_date desc",
 +
                 "view": "search",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "current",
+
                 "api_resource": "search",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
Line 284: Line 291:
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "current",
+
             "view": "search",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:24",
+
             "date": "2019-04-19 10:41:17",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684704,
+
             "time": 1555684877,
             "page": "\/api\/report",
+
             "page": "\/api\/member",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 299: Line 306:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 321: Line 328:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49742",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=m.joined%20DESC",
                 "REQUEST_URI": "\/api\/report\/groups",
+
                 "REQUEST_URI": "\/api\/member\/search?start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=m.joined%20DESC",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/groups",
+
                 "PATH_INFO": "\/member\/search",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/groups",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/member\/search",
                 "PHP_SELF": "\/api\/report\/groups",
+
                 "PHP_SELF": "\/api\/member\/search",
                 "REQUEST_TIME_FLOAT": "1555684704.887",
+
                 "REQUEST_TIME_FLOAT": "1555684877.863",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684877"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "groups",
+
                 "resource": "search",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "report"
+
                 "collection": "member"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "groups",
+
                "start": "0",
 +
                "count": "10",
 +
                "as_array": "1",
 +
                "widget": "1",
 +
                "orderby": "m.joined DESC",
 +
                 "view": "search",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "groups",
+
                 "api_resource": "search",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "report"
+
                 "api_collection": "member"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "groups",
+
             "view": "search",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:24",
+
             "date": "2019-04-19 10:41:17",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684877,
             "page": "\/api\/report",
+
             "page": "\/api\/affiliate",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 367: Line 379:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 389: Line 401:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49744",
+
                 "REMOTE_PORT": "50832",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
 
                 "QUERY_STRING": "",
 
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/widget-info",
+
                 "REQUEST_URI": "\/api\/affiliate\/override",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/widget-info",
+
                 "PATH_INFO": "\/affiliate\/override",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widget-info",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
                 "PHP_SELF": "\/api\/report\/widget-info",
+
                 "PHP_SELF": "\/api\/affiliate\/override",
                 "REQUEST_TIME_FLOAT": "1555684704.88",
+
                 "REQUEST_TIME_FLOAT": "1555684877.914",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684877"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "widget-info",
+
                 "resource": "override",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "report"
+
                 "collection": "affiliate"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "widget-info",
+
                 "view": "override",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "widget-info",
+
                 "api_resource": "override",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "report"
+
                 "api_collection": "affiliate"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "widget-info",
+
             "view": "override",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:17",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
             "page": "\/api\/service",
+
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 435: Line 447:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 457: Line 469:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49746",
+
                 "REMOTE_PORT": "50832",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=site_performance",
                 "REQUEST_URI": "\/api\/service\/project",
+
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=site_performance",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/service\/project",
+
                 "PATH_INFO": "\/report\/report-widget",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/project",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                 "PHP_SELF": "\/api\/service\/project",
+
                 "PHP_SELF": "\/api\/report\/report-widget",
                 "REQUEST_TIME_FLOAT": "1555684704.95",
+
                 "REQUEST_TIME_FLOAT": "1555684878.093",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "project",
+
                 "resource": "report-widget",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "service"
+
                 "collection": "report"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "project",
+
                "report": "profit_loss",
 +
                "report_widget": "site_performance",
 +
                 "view": "report-widget",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "project",
+
                 "api_resource": "report-widget",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "service"
+
                 "api_collection": "report"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "project",
+
             "view": "report-widget",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
             "page": "\/api\/affiliate",
+
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 503: Line 517:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 525: Line 539:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49748",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=program_performance",
                 "REQUEST_URI": "\/api\/affiliate\/current-permissions",
+
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=program_performance",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/affiliate\/current-permissions",
+
                 "PATH_INFO": "\/report\/report-widget",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current-permissions",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                 "PHP_SELF": "\/api\/affiliate\/current-permissions",
+
                 "PHP_SELF": "\/api\/report\/report-widget",
                 "REQUEST_TIME_FLOAT": "1555684704.83",
+
                 "REQUEST_TIME_FLOAT": "1555684878.145",
                 "REQUEST_TIME": "1555684704"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "current-permissions",
+
                 "resource": "report-widget",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "affiliate"
+
                 "collection": "report"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "current-permissions",
+
                "report": "profit_loss",
 +
                "report_widget": "program_performance",
 +
                 "view": "report-widget",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "current-permissions",
+
                 "api_resource": "report-widget",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "affiliate"
+
                 "api_collection": "report"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "current-permissions",
+
             "view": "report-widget",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
             "page": "\/api\/message",
+
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 571: Line 587:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
+
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 
                 "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
Line 593: Line 609:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49740",
+
                 "REMOTE_PORT": "50832",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "count=10&amp;widget=site_performance&amp;view=site&amp;period=0&amp;order=join_hits&amp;direction=1",
                 "REQUEST_URI": "\/api\/message\/count",
+
                 "REQUEST_URI": "\/api\/report\/profit-loss?count=10&amp;widget=site_performance&amp;view=site&amp;period=0&amp;order=join_hits&amp;direction=1",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/message\/count",
+
                 "PATH_INFO": "\/report\/profit-loss",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/message\/count",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                 "PHP_SELF": "\/api\/message\/count",
+
                 "PHP_SELF": "\/api\/report\/profit-loss",
                 "REQUEST_TIME_FLOAT": "1555684705.009",
+
                 "REQUEST_TIME_FLOAT": "1555684878.16",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "count",
+
                 "resource": "profit-loss",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "message"
+
                 "collection": "report"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "count",
+
                "count": "10",
 +
                "widget": "site_performance",
 +
                 "view": "profit-loss",
 +
                "period": "0",
 +
                "order": "join_hits",
 +
                "direction": "1",
 +
                "params_view": "site",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "count",
+
                 "api_resource": "profit-loss",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "message"
+
                 "api_collection": "report"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "count",
+
             "view": "profit-loss",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
             "page": "\/api\/notification",
+
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 639: Line 661:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 661: Line 683:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49738",
+
                 "REMOTE_PORT": "50833",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=affiliate_performance",
                 "REQUEST_URI": "\/api\/notification\/count",
+
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=affiliate_performance",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/notification\/count",
+
                 "PATH_INFO": "\/report\/report-widget",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                 "PHP_SELF": "\/api\/notification\/count",
+
                 "PHP_SELF": "\/api\/report\/report-widget",
                 "REQUEST_TIME_FLOAT": "1555684705.01",
+
                 "REQUEST_TIME_FLOAT": "1555684878.194",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "count",
+
                 "resource": "report-widget",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "notification"
+
                 "collection": "report"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "count",
+
                "report": "profit_loss",
 +
                "report_widget": "affiliate_performance",
 +
                 "view": "report-widget",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "count",
+
                 "api_resource": "report-widget",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "notification"
+
                 "api_collection": "report"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "count",
+
             "view": "report-widget",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
 
             "page": "\/api\/report",
 
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
Line 707: Line 731:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 729: Line 753:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49742",
+
                 "REMOTE_PORT": "50831",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "",
+
                 "QUERY_STRING": "count=10&amp;widget=program_performance&amp;view=program&amp;period=0&amp;order=join_hits&amp;direction=1",
                 "REQUEST_URI": "\/api\/report\/hit-totals",
+
                 "REQUEST_URI": "\/api\/report\/profit-loss?count=10&amp;widget=program_performance&amp;view=program&amp;period=0&amp;order=join_hits&amp;direction=1",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/hit-totals",
+
                 "PATH_INFO": "\/report\/profit-loss",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                 "PHP_SELF": "\/api\/report\/hit-totals",
+
                 "PHP_SELF": "\/api\/report\/profit-loss",
                 "REQUEST_TIME_FLOAT": "1555684705.076",
+
                 "REQUEST_TIME_FLOAT": "1555684878.207",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "hit-totals",
+
                 "resource": "profit-loss",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
Line 751: Line 775:
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "view": "hit-totals",
+
                "count": "10",
 +
                "widget": "program_performance",
 +
                 "view": "profit-loss",
 +
                "period": "0",
 +
                "order": "join_hits",
 +
                "direction": "1",
 +
                "params_view": "program",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "hit-totals",
+
                 "api_resource": "profit-loss",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
Line 760: Line 790:
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "hit-totals",
+
             "view": "profit-loss",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684878,
 
             "page": "\/api\/report",
 
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
Line 775: Line 805:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 797: Line 827:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49748",
+
                 "REMOTE_PORT": "50833",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=overview",
+
                 "QUERY_STRING": "count=10&amp;widget=affiliate_performance&amp;view=login&amp;period=0&amp;order=join_hits&amp;direction=1",
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=overview",
+
                 "REQUEST_URI": "\/api\/report\/profit-loss?count=10&amp;widget=affiliate_performance&amp;view=login&amp;period=0&amp;order=join_hits&amp;direction=1",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/report-widget",
+
                 "PATH_INFO": "\/report\/profit-loss",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                 "PHP_SELF": "\/api\/report\/report-widget",
+
                 "PHP_SELF": "\/api\/report\/profit-loss",
                 "REQUEST_TIME_FLOAT": "1555684705.095",
+
                 "REQUEST_TIME_FLOAT": "1555684878.264",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684878"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "report-widget",
+
                 "resource": "profit-loss",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
Line 819: Line 849:
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "report": "profit_loss",
+
                 "count": "10",
                 "report_widget": "overview",
+
                 "widget": "affiliate_performance",
                 "view": "report-widget",
+
                 "view": "profit-loss",
 +
                "period": "0",
 +
                "order": "join_hits",
 +
                "direction": "1",
 +
                "params_view": "login",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "report-widget",
+
                 "api_resource": "profit-loss",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
Line 830: Line 864:
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "report-widget",
+
             "view": "profit-loss",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:18",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684884,
             "page": "\/api\/affiliate",
+
             "page": "\/api\/message",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 849: Line 883:
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
Line 867: Line 901:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49746",
+
                 "REMOTE_PORT": "49826",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "as_array=1&amp;loginid=1",
+
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/affiliate\/search?as_array=1&amp;loginid=1",
+
                 "REQUEST_URI": "\/api\/message\/count",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/affiliate\/search",
+
                 "PATH_INFO": "\/message\/count",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/message\/count",
                 "PHP_SELF": "\/api\/affiliate\/search",
+
                 "PHP_SELF": "\/api\/message\/count",
                 "REQUEST_TIME_FLOAT": "1555684705.063",
+
                 "REQUEST_TIME_FLOAT": "1555684884.965",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684884"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "search",
+
                 "resource": "count",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "affiliate"
+
                 "collection": "message"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                "as_array": "1",
+
                 "view": "count",
                "loginid": "1",
 
                 "view": "search",
 
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "search",
+
                 "api_resource": "count",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "affiliate"
+
                 "api_collection": "message"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "search",
+
             "view": "count",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:24",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684885,
             "page": "\/api\/report",
+
             "page": "\/api\/notification",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 919: Line 951:
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
Line 937: Line 969:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49738",
+
                 "REMOTE_PORT": "49826",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "start=Sat,%2006%20Apr%202019%2000:00:00&amp;widget=overview&amp;view=date&amp;period=8&amp;end=Fri,%2012%20Apr%202019%2023:59:59",
+
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/profit-loss?start=Sat,%2006%20Apr%202019%2000:00:00&amp;widget=overview&amp;view=date&amp;period=8&amp;end=Fri,%2012%20Apr%202019%2023:59:59",
+
                 "REQUEST_URI": "\/api\/notification\/count",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/profit-loss",
+
                 "PATH_INFO": "\/notification\/count",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
                 "PHP_SELF": "\/api\/report\/profit-loss",
+
                 "PHP_SELF": "\/api\/notification\/count",
                 "REQUEST_TIME_FLOAT": "1555684705.135",
+
                 "REQUEST_TIME_FLOAT": "1555684885.934",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684885"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "profit-loss",
+
                 "resource": "count",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "report"
+
                 "collection": "notification"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                "start": "Sat, 06 Apr 2019 00:00:00",
+
                 "view": "count",
                "widget": "overview",
 
                 "view": "profit-loss",
 
                "period": "8",
 
                "end": "Fri, 12 Apr 2019 23:59:59",
 
                "params_view": "date",
 
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "profit-loss",
+
                 "api_resource": "count",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "report"
+
                 "api_collection": "notification"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "profit-loss",
+
             "view": "count",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:25",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684886,
             "page": "\/api\/report",
+
             "page": "\/api\/affiliate",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 992: Line 1,019:
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_NATS_ENTITY_DECODE": "1",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                 "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
Line 1,010: Line 1,037:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49740",
+
                 "REMOTE_PORT": "49826",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "start=Sat,%2013%20Apr%202019%2000:00:00&amp;widget=overview&amp;view=date&amp;period=8&amp;end=Fri,%2019%20Apr%202019%2023:59:59",
+
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/profit-loss?start=Sat,%2013%20Apr%202019%2000:00:00&amp;widget=overview&amp;view=date&amp;period=8&amp;end=Fri,%2019%20Apr%202019%2023:59:59",
+
                 "REQUEST_URI": "\/api\/affiliate\/override",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/profit-loss",
+
                 "PATH_INFO": "\/affiliate\/override",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
                 "PHP_SELF": "\/api\/report\/profit-loss",
+
                 "PHP_SELF": "\/api\/affiliate\/override",
                 "REQUEST_TIME_FLOAT": "1555684705.112",
+
                 "REQUEST_TIME_FLOAT": "1555684886.937",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684886"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "profit-loss",
+
                 "resource": "override",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "report"
+
                 "collection": "affiliate"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                "start": "Sat, 13 Apr 2019 00:00:00",
+
                 "view": "override",
                "widget": "overview",
 
                 "view": "profit-loss",
 
                "period": "8",
 
                "end": "Fri, 19 Apr 2019 23:59:59",
 
                "params_view": "date",
 
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "profit-loss",
+
                 "api_resource": "override",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "report"
+
                 "api_collection": "affiliate"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "profit-loss",
+
             "view": "override",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:26",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684892,
 
             "page": "\/api\/report",
 
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
Line 1,061: Line 1,083:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 1,083: Line 1,105:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49742",
+
                 "REMOTE_PORT": "50835",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "start=0&amp;widget=engagement&amp;view=date&amp;total_only=1&amp;period=15",
+
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/profit-loss?start=0&amp;widget=engagement&amp;view=date&amp;total_only=1&amp;period=15",
+
                 "REQUEST_URI": "\/api\/report\/hit-totals",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/profit-loss",
+
                 "PATH_INFO": "\/report\/hit-totals",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
                 "PHP_SELF": "\/api\/report\/profit-loss",
+
                 "PHP_SELF": "\/api\/report\/hit-totals",
                 "REQUEST_TIME_FLOAT": "1555684705.204",
+
                 "REQUEST_TIME_FLOAT": "1555684892.483",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684892"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "profit-loss",
+
                 "resource": "hit-totals",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
Line 1,105: Line 1,127:
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                "start": "0",
+
                 "view": "hit-totals",
                "widget": "engagement",
 
                 "view": "profit-loss",
 
                "total_only": "1",
 
                "period": "15",
 
                "params_view": "date",
 
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "profit-loss",
+
                 "api_resource": "hit-totals",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
Line 1,119: Line 1,136:
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "profit-loss",
+
             "view": "hit-totals",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:32",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684907,
 
             "page": "\/api\/report",
 
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
Line 1,134: Line 1,151:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 1,156: Line 1,173:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49748",
+
                 "REMOTE_PORT": "50838",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
Line 1,166: Line 1,183:
 
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
 
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
 
                 "PHP_SELF": "\/api\/report\/report-widget",
 
                 "PHP_SELF": "\/api\/report\/report-widget",
                 "REQUEST_TIME_FLOAT": "1555684705.199",
+
                 "REQUEST_TIME_FLOAT": "1555684907.091",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684907"
 
             },
 
             },
 
             "API": {
 
             "API": {
Line 1,191: Line 1,208:
 
             "view": "report-widget",
 
             "view": "report-widget",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:47",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684907,
             "page": "\/api\/affiliate",
+
             "page": "\/api\/report",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 1,204: Line 1,221:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 1,226: Line 1,243:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49744",
+
                 "REMOTE_PORT": "50839",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "loginid=1&amp;set_group=15",
+
                 "QUERY_STRING": "start=0&amp;widget=engagement&amp;view=date&amp;total_only=1&amp;period=15",
                 "REQUEST_URI": "\/api\/affiliate\/settings?loginid=1&amp;set_group=15",
+
                 "REQUEST_URI": "\/api\/report\/profit-loss?start=0&amp;widget=engagement&amp;view=date&amp;total_only=1&amp;period=15",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/affiliate\/settings",
+
                 "PATH_INFO": "\/report\/profit-loss",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/settings",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                 "PHP_SELF": "\/api\/affiliate\/settings",
+
                 "PHP_SELF": "\/api\/report\/profit-loss",
                 "REQUEST_TIME_FLOAT": "1555684705.045",
+
                 "REQUEST_TIME_FLOAT": "1555684907.094",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684907"
             },
+
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "settings",
+
                 "resource": "profit-loss",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "affiliate"
+
                 "collection": "report"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                 "loginid": "1",
+
                 "start": "0",
                 "set_group": "15",
+
                "widget": "engagement",
                 "view": "settings",
+
                "view": "profit-loss",
 +
                "total_only": "1",
 +
                 "period": "15",
 +
                 "params_view": "date",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "settings",
+
                 "api_resource": "profit-loss",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
                 "api_collection": "affiliate"
+
                 "api_collection": "report"
 
             },
 
             },
 
             "action": false,
 
             "action": false,
             "view": "settings",
+
             "view": "profit-loss",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:47",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         },
 
         },
 
         {
 
         {
 
             "loginid": "1",
 
             "loginid": "1",
             "time": 1555684705,
+
             "time": 1555684907,
             "page": "\/api\/report",
+
             "page": "\/api\/message",
 
             "SERVER": {
 
             "SERVER": {
 
                 "GEOIP_ADDR": "75.99.182.234",
 
                 "GEOIP_ADDR": "75.99.182.234",
Line 1,274: Line 1,294:
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "GEOIP_COUNTRY_NAME": "United States",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                 "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                 "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
+
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 
                 "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
Line 1,296: Line 1,316:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49746",
+
                 "REMOTE_PORT": "50839",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=site_performance",
+
                 "QUERY_STRING": "",
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=site_performance",
+
                 "REQUEST_URI": "\/api\/message\/count",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
                 "PATH_INFO": "\/report\/report-widget",
+
                 "PATH_INFO": "\/message\/count",
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
+
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/message\/count",
                 "PHP_SELF": "\/api\/report\/report-widget",
+
                 "PHP_SELF": "\/api\/message\/count",
                 "REQUEST_TIME_FLOAT": "1555684705.237",
+
                 "REQUEST_TIME_FLOAT": "1555684907.221",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684907"
 
             },
 
             },
 
             "API": {
 
             "API": {
 
                 "affiliate_loginid": "1",
 
                 "affiliate_loginid": "1",
 
                 "method": "GET",
 
                 "method": "GET",
                 "resource": "report-widget",
+
                 "resource": "count",
 
                 "version": 1,
 
                 "version": 1,
 
                 "source": "UI",
 
                 "source": "UI",
                 "collection": "report"
+
                 "collection": "message"
 
             },
 
             },
 
             "GET": {
 
             "GET": {
                "report": "profit_loss",
+
                 "view": "count",
                "report_widget": "site_performance",
 
                 "view": "report-widget",
 
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
 
                 "api_method": "GET",
 
                 "api_method": "GET",
                 "api_resource": "report-widget",
+
                 "api_resource": "count",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "message"
 +
            },
 +
            "action": false,
 +
            "view": "count",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:41:47",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684907,
 +
            "page": "\/api\/notification",
 +
            "SERVER": {
 +
                "GEOIP_ADDR": "75.99.182.234",
 +
                "GEOIP_CONTINENT_CODE": "NA",
 +
                "GEOIP_COUNTRY_CODE": "US",
 +
                "GEOIP_COUNTRY_NAME": "United States",
 +
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50838",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/notification\/count",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/notification\/count",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
 +
                "PHP_SELF": "\/api\/notification\/count",
 +
                "REQUEST_TIME_FLOAT": "1555684907.221",
 +
                "REQUEST_TIME": "1555684907"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "count",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "notification"
 +
            },
 +
            "GET": {
 +
                "view": "count",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "count",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "notification"
 +
            },
 +
            "action": false,
 +
            "view": "count",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:41:47",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684907,
 +
            "page": "\/api\/report",
 +
            "SERVER": {
 +
                "GEOIP_ADDR": "75.99.182.234",
 +
                "GEOIP_CONTINENT_CODE": "NA",
 +
                "GEOIP_COUNTRY_CODE": "US",
 +
                "GEOIP_COUNTRY_NAME": "United States",
 +
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50838",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/report\/hit-totals",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/report\/hit-totals",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
 +
                "PHP_SELF": "\/api\/report\/hit-totals",
 +
                "REQUEST_TIME_FLOAT": "1555684907.458",
 +
                "REQUEST_TIME": "1555684907"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "hit-totals",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "view": "hit-totals",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "hit-totals",
 
                 "api_version": 1,
 
                 "api_version": 1,
 
                 "api_source": "UI",
 
                 "api_source": "UI",
 
                 "api_collection": "report"
 
                 "api_collection": "report"
             },
+
             },
             "action": false,
+
             "action": false,
             "view": "report-widget",
+
             "view": "hit-totals",
             "ip": "75.99.182.234",
+
            "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
            "date": "2019-04-19 10:41:47",
             "username": "productsupport"
+
            "username": "productsupport"
         },
+
        },
         {
+
        {
             "loginid": "1",
+
            "loginid": "1",
             "time": 1555684705,
+
            "time": 1555684907,
             "page": "\/api\/report",
+
            "page": "\/api\/affiliate",
             "SERVER": {
+
            "SERVER": {
                 "GEOIP_ADDR": "75.99.182.234",
+
                "GEOIP_ADDR": "75.99.182.234",
                 "GEOIP_CONTINENT_CODE": "NA",
+
                "GEOIP_CONTINENT_CODE": "NA",
                 "GEOIP_COUNTRY_CODE": "US",
+
                "GEOIP_COUNTRY_CODE": "US",
                 "GEOIP_COUNTRY_NAME": "United States",
+
                "GEOIP_COUNTRY_NAME": "United States",
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
+
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
+
                "HTTP_CONNECTION": "keep-alive",
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
+
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
+
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50838",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=join_date+desc",
 +
                "REQUEST_URI": "\/api\/affiliate\/search?start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=join_date+desc",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/search",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
 +
                "PHP_SELF": "\/api\/affiliate\/search",
 +
                "REQUEST_TIME_FLOAT": "1555684907.695",
 +
                "REQUEST_TIME": "1555684907"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "search",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "start": "0",
 +
                "count": "10",
 +
                "as_array": "1",
 +
                "widget": "1",
 +
                "orderby": "join_date desc",
 +
                "view": "search",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "search",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "affiliate"
 +
            },
 +
            "action": false,
 +
            "view": "search",
 +
             "ip": "75.99.182.234",
 +
             "date": "2019-04-19 10:41:47",
 +
             "username": "productsupport"
 +
         },
 +
         {
 +
             "loginid": "1",
 +
             "time": 1555684907,
 +
             "page": "\/api\/member",
 +
             "SERVER": {
 +
                 "GEOIP_ADDR": "75.99.182.234",
 +
                 "GEOIP_CONTINENT_CODE": "NA",
 +
                 "GEOIP_COUNTRY_CODE": "US",
 +
                 "GEOIP_COUNTRY_NAME": "United States",
 +
                 "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                 "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50838",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=m.joined%20DESC",
 +
                "REQUEST_URI": "\/api\/member\/search?start=0&amp;count=10&amp;as_array=1&amp;widget=1&amp;orderby=m.joined%20DESC",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/member\/search",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/member\/search",
 +
                "PHP_SELF": "\/api\/member\/search",
 +
                "REQUEST_TIME_FLOAT": "1555684907.87",
 +
                "REQUEST_TIME": "1555684907"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "search",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "member"
 +
            },
 +
            "GET": {
 +
                "start": "0",
 +
                "count": "10",
 +
                "as_array": "1",
 +
                "widget": "1",
 +
                "orderby": "m.joined DESC",
 +
                "view": "search",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "search",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "member"
 +
            },
 +
            "action": false,
 +
            "view": "search",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:41:47",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684907,
 +
            "page": "\/api\/affiliate",
 +
            "SERVER": {
 +
                "GEOIP_ADDR": "75.99.182.234",
 +
                "GEOIP_CONTINENT_CODE": "NA",
 +
                "GEOIP_COUNTRY_CODE": "US",
 +
                "GEOIP_COUNTRY_NAME": "United States",
 +
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50839",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/affiliate\/override",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/override",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
 +
                "PHP_SELF": "\/api\/affiliate\/override",
 +
                "REQUEST_TIME_FLOAT": "1555684907.912",
 +
                "REQUEST_TIME": "1555684907"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "override",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "view": "override",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "override",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "affiliate"
 +
            },
 +
            "action": false,
 +
            "view": "override",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:41:47",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684908,
 +
            "page": "\/api\/report",
 +
            "SERVER": {
 +
                "GEOIP_ADDR": "75.99.182.234",
 +
                "GEOIP_CONTINENT_CODE": "NA",
 +
                "GEOIP_COUNTRY_CODE": "US",
 +
                "GEOIP_COUNTRY_NAME": "United States",
 +
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                 "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 +
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 +
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
 +
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
 +
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 +
                "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 +
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
 +
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
 +
                "SERVER_ADDR": "10.50.0.15",
 +
                "SERVER_PORT": "80",
 +
                "REMOTE_ADDR": "75.99.182.234",
 +
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "REQUEST_SCHEME": "http",
 +
                "CONTEXT_PREFIX": "",
 +
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
 +
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 +
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 +
                "REMOTE_PORT": "50839",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "report=profit_loss&amp;report_widget=site_performance",
 +
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=site_performance",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/report\/report-widget",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
 +
                "PHP_SELF": "\/api\/report\/report-widget",
 +
                "REQUEST_TIME_FLOAT": "1555684908.284",
 +
                "REQUEST_TIME": "1555684908"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "report-widget",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "report": "profit_loss",
 +
                "report_widget": "site_performance",
 +
                "view": "report-widget",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "report-widget",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "report"
 +
            },
 +
            "action": false,
 +
            "view": "report-widget",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:41:48",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684908,
 +
            "page": "\/api\/report",
 +
            "SERVER": {
 +
                "GEOIP_ADDR": "75.99.182.234",
 +
                "GEOIP_CONTINENT_CODE": "NA",
 +
                "GEOIP_COUNTRY_CODE": "US",
 +
                "GEOIP_COUNTRY_NAME": "United States",
 +
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
 +
                "HTTP_CONNECTION": "keep-alive",
 +
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
 +
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
 +
                "HTTP_X_NATS_ENTITY_DECODE": "1",
 +
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
 +
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
 
                 "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                 "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
+
                 "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
+
                 "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
 
                "HTTP_CONNECTION": "keep-alive",
 
                 "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
 
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
 
                 "SERVER_SIGNATURE": "&lt;address&gt;Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80&lt;\/address&gt;\n",
Line 1,366: Line 1,804:
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
 
                 "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                 "REMOTE_PORT": "49748",
+
                 "REMOTE_PORT": "50838",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "GATEWAY_INTERFACE": "CGI\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "SERVER_PROTOCOL": "HTTP\/1.1",
 
                 "REQUEST_METHOD": "GET",
 
                 "REQUEST_METHOD": "GET",
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=affiliate_performance",
+
                 "QUERY_STRING": "report=profit_loss&amp;report_widget=program_performance",
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=affiliate_performance",
+
                 "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=program_performance",
 
                 "SCRIPT_NAME": "\/api",
 
                 "SCRIPT_NAME": "\/api",
 
                 "PATH_INFO": "\/report\/report-widget",
 
                 "PATH_INFO": "\/report\/report-widget",
 
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
 
                 "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
 
                 "PHP_SELF": "\/api\/report\/report-widget",
 
                 "PHP_SELF": "\/api\/report\/report-widget",
                 "REQUEST_TIME_FLOAT": "1555684705.322",
+
                 "REQUEST_TIME_FLOAT": "1555684908.33",
                 "REQUEST_TIME": "1555684705"
+
                 "REQUEST_TIME": "1555684908"
 
             },
 
             },
 
             "API": {
 
             "API": {
Line 1,389: Line 1,827:
 
             "GET": {
 
             "GET": {
 
                 "report": "profit_loss",
 
                 "report": "profit_loss",
                 "report_widget": "affiliate_performance",
+
                 "report_widget": "program_performance",
 
                 "view": "report-widget",
 
                 "view": "report-widget",
 
                 "api_affiliate_loginid": "1",
 
                 "api_affiliate_loginid": "1",
Line 1,401: Line 1,839:
 
             "view": "report-widget",
 
             "view": "report-widget",
 
             "ip": "75.99.182.234",
 
             "ip": "75.99.182.234",
             "date": "2019-04-19 10:38:25",
+
             "date": "2019-04-19 10:41:48",
 
             "username": "productsupport"
 
             "username": "productsupport"
 
         }
 
         }
Line 1,424: Line 1,862:
 
$url = 'http://yourdomain.com'; //set your NATS URL here
 
$url = 'http://yourdomain.com'; //set your NATS URL here
  
$data = array(
+
$data = Array(
// Add API parameters here
+
'start' => 100,
 +
'count' => 25,
 +
'loginid' => 1,
 +
'start_date' => '2018-06-10',
 +
'end_date' => '2020-06-10',
 +
'has_view' => 1,
 
);
 
);
  
Line 1,467: Line 1,910:
 
</pre>
 
</pre>
  
[[Category:NATS4_REST_APIs]]
+
[[Category:NATS5_REST_APIs]]
[[Category:NATS4_REST_maintenance_Collection]]
+
[[Category:NATS5_REST_maintenance_Collection]]
 
[[Category:Autogenerated_Wiki_Article]]<!-- Remove this tag when customizing a wiki article. The article will no longer be automatically updated -->
 
[[Category:Autogenerated_Wiki_Article]]<!-- Remove this tag when customizing a wiki article. The article will no longer be automatically updated -->
 
[[Category:Autogenerated_Rest_Sample]]<!-- This article has a generated REST API Sample from our unit testing system. Also remove if customizing the wiki article -->
 
[[Category:Autogenerated_Rest_Sample]]<!-- This article has a generated REST API Sample from our unit testing system. Also remove if customizing the wiki article -->

Revision as of 15:44, 9 August 2019

NATS 5
Members Section
Members Management
Adding a Member
View Member Details
Restricted Values
OpenID Connect
Mod Auth OpenIDC
REST API
API Overview
API Best Practices
REST API PATH UPDATES
    Adtool
GET /adtool/admin
GET /adtool/adtools
GET /adtool/adtool
GET /adtool/adtool-rules
GET /adtool/adtool-rule
GET /adtool/categories
GET /adtool/field-options
GET /adtool/field-types
GET /adtool/groups
GET /adtool/search
GET /adtool/templates
GET /adtool/types
GET /adtool/type
POST /adtool/adtool
POST /adtool/adtool-rule
POST /adtool/category
POST /adtool/field
POST /adtool/field-option
POST /adtool/group
POST /adtool/import
POST /adtool/type
PATCH /adtool/adtool
PATCH /adtool/adtool-group
PATCH /adtool/adtool-rule
PATCH /adtool/category
PATCH /adtool/field
PATCH /adtool/field-option
PATCH /adtool/group
PATCH /adtool/move
PATCH /adtool/restore-adtool
PATCH /adtool/restore-category
PATCH /adtool/restore-field
PATCH /adtool/restore-field-option
PATCH /adtool/restore-type
PATCH /adtool/type
DELETE /adtool/adtool
DELETE /adtool/adtool-rule
DELETE /adtool/category
DELETE /adtool/field
DELETE /adtool/field-option
DELETE /adtool/group
DELETE /adtool/type
    Affiliate
DELETE /affiliate/account-rep
DELETE /affiliate/account-type
DELETE /affiliate/affiliate
DELETE /affiliate/doc
DELETE /affiliate/group
DELETE /affiliate/permissions
GET /affiliate/account-changes
GET /affiliate/account-types
GET /affiliate/admin-settings
GET /affiliate/campaigns
GET /affiliate/current
GET /affiliate/current-permissions
GET /affiliate/docs
GET /affiliate/doc
GET /affiliate/groups
GET /affiliate/group
GET /affiliate/hits
GET /affiliate/link-styles
GET /affiliate/loginids
GET /affiliate/loginlog
GET /affiliate/manual-payout
GET /affiliate/news-sections
GET /affiliate/notes
GET /affiliate/notices
GET /affiliate/override
GET /affiliate/payout
GET /affiliate/payment-periods
GET /affiliate/payvia-types
GET /affiliate/payvia-type
GET /affiliate/permissions
GET /affiliate/programcampaigns
GET /affiliate/referrer
GET /affiliate/referring-urls
GET /affiliate/reps
GET /affiliate/rest-methods
GET /affiliate/search
GET /affiliate/search-limited
GET /affiliate/settings
GET /affiliate/skins
GET /affiliate/soap-functions
GET /affiliate/status
PATCH /affiliate/adminsettings
PATCH /affiliate/account-change
PATCH /affiliate/account-type
PATCH /affiliate/account-type-permissions
PATCH /affiliate/admin-setting
PATCH /affiliate/affiliate-account-type
PATCH /affiliate/affiliate-group
PATCH /affiliate/allsettings
PATCH /affiliate/account-rep
PATCH /affiliate/avatar
PATCH /affiliate/customs
PATCH /affiliate/defaults
PATCH /affiliate/details
PATCH /affiliate/override
PATCH /affiliate/password
PATCH /affiliate/payment-period
PATCH /affiliate/payvia
PATCH /affiliate/payvia-info
PATCH /affiliate/permissions
PATCH /affiliate/referrer
PATCH /affiliate/reset-api
PATCH /affiliate/reset-rss
PATCH /affiliate/reset-tos
PATCH /affiliate/rest-permissions
PATCH /affiliate/restore
PATCH /affiliate/restore-account-type
PATCH /affiliate/settings
PATCH /affiliate/soap-permissions
PATCH /affiliate/status
POST /affiliate/account-type
POST /affiliate/add
POST /affiliate/doc
POST /affiliate/group
POST /affiliate/invoice
POST /affiliate/manual-sale
POST /affiliate/note
    Biller
GET /biller/available
GET /biller/partner-available
GET /biller/billerdata
GET /biller/cascades
GET /biller/cascades-available
GET /biller/cascade-count
GET /biller/cascade-history
GET /biller/cascade-rules
GET /biller/cascade-rule
GET /biller/cascade-step-count
GET /biller/cascade-steps
GET /biller/cascade-detail
GET /biller/cascade-list
GET /biller/count
GET /biller/detail
GET /biller/fees
GET /biller/partner-fees
GET /biller/last_poll
GET /biller/partner-last-poll
GET /biller/list
GET /biller/partner-detail
GET /biller/partner-list
GET /biller/partner-shortnames
GET /biller/process_types
GET /biller/partner-process-types
GET /biller/shortnames
GET /biller/transaction_types
GET /biller/partner-transaction-types
GET /biller/taxes
POST /biller/add
POST /biller/cascade
POST /biller/cascade-rule
POST /biller/cascade-step
POST /biller/partner
PATCH /biller/cascade
PATCH /biller/cascade-rule
PATCH /biller/cascade-step
PATCH /biller/cascade-steps-reorder
PATCH /biller/fee
PATCH /biller/partner-fee
PATCH /biller/restore
PATCH /biller/restore-cascade
PATCH /biller/restore-partner
PATCH /biller/setting
PATCH /biller/partner-setting
PATCH /biller/tax
DELETE /biller/biller
DELETE /biller/cascade
DELETE /biller/cascade-rule
DELETE /biller/cascade-step
DELETE /biller/fee
DELETE /biller/partner-fee
DELETE /biller/partner
DELETE /biller/tax
    Codes
GET /codes/affiliate-codes
GET /codes/decode
GET /codes/linkcodes
GET /codes/strack
    Config
DELETE /config/setting
GET /config/section
GET /config/sections
PATCH /config/affiliate_default
PATCH /config/section
    Include
DELETE /include/include
DELETE /include/step
GET /include/include
GET /include/includes
GET /include/templates
PATCH /include/include
PATCH /include/restore
PATCH /include/step
POST /include/include
POST /include/step
    Mailing
DELETE /mailing/mailing
DELETE /mailing/mailing-rule
DELETE /mailing/queue
GET /mailing/mailing
GET /mailing/mailings
GET /mailing/mailing-rules
GET /mailing/mailing-rule
GET /mailing/queue
GET /mailing/removelist
PATCH /mailing/mailing
PATCH /mailing/mailing-rule
PATCH /mailing/removelist
PATCH /mailing/removelist-queue
PATCH /mailing/resend-queue
PATCH /mailing/restore-queue
PATCH /mailing/send-mailing
PATCH /mailing/send-test-mailing
POST /mailing/mailing
POST /mailing/mailing-rule
POST /mailing/removelist
    Maintenance
DELETE /maintenance/log
DELETE /maintenance/cache
GET /maintenance/admin-actions
GET /maintenance/log
GET /maintenance/logs
GET /maintenance/nats
GET /maintenance/report
GET /maintenance/report-progress
GET /maintenance/reports
GET /maintenance/server
GET /maintenance/table
GET /maintenance/tables
GET /maintenance/table-clean-count
GET /maintenance/table-clean-progress
PATCH /maintenance/log
PATCH /maintenance/report
PATCH /maintenance/table
    Member
GET /member/available_flags
GET /member/encryptusername
GET /member/authstring
GET /member/details
GET /member/flags
GET /member/loginlog
GET /member/matching
GET /member/notes
GET /member/notices
GET /member/restricted-values
GET /member/search
GET /member/suggestedcanceloffers
GET /member/surfer-actions
PATCH /member/details
PATCH /member/expiration
PATCH /member/expiremanual
PATCH /member/resend-transaction-email
PATCH /member/resend-transaction-postback
PATCH /member/restricted-value
PATCH /member/forget
PATCH /member/lock
PATCH /member/unlock
POST /member/flag
POST /member/login
POST /member/note
POST /member/restricted-value
DELETE /member/flag
DELETE /member/restricted-value
    Message
DELETE /message/message
DELETE /message/permanent
GET /message/count
GET /message/messages
GET /message/view
PATCH /message/read
PATCH /message/unread
PATCH /message/undelete
POST /message/message
    News
DELETE /news/entry
DELETE /news/section
GET /news/entry
GET /news/news
GET /news/sections
PATCH /news/entry
POST /news/entry
POST /news/section
    Notification
DELETE /notification/notification
DELETE /notification/permanent
GET /notification/count
GET /notification/notifications
GET /notification/view
PATCH /notification/read
PATCH /notification/unread
PATCH /notification/undelete
    Option
GET /option/options
GET /option/rule
PATCH /option/rule
PATCH /option/text
POST /option/rule
    Payment
DELETE /payment/invoice
DELETE /payment/payout-period
DELETE /payment/payvia-field
DELETE /payment/payvia-field-mc
DELETE /payment/payvia-rule
GET /payment/dump-format
GET /payment/dump-formats
GET /payment/invoices
GET /payment/payments
GET /payment/payment-dumps
GET /payment/payment-dump
GET /payment/payment-search
GET /payment/payvia
GET /payment/payvias
GET /payment/payvia-fields
GET /payment/payvia-field-mcs
GET /payment/payout-period
GET /payment/payout-periods
GET /payment/payvia-rules
GET /payment/payvia-rule
GET /payment/payviarule
PATCH /payment/copy-dump-format
PATCH /payment/default-payout-period
PATCH /payment/dump-format
PATCH /payment/duplicate-payvia
PATCH /payment/invoice
PATCH /payment/payment
PATCH /payment/payment-paid
PATCH /payment/payment-store
PATCH /payment/payment-unstore
PATCH /payment/payments
PATCH /payment/payments-unstore
PATCH /payment/payout-period
PATCH /payment/payout-period-affiliates
PATCH /payment/payvia
PATCH /payment/payvia-field
PATCH /payment/payvia-fields-reorder
PATCH /payment/payvia-field-mc
PATCH /payment/payvia-field-mcs-reorder
PATCH /payment/payvia-rule
PATCH /payment/payviarule
PATCH /payment/restore-payout-period
PATCH /payment/restore-payvia-field
PATCH /payment/restore-payvia-field-mc
POST /payment/check-dump
POST /payment/dump-format
POST /payment/import-dump
POST /payment/invoice
POST /payment/payout-period
POST /payment/payvia
POST /payment/payvia-field
POST /payment/payvia-field-mc
POST /payment/payvia-rule
    Program
DELETE /program/program
DELETE /program/payout-change
DELETE /program/payout-change-tier
GET /program/additional-payout-change-targets
GET /program/affiliate-available
GET /program/detail
GET /program/list
GET /program/options
GET /program/payout-changes
GET /program/redirect-available
GET /program/sites
GET /program/tours
GET /program/types
PATCH /program/default_payout
PATCH /program/details
PATCH /program/disable_affiliate
PATCH /program/disable_tour
PATCH /program/enable_affiliate
PATCH /program/enable_site
PATCH /program/enable_tour
PATCH /program/move-payout-change
PATCH /program/payout-change
PATCH /program/payout-change-tier
POST /program/new
POST /program/payout-change
POST /program/payout-change-tier
    Report
GET /report/affiliate-ratios
GET /report/hits
GET /report/hit-totals
GET /report/profitloss
GET /report/profit-loss
GET /report/fields
GET /report/focus
GET /report/focuses
GET /report/groups
GET /report/perspective
GET /report/perspectives
GET /report/report
GET /report/subscription
GET /report/surfer
GET /report/surferaction
GET /report/transactionpayouts
GET /report/transactions
GET /report/transaction
GET /report/report-widget
GET /report/widgets
GET /report/widget
GET /report/widget-info
GET /report/views
POST /report/focus
POST /report/group
POST /report/perspective
PATCH /report/focus
PATCH /report/focus-enabled
PATCH /report/focus-default
PATCH /report/focuses-reorder
PATCH /report/perspective
PATCH /report/perspective-group
PATCH /report/report-widget
PATCH /report/widget
DELETE /report/focus
    Reward
DELETE /reward/category
DELETE /reward/purchase
DELETE /reward/point
DELETE /reward/reward
GET /reward/categories
GET /reward/points
GET /reward/purchases
GET /reward/rewards
PATCH /reward/move-point
PATCH /reward/point
PATCH /reward/reward
PATCH /reward/ship-purchase
PATCH /reward/unship-purchase
POST /reward/category
POST /reward/point
POST /reward/reward
    Service
GET /service/check-functions
GET /service/condition
GET /service/countries
GET /service/country
GET /service/datetime
GET /service/languages
GET /service/periods
GET /service/ping
GET /service/project
GET /service/rule-condition-data
GET /service/rule-info
GET /service/stats-breakdowns
GET /service/timezone
GET /service/timestamp
POST /service/sendemail
    Site
GET /site/base-templates
GET /site/billers
GET /site/cookies
GET /site/coupon
GET /site/coupons
GET /site/coupon-revisions
GET /site/email-settings
GET /site/groups
GET /site/option
GET /site/options
GET /site/options-available
GET /site/option-fields
GET /site/option-rules
GET /site/option-rule
GET /site/option-type
GET /site/option-types
GET /site/programs
GET /site/redirect
GET /site/redirects
GET /site/redirect-rules
GET /site/redirect-rule
GET /site/site-list
GET /site/site
GET /site/site-notices
GET /site/site-partner
GET /site/site-partners
GET /site/site-type
GET /site/sites
GET /site/template
GET /site/templates
GET /site/template-sections
GET /site/template-sites
GET /site/tour
GET /site/tours
GET /site/tour-emails
GET /site/tour-notices
POST /site/coupon
POST /site/group
POST /site/option
POST /site/option-rule
POST /site/redirect
POST /site/redirect-rule
POST /site/site-partner
POST /site/site-tour
POST /site/copy-template
POST /site/tour
PATCH /site/cookie
PATCH /site/coupon
PATCH /site/duplicate-option
PATCH /site/email-settings
PATCH /site/group
PATCH /site/move
PATCH /site/option
PATCH /site/option-rule
PATCH /site/redirect
PATCH /site/redirect-rule
PATCH /site/reset-coupon
PATCH /site/restore-group
PATCH /site/restore-option
PATCH /site/restore-redirect
PATCH /site/restore-site
PATCH /site/restore-site-partner
PATCH /site/restore-tour
PATCH /site/site
PATCH /site/site-partner
PATCH /site/template
PATCH /site/tour
DELETE /site/cookie
DELETE /site/group
DELETE /site/option
DELETE /site/option-rule
DELETE /site/site
DELETE /site/site-partner
DELETE /site/redirect
DELETE /site/redirect-rule
DELETE /site/template
DELETE /site/tour
DELETE /site/tour-field
    Skin
DELETE /skin/skin
DELETE /skin/template
GET /skin/colors
GET /skin/export
GET /skin/skins
GET /skin/sections
GET /skin/templates
GET /skin/template
PATCH /skin/colors
PATCH /skin/flush
PATCH /skin/skin
PATCH /skin/template
POST /skin/copy-template
POST /skin/import
POST /skin/skin
POST /skin/template

GET /maintenance/admin-actions

Description

  • Search admin actions

Resource URL

  • http://domain/api/maintenance/admin-actions
  • Replace domain with the nats domain

Request Method

  • GET

Response Format

  • JSON

Authentication

  • HTTP headers

Parameters

Parameters can be sent as url encoded params

  • start
    • type: digit
    • optional
  • count
    • type: digit
    • optional (default value: 20)
  • loginid
    • type: digit
    • optional
  • loginid_compare
    • type: string
    • optional (default value: =)
  • affiliate
    • type: string
    • optional
  • affiliate_compare
    • type: string
    • optional (default value: =)
  • start_date
    • type: string
    • optional
  • end_date
    • type: string
    • optional
  • full
    • type: string
    • optional
  • has_action
    • type: boolean_digit (0 or 1)
    • optional
  • has_view
    • type: boolean_digit (0 or 1)
    • optional
  • search_page
    • type: string
    • optional
  • search_page_compare
    • type: string
    • optional (default value: =)
  • search_action
    • type: string
    • optional
  • search_action_compare
    • type: string
    • optional (default value: =)
  • search_view
    • type: string
    • optional
  • search_view_compare
    • type: string
    • optional (default value: =)
  • text_search
    • type: string
    • optional

Example Request

Method: GET
URL: http://domain/api/maintenance/admin-actions
Query String: start=100&count=25&loginid=1&start_date=2018-06-10&end_date=2020-06-10&has_view=1

Response:

{
    "total_count": 121913,
    "actions": [
        {
            "loginid": "1",
            "time": 1555684877,
            "page": "\/api\/notification",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/notification\/count",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/notification\/count",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
                "PHP_SELF": "\/api\/notification\/count",
                "REQUEST_TIME_FLOAT": "1555684877.228",
                "REQUEST_TIME": "1555684877"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "count",
                "version": 1,
                "source": "UI",
                "collection": "notification"
            },
            "GET": {
                "view": "count",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "count",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "notification"
            },
            "action": false,
            "view": "count",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:17",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684877,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/hit-totals",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/hit-totals",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
                "PHP_SELF": "\/api\/report\/hit-totals",
                "REQUEST_TIME_FLOAT": "1555684877.458",
                "REQUEST_TIME": "1555684877"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "hit-totals",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "hit-totals",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "hit-totals",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "hit-totals",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:17",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684877,
            "page": "\/api\/affiliate",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=0&count=10&as_array=1&widget=1&orderby=join_date+desc",
                "REQUEST_URI": "\/api\/affiliate\/search?start=0&count=10&as_array=1&widget=1&orderby=join_date+desc",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/search",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
                "PHP_SELF": "\/api\/affiliate\/search",
                "REQUEST_TIME_FLOAT": "1555684877.695",
                "REQUEST_TIME": "1555684877"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "search",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "start": "0",
                "count": "10",
                "as_array": "1",
                "widget": "1",
                "orderby": "join_date desc",
                "view": "search",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "search",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "search",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:17",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684877,
            "page": "\/api\/member",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=0&count=10&as_array=1&widget=1&orderby=m.joined%20DESC",
                "REQUEST_URI": "\/api\/member\/search?start=0&count=10&as_array=1&widget=1&orderby=m.joined%20DESC",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/member\/search",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/member\/search",
                "PHP_SELF": "\/api\/member\/search",
                "REQUEST_TIME_FLOAT": "1555684877.863",
                "REQUEST_TIME": "1555684877"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "search",
                "version": 1,
                "source": "UI",
                "collection": "member"
            },
            "GET": {
                "start": "0",
                "count": "10",
                "as_array": "1",
                "widget": "1",
                "orderby": "m.joined DESC",
                "view": "search",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "search",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "member"
            },
            "action": false,
            "view": "search",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:17",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684877,
            "page": "\/api\/affiliate",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50832",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/affiliate\/override",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/override",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
                "PHP_SELF": "\/api\/affiliate\/override",
                "REQUEST_TIME_FLOAT": "1555684877.914",
                "REQUEST_TIME": "1555684877"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "override",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "view": "override",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "override",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "override",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:17",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50832",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=site_performance",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=site_performance",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684878.093",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "site_performance",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=program_performance",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=program_performance",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684878.145",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "program_performance",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50832",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "count=10&widget=site_performance&view=site&period=0&order=join_hits&direction=1",
                "REQUEST_URI": "\/api\/report\/profit-loss?count=10&widget=site_performance&view=site&period=0&order=join_hits&direction=1",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/profit-loss",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                "PHP_SELF": "\/api\/report\/profit-loss",
                "REQUEST_TIME_FLOAT": "1555684878.16",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "count": "10",
                "widget": "site_performance",
                "view": "profit-loss",
                "period": "0",
                "order": "join_hits",
                "direction": "1",
                "params_view": "site",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "profit-loss",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "profit-loss",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50833",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=affiliate_performance",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=affiliate_performance",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684878.194",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "affiliate_performance",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50831",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "count=10&widget=program_performance&view=program&period=0&order=join_hits&direction=1",
                "REQUEST_URI": "\/api\/report\/profit-loss?count=10&widget=program_performance&view=program&period=0&order=join_hits&direction=1",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/profit-loss",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                "PHP_SELF": "\/api\/report\/profit-loss",
                "REQUEST_TIME_FLOAT": "1555684878.207",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "count": "10",
                "widget": "program_performance",
                "view": "profit-loss",
                "period": "0",
                "order": "join_hits",
                "direction": "1",
                "params_view": "program",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "profit-loss",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "profit-loss",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684878,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50833",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "count=10&widget=affiliate_performance&view=login&period=0&order=join_hits&direction=1",
                "REQUEST_URI": "\/api\/report\/profit-loss?count=10&widget=affiliate_performance&view=login&period=0&order=join_hits&direction=1",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/profit-loss",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                "PHP_SELF": "\/api\/report\/profit-loss",
                "REQUEST_TIME_FLOAT": "1555684878.264",
                "REQUEST_TIME": "1555684878"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "count": "10",
                "widget": "affiliate_performance",
                "view": "profit-loss",
                "period": "0",
                "order": "join_hits",
                "direction": "1",
                "params_view": "login",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "profit-loss",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "profit-loss",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:18",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684884,
            "page": "\/api\/message",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "49826",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/message\/count",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/message\/count",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/message\/count",
                "PHP_SELF": "\/api\/message\/count",
                "REQUEST_TIME_FLOAT": "1555684884.965",
                "REQUEST_TIME": "1555684884"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "count",
                "version": 1,
                "source": "UI",
                "collection": "message"
            },
            "GET": {
                "view": "count",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "count",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "message"
            },
            "action": false,
            "view": "count",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:24",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684885,
            "page": "\/api\/notification",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "49826",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/notification\/count",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/notification\/count",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
                "PHP_SELF": "\/api\/notification\/count",
                "REQUEST_TIME_FLOAT": "1555684885.934",
                "REQUEST_TIME": "1555684885"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "count",
                "version": 1,
                "source": "UI",
                "collection": "notification"
            },
            "GET": {
                "view": "count",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "count",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "notification"
            },
            "action": false,
            "view": "count",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684886,
            "page": "\/api\/affiliate",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/payments\/bulk_payments",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_X_XSRF_TOKEN": "OXHUNeXjCm4ufkWkzMCZ+CtzCefjhdb4",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_COOKIE": "PHPSESSID=3ies9b1djpajmr4vvsmih6oc35",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "49826",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/affiliate\/override",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/override",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
                "PHP_SELF": "\/api\/affiliate\/override",
                "REQUEST_TIME_FLOAT": "1555684886.937",
                "REQUEST_TIME": "1555684886"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "override",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "view": "override",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "override",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "override",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:26",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684892,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50835",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/hit-totals",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/hit-totals",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
                "PHP_SELF": "\/api\/report\/hit-totals",
                "REQUEST_TIME_FLOAT": "1555684892.483",
                "REQUEST_TIME": "1555684892"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "hit-totals",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "hit-totals",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "hit-totals",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "hit-totals",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:32",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=engagement",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=engagement",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684907.091",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "engagement",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50839",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=0&widget=engagement&view=date&total_only=1&period=15",
                "REQUEST_URI": "\/api\/report\/profit-loss?start=0&widget=engagement&view=date&total_only=1&period=15",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/profit-loss",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
                "PHP_SELF": "\/api\/report\/profit-loss",
                "REQUEST_TIME_FLOAT": "1555684907.094",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "start": "0",
                "widget": "engagement",
                "view": "profit-loss",
                "total_only": "1",
                "period": "15",
                "params_view": "date",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "profit-loss",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "profit-loss",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/message",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50839",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/message\/count",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/message\/count",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/message\/count",
                "PHP_SELF": "\/api\/message\/count",
                "REQUEST_TIME_FLOAT": "1555684907.221",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "count",
                "version": 1,
                "source": "UI",
                "collection": "message"
            },
            "GET": {
                "view": "count",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "count",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "message"
            },
            "action": false,
            "view": "count",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/notification",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/notification\/count",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/notification\/count",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/notification\/count",
                "PHP_SELF": "\/api\/notification\/count",
                "REQUEST_TIME_FLOAT": "1555684907.221",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "count",
                "version": 1,
                "source": "UI",
                "collection": "notification"
            },
            "GET": {
                "view": "count",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "count",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "notification"
            },
            "action": false,
            "view": "count",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/hit-totals",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/hit-totals",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/hit-totals",
                "PHP_SELF": "\/api\/report\/hit-totals",
                "REQUEST_TIME_FLOAT": "1555684907.458",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "hit-totals",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "hit-totals",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "hit-totals",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "hit-totals",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/affiliate",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=0&count=10&as_array=1&widget=1&orderby=join_date+desc",
                "REQUEST_URI": "\/api\/affiliate\/search?start=0&count=10&as_array=1&widget=1&orderby=join_date+desc",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/search",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
                "PHP_SELF": "\/api\/affiliate\/search",
                "REQUEST_TIME_FLOAT": "1555684907.695",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "search",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "start": "0",
                "count": "10",
                "as_array": "1",
                "widget": "1",
                "orderby": "join_date desc",
                "view": "search",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "search",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "search",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/member",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=0&count=10&as_array=1&widget=1&orderby=m.joined%20DESC",
                "REQUEST_URI": "\/api\/member\/search?start=0&count=10&as_array=1&widget=1&orderby=m.joined%20DESC",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/member\/search",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/member\/search",
                "PHP_SELF": "\/api\/member\/search",
                "REQUEST_TIME_FLOAT": "1555684907.87",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "search",
                "version": 1,
                "source": "UI",
                "collection": "member"
            },
            "GET": {
                "start": "0",
                "count": "10",
                "as_array": "1",
                "widget": "1",
                "orderby": "m.joined DESC",
                "view": "search",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "search",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "member"
            },
            "action": false,
            "view": "search",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684907,
            "page": "\/api\/affiliate",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50839",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/affiliate\/override",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/override",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/override",
                "PHP_SELF": "\/api\/affiliate\/override",
                "REQUEST_TIME_FLOAT": "1555684907.912",
                "REQUEST_TIME": "1555684907"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "override",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "view": "override",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "override",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "override",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:47",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684908,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50839",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=site_performance",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=site_performance",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684908.284",
                "REQUEST_TIME": "1555684908"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "site_performance",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:48",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684908,
            "page": "\/api\/report",
            "SERVER": {
                "GEOIP_ADDR": "75.99.182.234",
                "GEOIP_CONTINENT_CODE": "NA",
                "GEOIP_COUNTRY_CODE": "US",
                "GEOIP_COUNTRY_NAME": "United States",
                "HTTP_HOST": "nats5.itai.dev2.toomuchmedia.com",
                "HTTP_CONNECTION": "keep-alive",
                "HTTP_ACCEPT": "application\/json, text\/plain, *\/*",
                "HTTP_X_XSRF_TOKEN": "VacltCZP32S\/CBSzZTNlCNASlx+lsYxL",
                "HTTP_X_NATS_ENTITY_DECODE": "1",
                "HTTP_USER_AGENT": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36",
                "HTTP_REFERER": "http:\/\/nats5.itai.dev2.toomuchmedia.com\/admin\/overview",
                "HTTP_ACCEPT_ENCODING": "gzip, deflate",
                "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9",
                "HTTP_COOKIE": "PHPSESSID=1nt8s9enuc5igqkc0f2lnhgvl0",
                "PATH": "\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin",
                "SERVER_SIGNATURE": "<address>Apache\/2.4.7 (Ubuntu) Server at nats5.itai.dev2.toomuchmedia.com Port 80<\/address>\n",
                "SERVER_SOFTWARE": "Apache\/2.4.7 (Ubuntu)",
                "SERVER_NAME": "nats5.itai.dev2.toomuchmedia.com",
                "SERVER_ADDR": "10.50.0.15",
                "SERVER_PORT": "80",
                "REMOTE_ADDR": "75.99.182.234",
                "DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "REQUEST_SCHEME": "http",
                "CONTEXT_PREFIX": "",
                "CONTEXT_DOCUMENT_ROOT": "\/home\/itai\/nats5\/www",
                "SERVER_ADMIN": "development2.servers@toomuchmedia.com",
                "SCRIPT_FILENAME": "\/home\/itai\/nats5\/www\/api",
                "REMOTE_PORT": "50838",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=program_performance",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=program_performance",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/report-widget",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/report-widget",
                "PHP_SELF": "\/api\/report\/report-widget",
                "REQUEST_TIME_FLOAT": "1555684908.33",
                "REQUEST_TIME": "1555684908"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "program_performance",
                "view": "report-widget",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "report-widget",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "report-widget",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:41:48",
            "username": "productsupport"
        }
    ],
    "success": true
}



Example Code

PHP

<?php

$headers = array( //set your username and API key here
	'api-key: 44b5498dbcb481a0d00b404c0169af62',
	'api-username: tmm1phrvezsbu'
);
$url = 'http://yourdomain.com'; //set your NATS URL here

$data = Array(
	'start' => 100,
	'count' => 25,
	'loginid' => 1,
	'start_date' => '2018-06-10',
	'end_date' => '2020-06-10',
	'has_view' => 1,
);

$request = Array(
	'method' => 'GET',
	'path' => 'v1/maintenance/admin-actions',
	'data' => $data
);

/*code below is the same for (almost) every API call */

$curl = curl_init();

$url = $url.'/api/'.$request['path'];

$query = http_build_query($request['data']);

if($request['method'] == 'GET'){
	//add query string parameters to the end of the url
	$url = $url.'?'.$query;
}else{
	//send parameters as POST fields
	curl_setopt($curl, CURLOPT_POST, 1);
	curl_setopt($curl, CURLOPT_POSTFIELDS, $query);
	
	if($request['method'] != 'POST'){
		$headers[] ='X-HTTP-Method: '.$request['method']; //send custom request method
	}
}
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);


$resp = curl_exec($curl);
//dumps an associative array representation of the json
var_dump(json_decode($resp, true));
// Close request to clear up some resources
curl_close($curl);
?>