Software /
code /
prosody-modules
Comparison
mod_invites_api/README.markdown @ 5635:99c0e675b969
mod_invites_api: Update README.markdown.
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Sat, 29 Jul 2023 22:51:48 +0700 |
parent | 5141:027fb71ad509 |
comparison
equal
deleted
inserted
replaced
5634:6fb93b901aa4 | 5635:99c0e675b969 |
---|---|
86 | 86 |
87 ``` | 87 ``` |
88 Authorization: Bearer HTwALnKL/73UUylA-2ZJbu9x1XMATuIbjWpip8ow1 | 88 Authorization: Bearer HTwALnKL/73UUylA-2ZJbu9x1XMATuIbjWpip8ow1 |
89 ``` | 89 ``` |
90 | 90 |
91 You can also create an api key for a specific user: | |
92 | |
93 ``` | |
94 prosodyctl mod_invites_api create user@example.com | |
95 ``` | |
96 | |
91 Key management | 97 Key management |
92 ============== | 98 ============== |
93 | 99 |
94 At any time you can view authorized keys using: | 100 To list all the available commands: |
95 | 101 |
96 ``` | 102 ``` |
97 prosodyctl mod_invites_api list example.com | 103 prosodyctl mod_invites_api help |
98 ``` | 104 ``` |
99 | 105 |
100 This will list out the id of each key, and the name if set: | 106 To get help on a specific command for example `create`: |
101 | 107 |
102 ``` | 108 ``` |
103 HTwALnKL My test key | 109 prosodyctl mod_invites_api help create |
104 ``` | 110 ``` |
105 | |
106 You can revoke a key by passing this key id to the 'delete` sub-command: | |
107 | |
108 ``` | |
109 prosodyctl mod_invites_api delete example.com HTwALnKL | |
110 ``` |