Skip to content

Commit

Permalink
added env file; updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
rj76 committed Dec 30, 2023
1 parent d05ade8 commit 11ba7fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -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"
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 11ba7fa

Please sign in to comment.