'Get a list of synced items on the PMS.
Required parameters:
machine_id (str):       The PMS identifier
Optional parameters:
user_id (str):          The id of the Plex user
Returns:
json:
[{"content_type": "video",
"device_name": "Tyrion\'s iPad",
"failure": "",
"friendly_name": "Tyrion Lannister",
"item_complete_count": "0",
"item_count": "1",
"item_downloaded_count": "0",
"item_downloaded_percent_complete": 0,
"metadata_type": "movie",
"music_bitrate": "192",
"photo_quality": "74",
"platform": "iOS",
"rating_key": "154092",
"root_title": "Deadpool",
"state": "pending",
"sync_id": "11617019",
"title": "Deadpool",
"total_size": "0",
"user_id": "696969",
"username": "DrukenDwarfMan",
"video_quality": "60"'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi()
def get_synced_items(self, machine_id='', user_id='', **kwargs):

    plex_tv = plextv.PlexTV()
    result = plex_tv.get_synced_items(machine_id=machine_id, user_id=user_id)
    if result:
        return result
    else:
        logger.warn(u'Unable    to    retrieve    data    for    get_synced_items.')
