'Get the data on PlexPy users IP table.
Required parameters:
user_id (str):                  The id of the Plex user
Optional parameters:
order_column (str):             "last_seen", "ip_address", "platform", "player",
"last_played", "play_count"
order_dir (str):                "desc" or "asc"
start (int):                    Row to start from, 0
length (int):                   Number of items to return, 25
search (str):                   A string to search for, "xxx.xxx.xxx.xxx"
Returns:
json:
{"draw": 1,
"recordsTotal": 2344,
"recordsFiltered": 10,
"data":
[{"friendly_name": "Jon Snow",
"id": 1121,
"ip_address": "xxx.xxx.xxx.xxx",
"last_played": "Game of Thrones - The Red Woman",
"last_seen": 1462591869,
"media_index": 1,
"media_type": "episode",
"parent_media_index": 6,
"parent_title": "",
"platform": "Chrome",
"play_count": 149,
"player": "Plex Web (Chrome)",
"rating_key": 153037,
"thumb": "/library/metadata/153036/thumb/1462175062",
"transcode_decision": "transcode",
"user_id": 133788,
"year": 2016'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth()
@addtoapi()
def get_user_ips(self, user_id=None, **kwargs):

    if (not kwargs.get('json_data')):
        dt_columns = [('last_seen', True, False), ('ip_address', True, True), ('platform', True, True), ('player', True, True), ('last_played', True, True), ('play_count', True, True)]
        kwargs['json_data'] = build_datatables_json(kwargs, dt_columns, 'last_seen')
    user_data = users.Users()
    history = user_data.get_datatables_unique_ips(user_id=user_id, kwargs=kwargs)
    return history
