I'm trying to get a list of topics subscribed to via the firebase API.
My firebase project has an api-key
, which is known to the client. The client has also generated a messaging-token
(which I guess is really a google iid). So both are public information.
I am attempting a GET to the following url (based on these google iid instructions)
https://iid.googleapis.com/iid/info/<messaging-token>?details=true&Authorization:key=<api-key>
I also have a header Authorization:key=<api-key>
as the instructions are little ambiguous
I am getting 401 responses.
I have done this a few months ago but then I had to provide a secret server key, which the firebase UI described as legacy then, and which is now not available. There is a private key in the UI but that also results in 401
s.
What do I need to do?