Hi,
Hoping someone here might be able to answer this for me, as I've not been able to work it out (or discover from looking at the PHT or roku client code).
I want to authenticate against myplex using the https://plex.tv/pinmethod. I can request the PIN page, get the code and the id number of the request (a POST into http://plex.tv/pins.xml) - but I can't get the authentication code from the response page.
I know I need to get the data from https://plex.tv/pins/.xml- but I always get a 422. I use the same header information as used in the initial POST, so I guess that I'm supposed to send some information i the header, but I'm not sure what! I've tried both a GET and a POST on this just in case.
Anyone help?
EDIT: ahhh - got it. Knew that would happen as soon as I posted. For anyone interested (https://xkcd.com/979/) the correct method was a get (found from the PHT client), but I was also adding the parameter information as URL arguments, when I should have been using HTTP Headers. Switch it round and worked first time...