Jump to content

C# equivalent of REST API postSessionsPlayingStopped


Recommended Posts

pünktchen
Posted

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.

Posted (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 by softworkz

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...