From 11ba7fadb693b3672ce033639c688d9b3b7328b3 Mon Sep 17 00:00:00 2001 From: Richard Jansen Date: Sat, 30 Dec 2023 15:38:41 +0100 Subject: [PATCH] added env file; updated README --- .env | 2 ++ README.md | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 000000000..a92194e41 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +# follow the instructions in the [Firebase Documentation](https://firebase.google.com/docs/cloud-messaging/auth-server#provide-credentials-manually) to create a service account. after you create a service account, and download the json file. then change the value of `GOOGLE_APPLICATION_CREDENTIALS` to the path of the json file you downloaded. +GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/firebase/file.json" diff --git a/README.md b/README.md index dded166c3..5918e7c65 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,15 @@ [travis]: https://travis-ci.org/panicbit/fcm-rust [coveralls]: https://coveralls.io/github/panicbit/fcm-rust -## Examples +## v1 API This fork is a rewrite to use Google's HTTP v1 API. +# Credentials + +This library expects the Google credentials JSON location to be +defined as `GOOGLE_APPLICATION_CREDENTIALS` in the `.env` file. + ## Examples Check out the examples directory for a simple sender.