'Authorize HTTP v1 send requests for FireBase Cloud Messaging with C# or just REST API endpoints
I am trying to send requests from a server to Firebase Cloud Messaging. I use their HTTP v1 API (the newer version).
I run the server in a non-Google server environment. And according to their docs, I have to use a service account JSON file from my Firebase project and manually use the creds to mint the access tokens. Here is Google's doc. In short, they give instructions to mint access tokens using Google Auth Library in node.js, Python, and Java.
However, I use .NET C#. I do not know how to mint the access tokens. It seems there is no Google Auth Library in C#. Moreover, I have tried to look for pure REST endpoints to call to retrieve access tokens but I have no clue...
What endpoints should I make to request access token from the JSON credentials? Or is there a C# lib that does this? Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
