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

From TMM Wiki
Jump to navigationJump to search
Line 76: Line 76:
 
** optional
 
** optional
  
 +
== '''Example Request''' ==
 +
Method: '''GET'''<br/>
 +
URL: <nowiki>http://domain/api/maintenance/admin-actions</nowiki><br/>
 +
 +
Response:
 +
<pre>
 +
{
 +
    "total_count": 105838,
 +
    "actions": [
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684704,
 +
            "page": "\/api\/service",
 +
            "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\/overview",
 +
                "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": "&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": "49746",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/service\/timezone",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/service\/timezone",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/timezone",
 +
                "PHP_SELF": "\/api\/service\/timezone",
 +
                "REQUEST_TIME_FLOAT": "1555684704.83",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "timezone",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "service"
 +
            },
 +
            "GET": {
 +
                "view": "timezone",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "timezone",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "service"
 +
            },
 +
            "action": false,
 +
            "view": "timezone",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:24",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684704,
 +
            "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_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\/overview",
 +
                "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": "&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": "49738",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/report\/widgets",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/report\/widgets",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widgets",
 +
                "PHP_SELF": "\/api\/report\/widgets",
 +
                "REQUEST_TIME_FLOAT": "1555684704.881",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "widgets",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "view": "widgets",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "widgets",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "report"
 +
            },
 +
            "action": false,
 +
            "view": "widgets",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:24",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684704,
 +
            "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\/overview",
 +
                "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": "&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": "49740",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/affiliate\/current",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/current",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current",
 +
                "PHP_SELF": "\/api\/affiliate\/current",
 +
                "REQUEST_TIME_FLOAT": "1555684704.892",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "current",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "view": "current",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "current",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "affiliate"
 +
            },
 +
            "action": false,
 +
            "view": "current",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:24",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684704,
 +
            "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_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\/overview",
 +
                "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": "&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": "49742",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/report\/groups",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/report\/groups",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/groups",
 +
                "PHP_SELF": "\/api\/report\/groups",
 +
                "REQUEST_TIME_FLOAT": "1555684704.887",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "groups",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "view": "groups",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "groups",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "report"
 +
            },
 +
            "action": false,
 +
            "view": "groups",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:24",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49744",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/report\/widget-info",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/report\/widget-info",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widget-info",
 +
                "PHP_SELF": "\/api\/report\/widget-info",
 +
                "REQUEST_TIME_FLOAT": "1555684704.88",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "widget-info",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "view": "widget-info",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "widget-info",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "report"
 +
            },
 +
            "action": false,
 +
            "view": "widget-info",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "page": "\/api\/service",
 +
            "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\/overview",
 +
                "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": "&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": "49746",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/service\/project",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/service\/project",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/project",
 +
                "PHP_SELF": "\/api\/service\/project",
 +
                "REQUEST_TIME_FLOAT": "1555684704.95",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "project",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "service"
 +
            },
 +
            "GET": {
 +
                "view": "project",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "project",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "service"
 +
            },
 +
            "action": false,
 +
            "view": "project",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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\/overview",
 +
                "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": "&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": "49748",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "",
 +
                "REQUEST_URI": "\/api\/affiliate\/current-permissions",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/current-permissions",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current-permissions",
 +
                "PHP_SELF": "\/api\/affiliate\/current-permissions",
 +
                "REQUEST_TIME_FLOAT": "1555684704.83",
 +
                "REQUEST_TIME": "1555684704"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "current-permissions",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "view": "current-permissions",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "current-permissions",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "affiliate"
 +
            },
 +
            "action": false,
 +
            "view": "current-permissions",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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\/overview",
 +
                "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": "&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": "49740",
 +
                "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": "1555684705.009",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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\/overview",
 +
                "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": "&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": "49738",
 +
                "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": "1555684705.01",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49742",
 +
                "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": "1555684705.076",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49748",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "report=profit_loss&amp;report_widget=overview",
 +
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;report_widget=overview",
 +
                "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": "1555684705.095",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "report-widget",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "report": "profit_loss",
 +
                "report_widget": "overview",
 +
                "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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\/overview",
 +
                "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": "&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": "49746",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "as_array=1&amp;loginid=1",
 +
                "REQUEST_URI": "\/api\/affiliate\/search?as_array=1&amp;loginid=1",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/search",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
 +
                "PHP_SELF": "\/api\/affiliate\/search",
 +
                "REQUEST_TIME_FLOAT": "1555684705.063",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "search",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "as_array": "1",
 +
                "loginid": "1",
 +
                "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49738",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "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",
 +
                "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",
 +
                "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": "1555684705.135",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "profit-loss",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "start": "Sat, 06 Apr 2019 00:00:00",
 +
                "widget": "overview",
 +
                "view": "profit-loss",
 +
                "period": "8",
 +
                "end": "Fri, 12 Apr 2019 23:59:59",
 +
                "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49740",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "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",
 +
                "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",
 +
                "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": "1555684705.112",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "profit-loss",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "report"
 +
            },
 +
            "GET": {
 +
                "start": "Sat, 13 Apr 2019 00:00:00",
 +
                "widget": "overview",
 +
                "view": "profit-loss",
 +
                "period": "8",
 +
                "end": "Fri, 19 Apr 2019 23:59:59",
 +
                "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49742",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "start=0&amp;widget=engagement&amp;view=date&amp;total_only=1&amp;period=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",
 +
                "PATH_INFO": "\/report\/profit-loss",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/profit-loss",
 +
                "PHP_SELF": "\/api\/report\/profit-loss",
 +
                "REQUEST_TIME_FLOAT": "1555684705.204",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49748",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "report=profit_loss&amp;report_widget=engagement",
 +
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;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": "1555684705.199",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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\/overview",
 +
                "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": "&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": "49744",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "loginid=1&amp;set_group=15",
 +
                "REQUEST_URI": "\/api\/affiliate\/settings?loginid=1&amp;set_group=15",
 +
                "SCRIPT_NAME": "\/api",
 +
                "PATH_INFO": "\/affiliate\/settings",
 +
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/settings",
 +
                "PHP_SELF": "\/api\/affiliate\/settings",
 +
                "REQUEST_TIME_FLOAT": "1555684705.045",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "API": {
 +
                "affiliate_loginid": "1",
 +
                "method": "GET",
 +
                "resource": "settings",
 +
                "version": 1,
 +
                "source": "UI",
 +
                "collection": "affiliate"
 +
            },
 +
            "GET": {
 +
                "loginid": "1",
 +
                "set_group": "15",
 +
                "view": "settings",
 +
                "api_affiliate_loginid": "1",
 +
                "api_method": "GET",
 +
                "api_resource": "settings",
 +
                "api_version": 1,
 +
                "api_source": "UI",
 +
                "api_collection": "affiliate"
 +
            },
 +
            "action": false,
 +
            "view": "settings",
 +
            "ip": "75.99.182.234",
 +
            "date": "2019-04-19 10:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49746",
 +
                "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": "1555684705.237",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        },
 +
        {
 +
            "loginid": "1",
 +
            "time": 1555684705,
 +
            "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_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\/overview",
 +
                "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": "&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": "49748",
 +
                "GATEWAY_INTERFACE": "CGI\/1.1",
 +
                "SERVER_PROTOCOL": "HTTP\/1.1",
 +
                "REQUEST_METHOD": "GET",
 +
                "QUERY_STRING": "report=profit_loss&amp;report_widget=affiliate_performance",
 +
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&amp;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": "1555684705.322",
 +
                "REQUEST_TIME": "1555684705"
 +
            },
 +
            "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:38:25",
 +
            "username": "productsupport"
 +
        }
 +
    ],
 +
    "success": true
 +
}
 +
</pre>
 +
 +
 +
  
 
== '''Example Code''' ==
 
== '''Example Code''' ==
Line 135: Line 1,470:
 
[[Category:NATS4_REST_maintenance_Collection]]
 
[[Category:NATS4_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 -->

Revision as of 13:27, 7 June 2019

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
SOAP API
API
API Best Practices
WSDL Cache
Add Affiliate
Add Member Note
Admin Get Adtools
Adtool Categories
Adtool Types
Affiliate Get Campaigns
Bulk Import Adtools
Caching
Decode Natscode
Expire Manual Member
Get Affiliate Campaigns
Get Affiliate Hit Data
Get Affiliate Loginids
Get Affiliate Nats Codes
Get Affiliate Payout
Get Affiliate Program Campaign List
Get_Affiliate_Program_Campaign_List
Get Member Details
Get Member Instant Upgrade String
Get Member Package Upgrade String
Get Member Token Rebuy String
Get Member Upsell String
Get Payment Data
Get Payvia Rule
Get Profit Loss Report
Ping
Record Member Login
Search Affiliate Info
Search Member Info
Send Email API Function
Set Affiliate Admin Settings
Set Affiliate Customs
Set Affiliate Defaults
Set Affiliate Information
Set Affiliate Settings
Set Member Details
Set Payment Status
Set Payvia Rule
REST API
API Overview
API Best Practices
REST API PATH UPDATES
Adtools
GET /adtools/admin
GET /adtools/categories
GET /adtools/types
POST /adtools/importdump
Affiliate
GET /affiliate/campaigns
GET /affiliate/hitdata
GET /affiliate/payout
GET /affiliate/searchinfo
POST /affiliate/addaffiliate
POST /affiliate/invoice
PATCH /affiliate/setadminsettings
PATCH /affiliate/setcustoms
PATCH /affiliate/setdefaults
PATCH /affiliate/setinformation
PATCH /affiliate/setpayviainfo
PATCH /affiliate/setsettings
PATCH /affiliate/status
Member
GET /member/authstring
GET /member/details
GET /member/searchinfo
GET /suggestedcanceloffers
PATCH /member/setdetails
PATCH /member/setexpiration
POST /member/addnote
POST /member/recordlogin
PUT /member/expiremanual
PATCH /member/forget
Option
GET /option/options
GET /option/rule
PATCH /option/rule
PATCH/option/text
POST /option/rule
Payments
GET /payments/getpayments
GET /payviarule
PATCH /payments/setstatus
PATCH /payviarule
Report
GET /profitlossreport
Get /transactionpayouts
GET /report/transaction
Service
GET /service/decodenatscode
GET /service/ping
POST /service/sendemail

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
    • optional
  • has_view
    • type: boolean_digit
    • 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

Response:

{
    "total_count": 105838,
    "actions": [
        {
            "loginid": "1",
            "time": 1555684704,
            "page": "\/api\/service",
            "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\/overview",
                "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": "49746",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/service\/timezone",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/service\/timezone",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/timezone",
                "PHP_SELF": "\/api\/service\/timezone",
                "REQUEST_TIME_FLOAT": "1555684704.83",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "timezone",
                "version": 1,
                "source": "UI",
                "collection": "service"
            },
            "GET": {
                "view": "timezone",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "timezone",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "service"
            },
            "action": false,
            "view": "timezone",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:24",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684704,
            "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_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\/overview",
                "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": "49738",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/widgets",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/widgets",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widgets",
                "PHP_SELF": "\/api\/report\/widgets",
                "REQUEST_TIME_FLOAT": "1555684704.881",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "widgets",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "widgets",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "widgets",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "widgets",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:24",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684704,
            "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\/overview",
                "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": "49740",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/affiliate\/current",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/current",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current",
                "PHP_SELF": "\/api\/affiliate\/current",
                "REQUEST_TIME_FLOAT": "1555684704.892",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "current",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "view": "current",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "current",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "current",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:24",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684704,
            "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_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\/overview",
                "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": "49742",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/groups",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/groups",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/groups",
                "PHP_SELF": "\/api\/report\/groups",
                "REQUEST_TIME_FLOAT": "1555684704.887",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "groups",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "groups",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "groups",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "groups",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:24",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49744",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/report\/widget-info",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/report\/widget-info",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/report\/widget-info",
                "PHP_SELF": "\/api\/report\/widget-info",
                "REQUEST_TIME_FLOAT": "1555684704.88",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "widget-info",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "view": "widget-info",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "widget-info",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "report"
            },
            "action": false,
            "view": "widget-info",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "page": "\/api\/service",
            "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\/overview",
                "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": "49746",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/service\/project",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/service\/project",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/service\/project",
                "PHP_SELF": "\/api\/service\/project",
                "REQUEST_TIME_FLOAT": "1555684704.95",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "project",
                "version": 1,
                "source": "UI",
                "collection": "service"
            },
            "GET": {
                "view": "project",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "project",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "service"
            },
            "action": false,
            "view": "project",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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\/overview",
                "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": "49748",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "",
                "REQUEST_URI": "\/api\/affiliate\/current-permissions",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/current-permissions",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/current-permissions",
                "PHP_SELF": "\/api\/affiliate\/current-permissions",
                "REQUEST_TIME_FLOAT": "1555684704.83",
                "REQUEST_TIME": "1555684704"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "current-permissions",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "view": "current-permissions",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "current-permissions",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "current-permissions",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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\/overview",
                "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": "49740",
                "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": "1555684705.009",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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\/overview",
                "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": "49738",
                "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": "1555684705.01",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49742",
                "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": "1555684705.076",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49748",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "report=profit_loss&report_widget=overview",
                "REQUEST_URI": "\/api\/report\/report-widget?report=profit_loss&report_widget=overview",
                "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": "1555684705.095",
                "REQUEST_TIME": "1555684705"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "report-widget",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "report": "profit_loss",
                "report_widget": "overview",
                "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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\/overview",
                "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": "49746",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "as_array=1&loginid=1",
                "REQUEST_URI": "\/api\/affiliate\/search?as_array=1&loginid=1",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/search",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/search",
                "PHP_SELF": "\/api\/affiliate\/search",
                "REQUEST_TIME_FLOAT": "1555684705.063",
                "REQUEST_TIME": "1555684705"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "search",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "as_array": "1",
                "loginid": "1",
                "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49738",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=Sat,%2006%20Apr%202019%2000:00:00&widget=overview&view=date&period=8&end=Fri,%2012%20Apr%202019%2023:59:59",
                "REQUEST_URI": "\/api\/report\/profit-loss?start=Sat,%2006%20Apr%202019%2000:00:00&widget=overview&view=date&period=8&end=Fri,%2012%20Apr%202019%2023:59:59",
                "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": "1555684705.135",
                "REQUEST_TIME": "1555684705"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "start": "Sat, 06 Apr 2019 00:00:00",
                "widget": "overview",
                "view": "profit-loss",
                "period": "8",
                "end": "Fri, 12 Apr 2019 23:59:59",
                "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49740",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "start=Sat,%2013%20Apr%202019%2000:00:00&widget=overview&view=date&period=8&end=Fri,%2019%20Apr%202019%2023:59:59",
                "REQUEST_URI": "\/api\/report\/profit-loss?start=Sat,%2013%20Apr%202019%2000:00:00&widget=overview&view=date&period=8&end=Fri,%2019%20Apr%202019%2023:59:59",
                "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": "1555684705.112",
                "REQUEST_TIME": "1555684705"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "profit-loss",
                "version": 1,
                "source": "UI",
                "collection": "report"
            },
            "GET": {
                "start": "Sat, 13 Apr 2019 00:00:00",
                "widget": "overview",
                "view": "profit-loss",
                "period": "8",
                "end": "Fri, 19 Apr 2019 23:59:59",
                "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49742",
                "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": "1555684705.204",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49748",
                "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": "1555684705.199",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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\/overview",
                "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": "49744",
                "GATEWAY_INTERFACE": "CGI\/1.1",
                "SERVER_PROTOCOL": "HTTP\/1.1",
                "REQUEST_METHOD": "GET",
                "QUERY_STRING": "loginid=1&set_group=15",
                "REQUEST_URI": "\/api\/affiliate\/settings?loginid=1&set_group=15",
                "SCRIPT_NAME": "\/api",
                "PATH_INFO": "\/affiliate\/settings",
                "PATH_TRANSLATED": "\/home\/itai\/nats5\/www\/affiliate\/settings",
                "PHP_SELF": "\/api\/affiliate\/settings",
                "REQUEST_TIME_FLOAT": "1555684705.045",
                "REQUEST_TIME": "1555684705"
            },
            "API": {
                "affiliate_loginid": "1",
                "method": "GET",
                "resource": "settings",
                "version": 1,
                "source": "UI",
                "collection": "affiliate"
            },
            "GET": {
                "loginid": "1",
                "set_group": "15",
                "view": "settings",
                "api_affiliate_loginid": "1",
                "api_method": "GET",
                "api_resource": "settings",
                "api_version": 1,
                "api_source": "UI",
                "api_collection": "affiliate"
            },
            "action": false,
            "view": "settings",
            "ip": "75.99.182.234",
            "date": "2019-04-19 10:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49746",
                "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": "1555684705.237",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "username": "productsupport"
        },
        {
            "loginid": "1",
            "time": 1555684705,
            "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_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\/overview",
                "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": "49748",
                "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": "1555684705.322",
                "REQUEST_TIME": "1555684705"
            },
            "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:38:25",
            "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(
	// Add API parameters here
);

$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);
?>