So I’m writing a comprehensive app (skill) for the Amazon Echo to allow Plex Users to control everything in Plex by voice. Basically it lets you ask Alexa what’s On Deck and start playing TV Shows/Movies and Music Albums by name to whatever TV or device you want to play it on. Such as “Alexa, play the movie Ghostbusters on my Bedroom TV”. The app is still in it’s early stages, but I have gotten it working and have read enough documentation to know I can program it to do everything Plex has to offer thanks to the XML API.
I want to make this application public so all Plex users with an Amazon Echo can control their media via Alexa voice commands.
Unfortunately, I have to set the X-Plex-Token to query PMS for information… and I am able to get the server to create a token for me based on my username/password. However, that authentication information is currently stored as a variable in my code. What I want to do instead, is provide the user with a PIN number when they install this Skill on their Amazon Echo and have them go to http://plex.tv/pin to enter that code, which will then return a token for the application /skill to use.
Can you guys help me figure out how to request a PIN for use with http://plex.tv/pin so that people who download my app can get a token for their app to communicate with their Plex Media Server?