glance icon indicating copy to clipboard operation
glance copied to clipboard

Transmission custom-api or widget?

Open Rombond opened this issue 8 months ago • 2 comments

Description

I'm trying to integrate Transmission into my dashboard.

To do that, I first need to make a POST request to retrieve the X-Transmission-Session-Id from the response headers. Then, I need to make a second request using that session ID in the headers to get the actual JSON response.

I tried using custom-api, but it doesn't seem possible since subrequests are executed at the same time as the main request, which prevents passing the session ID between them.

I'm not sure what's easier on your side — either allowing headers to be passed from the main request to subrequests, or maybe creating a dedicated widget for Transmission?

Let me know what you think or if there's another way I could approach this. Thanks!

Rombond avatar Apr 04 '25 01:04 Rombond

I've made a PR #569 to at least make it possible for the request to wait for the previous one, though it would still need a way to pass the value from the first query down to the next.

ralphocdol avatar Apr 09 '25 13:04 ralphocdol