#!/usr/bin/env python
# encoding: utf-8
"""
visitortracker.py

Created by Jeremiah Shirk on 2012-09-05.
Copyright (c) 2012 Monitis. All rights reserved.
"""

from monitis.api import get, post, MonitisError, validate_kwargs


def visitor_tracking_tests(**kwargs):
    ''' Get a user's visitor trackers '''
    required = []
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingTests', **req_args)


def visitor_tracking_info(**kwargs):
    ''' get information about the specified Visitor Tracker 

    Results are a list, but the order may differ from the docs
    [siteId, url, name, monitorId], though it isn't
    entirely clear.
    '''
    required = ['siteId']
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingInfo', **req_args)


def visitor_tracking_results(**kwargs):
    ''' Get results of the specified Visitor Tracker '''
    required = ['siteId', 'year', 'month', 'day']
    optional = ['timezoneoffset']
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingResults', **req_args)

a605fefc1fb9c4cd20799280a71278cf8b2d7702
<mask token>

<mask token>


def visitor_tracking_tests(**kwargs):
    """ Get a user's visitor trackers """
    required = []
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingTests', **req_args)


<mask token>


def visitor_tracking_results(**kwargs):
    """ Get results of the specified Visitor Tracker """
    required = ['siteId', 'year', 'month', 'day']
    optional = ['timezoneoffset']
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingResults', **req_args)

<mask token>


def visitor_tracking_tests(**kwargs):
    """ Get a user's visitor trackers """
    required = []
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingTests', **req_args)


def visitor_tracking_info(**kwargs):
    """ get information about the specified Visitor Tracker 

    Results are a list, but the order may differ from the docs
    [siteId, url, name, monitorId], though it isn't
    entirely clear.
    """
    required = ['siteId']
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingInfo', **req_args)


def visitor_tracking_results(**kwargs):
    """ Get results of the specified Visitor Tracker """
    required = ['siteId', 'year', 'month', 'day']
    optional = ['timezoneoffset']
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingResults', **req_args)

<mask token>
from monitis.api import get, post, MonitisError, validate_kwargs


def visitor_tracking_tests(**kwargs):
    """ Get a user's visitor trackers """
    required = []
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingTests', **req_args)


def visitor_tracking_info(**kwargs):
    """ get information about the specified Visitor Tracker 

    Results are a list, but the order may differ from the docs
    [siteId, url, name, monitorId], though it isn't
    entirely clear.
    """
    required = ['siteId']
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingInfo', **req_args)


def visitor_tracking_results(**kwargs):
    """ Get results of the specified Visitor Tracker """
    required = ['siteId', 'year', 'month', 'day']
    optional = ['timezoneoffset']
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingResults', **req_args)

#!/usr/bin/env python
# encoding: utf-8
"""
visitortracker.py

Created by Jeremiah Shirk on 2012-09-05.
Copyright (c) 2012 Monitis. All rights reserved.
"""

from monitis.api import get, post, MonitisError, validate_kwargs


def visitor_tracking_tests(**kwargs):
    ''' Get a user's visitor trackers '''
    required = []
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingTests', **req_args)


def visitor_tracking_info(**kwargs):
    ''' get information about the specified Visitor Tracker 

    Results are a list, but the order may differ from the docs
    [siteId, url, name, monitorId], though it isn't
    entirely clear.
    '''
    required = ['siteId']
    optional = []
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingInfo', **req_args)


def visitor_tracking_results(**kwargs):
    ''' Get results of the specified Visitor Tracker '''
    required = ['siteId', 'year', 'month', 'day']
    optional = ['timezoneoffset']
    req_args = validate_kwargs(required, optional, **kwargs)
    return get(action='visitorTrackingResults', **req_args)
