pünktchen 1409 Posted Tuesday at 10:17 AM Posted Tuesday at 10:17 AM What is the c# equivalent of the REST API endpoint "/Sessions/Playing/Stopped", if i only have the ItemId, MediaSourceId and PlaySessionId, but no SessionId? The REST API endpoint works without a SessionId.
softworkz 5092 Posted 1 hour ago Posted 1 hour ago (edited) @pünktchen I had actually tried to look it up on the same day you posted, expecting that I could just let you know which steps the server is taking when responding to REST request, but it turned out that there's no easy answer, unfortunately. On 3/3/2026 at 11:17 AM, pünktchen said: i only have the ItemId, MediaSourceId and PlaySessionId, but no SessionId? On 3/3/2026 at 11:17 AM, pünktchen said: The REST API endpoint works without a SessionId. The REST API might not need a SessionId - but it still has something that a plugin doesn't have: An authorization through the token header. I haven't followed all the way through, but the rough picture is this: The request is received, code path goes somewhere deep into auth and session stuff and when it returns, it "magically" has all the information that is needed.. (a Sessionxxxx object). Maybe @Lukecan explain better.. (that' s why I didn't respond) Edited 1 hour ago by softworkz
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now