mirror of
https://github.com/pushbits/server.git
synced 2025-05-02 11:46:17 +02:00
Explain how application tokens are retrieved
This commit is contained in:
parent
0cd4244388
commit
434f594629
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -70,11 +70,11 @@ Now, how can you interact with the server?
|
|||
At the time of writing, there is no fancy GUI built-in.
|
||||
I don't do much front end development myself, so if you want to contribute in this regard I'm happy if you reach out!
|
||||
|
||||
Anyway, I wrote [a little CLI tool](https://github.com/PushBits/cli) to make basic API requests to the server.
|
||||
Anyway, I wrote [a little CLI tool called pbcli](https://github.com/PushBits/cli) to make basic API requests to the server.
|
||||
It helps you to create new users and applications.
|
||||
You will find further instructions in the linked repository.
|
||||
|
||||
After you have setup a user and an application, you can use the API to send a push notification to your Matrix account.
|
||||
After you have created a user and an application, you can use the API to send a push notification to your Matrix account.
|
||||
|
||||
```bash
|
||||
curl \
|
||||
|
@ -84,6 +84,13 @@ curl \
|
|||
"https://pushbits.example.com/message?token=$TOKEN"
|
||||
```
|
||||
|
||||
Note that the token is associated with your application and has to be kept secret.
|
||||
You can retrieve the token using [pbcli](https://github.com/PushBits/cli) by running following command.
|
||||
|
||||
```bash
|
||||
pbcli application show myapplication --url https://pushbits.example.com --username myusername
|
||||
```
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
The idea for this software and most parts of the initial source are heavily inspired by [Gotify](https://gotify.net/).
|
||||
|
|
Loading…
Add table
Reference in a new issue