edgren
July 12, 2013, 6:21pm
21
View the source of the page. The call returns XML with no stylesheet so it may produce empty looking pages in some browsers. If I run this:
curl -H "Content-Length: 0" -H "X-Plex-Client-Identifier: my-app" -u: -X POST https://my.plexapp.com/users/sign_in.xml
Replacing and with my myPlex username and password I get the following back:
DrZeuss
my email address
2011-12-17 00:46:32 UTC
my authentication token
Na. The source code after the POST was completly empty :/
So I must use an Linux dist. to get my authentication token? If no, where in Windows or PHP can I run that cURL command?
Na. The source code after the POST was completly empty :/
So I must use an Linux dist. to get my authentication token? If no, where in Windows or PHP can I run that cURL command?
You can download cURL for many platforms (including Windows) here .
I don't really know PHP (Mainly C++/Perl/Objective C), however it seems to include a cURL routine, see here .
atrus
July 19, 2013, 10:50pm
23
I have recorded a video for you that explains a lot :) https://www.youtube.com/watch?v=FLzUdPg9OyA
That is not the newest version. Only 0.9.8.X has the sessions part.
That is not the newest version. Only 0.9.8.X has the sessions part.
Exactly: check out http://forums.plexapp.com/index.php/topic/62832-plex-media-server/ -- 0.9.8.3 just released yesterday.
edgren
July 24, 2013, 12:38am
25
That is not the newest version. Only 0.9.8.X has the sessions part.
Exactly: check out http://forums.plexapp.com/index.php/topic/62832-plex-media-server/ -- 0.9.8.3 just released yesterday.
Many thanks! The "Now Playing" function gave more information than I could imagine! Sweet :D
Any idea when this will be supported for PMC and the Roku app? Or will it ever?
Any idea when this will be supported for PMC and the Roku app? Or will it ever?
Roku is already supported. PMC I am guessing never will since PHT is replacing it and also is a supported.
Edit: unless you meant view 'now playing' on the clients.. then I have no idea :)
atrus
July 26, 2013, 8:21am
28
The "Now Playing" feature should already support Roku. As long as you have updated to the latest version of the Roku client. PMC will never support it. But as PMC will become PHT you should not worry because PHT supports it already =)
I am trying the methods to get what currently is playing on a client and have some problems.
When I connect to the websocket at: ws://localhost:32400/:/websockets/notifications
I get a response that only shows the progress and state of the item not the item itself:
{"_elementType":"NotificationContainer","type":"playing","size":1,"_children":[{"_elementType":"PlaySessionStateNotification","sessionKey":"1","viewOffset":0,"state":"playing"}]}
And when I connect to the API at: http://IP:PORT/status/sessions
It seems like I only get messages for other users than the owner of the server.
What is the best method to get playing items from the server for all users and at least get: item, progress and state?
Glad I came across this; These seems like a hell of a lot easier than the plexwatch implementations.
Curious in all my searches for the API I never saw this controller/methods; is there additional documentation regarding this and others you can help reference?
I have played around by just looking in the root http://ip:port/ and diving down from there...