Skip to content

Commit

Permalink
docs: refactor API key handling and update documentation
Browse files Browse the repository at this point in the history
- Replace `apikey` with `key_path` and `credential` in README.md
- Add comments for `key_path` and `credential` in config.go

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jun 8, 2024
1 parent 9a479ac commit 5ae0c01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ api:

android:
enabled: true
apikey: "YOUR_API_KEY"
key_path: "" # path to fcm key file
credential: "" # fcm credential data
max_retry: 0 # resend fail notification, default value zero is disabled

huawei:
Expand Down
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ api:
android:
enabled: true
key_path: ""
credential: ""
key_path: "" # path to fcm key file
credential: "" # fcm credential data
max_retry: 0 # resend fail notification, default value zero is disabled
huawei:
Expand Down

0 comments on commit 5ae0c01

Please sign in to comment.