API: set viewOffset & CLI client prototype

Hello! I am aware of the /:/scrobble and /:/unscrobble RESTful API endpoints to mark an item as fully viewed and unviewed (I will add them to the unofficial wiki later btw, as they are not listed there).

However, is there a way to set the viewOffset tag through an HTTP method? I can see the web client requesting GET’s through /:/timeline which include a ?time=xxx parameter, but I believe those require having subscribed your client to a websocket interface? Apologies, but I am not very familiar with that mechanism.

I am trying to develop an essential CLI client and figuring out a way to flag items as partially viewed with the right seek time would be very nice. I’ve also been doing everything through stateless HTTP methods and would like to keep it as that.

Thank you.

Doubling as a bump, I’ll post my current, glass-fragile and ugly as sin client prototype: https://github.com/Aanok/pmcli

It works though, for the most part.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.