I'm creating a Vue front end for my Funkwhale instance running locally on my home server. I'm trying to create a listen token that can be used in the listen_url for tracks, but I can't seem to wrap my head around how this is supposed to be done. I'm currently having the API open, but from my understanding a token is needed to be able to reach the listen URLs.
I've tried doing a POST to http://192.168.0.15:3030/api/v1/oauth/apps/
, as that is the IP address where the instance lives, passing name
, redirect_uris
and scopes
in the body, but I'm getting a 404 error when doing that. It also seems like there is an error in the API documentation for the /api/v1/oauth/token
endpoint, so I'm not really following what the procedure after that would be in order to generate a valid listen token.
I looked at the requests being made by the actual Funkwhale front end and that seemed to pass an upload
and a jwt
parameter. My guess is that the later one is required for listen URLs even though the API is open.
Are there any other methods for getting access to the listen urls? Or am I understanding something wrong?
I also noticed that the duration
of tracks is null
. Does this has to do with that there needs to be an authorization going on for that property to be accessed?