Ok this is going to be a fun project.
Disclaimer: I have 6 days and counting worth of experience with Particle. However I have 4 years of experience working with Google APIs and Googles Authentication servers. Me
I have been trying over the last few days to get webhooks to send data to Google Analytics which does not require any form of authentication. Current status kind of works. So I do know a little about webhooks and how they work. I am basically replying to this because I can fill in some of the gaps from the FireBase and I am happy to help. As far as i know you cant edit a webhook once its been created the endpoint is going to have to be static
As already stated
HTTPS is required. Firebase only responds to encrypted traffic so that our data remains safe.
I have been scanning the documentation it seams that you can send data to them with out being authenticated. This seams to be wrong in my opinion. You should check up on it i would assume that when you send data to an account they would require that you be authenticated.
Apparently they do allow for authentication. Now for some depressing news it seams their authentication method is JWT this is basically service account authentication. This means your not going to be able to just have a token on your device and request access like you could with normal Oauth2. Your going to have to calculate the JWT (Which I personally have never managed to do with Googles Auth servers with out using their official client libraries) Granted i think Googles Oauth servers are slightly different then Firebases but its probably the same bread of server.
Before you go to deep into this i would find out.
- Do you have to be authenticated to send data?
- If you have to be authenticated can you create a JWT with your device.
If you don’t need to be authenticated then I can probably help you put together the JSon required to send data to the server from the info in the documentation.