I share my server with about 50 friends and family and most have been via their email address but I have one user where I only have their Plex account - is there any way to get their email address or send them a message?
~Ross
I share my server with about 50 friends and family and most have been via their email address but I have one user where I only have their Plex account - is there any way to get their email address or send them a message?
~Ross
Wow, thanks - exactly what I was looking for. Thanks for pointing me at it.
All these old topics are locked but whatever…
With sed:
curl -k --silent "https://plex.tv/api/users/?X-Plex-Token=_YOURTOKEN_HERE_"| sed -rn 's/.*username=\"(.*)" email=\"(.*)" recommend.*/\1,\2/p'
With grep (sort of):
curl -k --silent "https://plex.tv/api/users/?X-Plex-Token=_YOURTOKEN_HERE_"| grep -iPo '(?<=username=")\w+(?=")|(?<=email=")[[:alnum:]].*(?=" recommendation)'
With Powershell to CSV ( powershell is annoying with objects strings etc … I use enum function I found to figure out WTF is wrong with my varables … SCRIPTS/Enumerate-ObjectProperties.ps1 at master · freeload101/SCRIPTS · GitHub :
(Invoke-RestMethod -Uri 'https://plex.tv/api/users/?X-Plex-Token=_YOURTOKEN_HERE_').MediaContainer.User|select Username, Email |ConvertTo-Csv -NoTypeInformation
-RMcCurdy.com
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.