I`m trying to set up logging to Radioplayer V2.
But i get this error message:
23.10.2022 02:37:41 Error HTTP call to https://USER:PW@np-ingest.radioplayer.cloud/ failed: HTTP/1.1 401 Unauthorized
When we put all the info in to “Postman” we are able to send Now Playing info to Radioplayer, so the user and password we have should be correct. So with URL and Station UID.
What are we missing?
Did some more debugging pointing mAirlist to my own server. It seems like mAirlist puts the data in the request body and not in the params as radioplayer v2 seems to require.
In fact, they demand that the parameters are passed as part of the request URL, not the body. Which is actually not how HTTP POST is supposed to be used, and quite a questionable design decision, if you ask me.
The previous Radioplayer v1 API was using the POST requests in the ordinary way, with the parameters in the body. That’s probably why I didn’t pay much attention to that detail when adjusting the code for the new API.
I will change it accordingly and let you know when an update is available.