mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-06 22:10:38 +00:00
DBus listen(number<s>) and daemon \-\-number
implement listen method for DBus listen(number<s>) -> <>:: add \-\-number option to daemon subcommand - permits starting daemon in anonymous mode with zero or more numbers - numbers may be added to daemon with listen() and removed with unlisten() change misleading "dataPath" to `settingsPath` in App.java - settingsPath=~/.local/share/signal-cli, while dataPath=~/.local/share/signal-cli/data only use FileLock when necessary in App.java, and unlock when appropriate update documentation
This commit is contained in:
parent
26594dd0ee
commit
690636b83d
12 changed files with 317 additions and 64 deletions
|
@ -67,6 +67,14 @@ listAccounts() -> accountList<as>::
|
|||
|
||||
Exceptions: None
|
||||
|
||||
listen(number<s>) -> <>::
|
||||
* number : Phone number
|
||||
|
||||
Starting checking the Signal servers on behalf of this number, and export a DBus object path for it.
|
||||
Fails if user is not already registered.
|
||||
|
||||
Exceptions: Failure
|
||||
|
||||
register(number<s>, voiceVerification<b>) -> <>::
|
||||
* number : Phone number
|
||||
* voiceVerification : true = use voice verification; false = use SMS verification
|
||||
|
@ -78,6 +86,8 @@ registerWithCaptcha(number<s>, voiceVerification<b>, captcha<s>) -> <>::
|
|||
* voiceVerification : true = use voice verification; false = use SMS verification
|
||||
* captcha : Captcha string
|
||||
|
||||
Captcha strings may be obtained from `https://signalcaptchas.org/registration/generate.html`
|
||||
|
||||
Exceptions: Failure, InvalidNumber, RequiresCaptcha
|
||||
|
||||
verify(number<s>, verificationCode<s>) -> <>::
|
||||
|
|
|
@ -494,13 +494,16 @@ The path of the manifest.json or a zip file containing the sticker pack you wish
|
|||
=== daemon
|
||||
|
||||
signal-cli can run in daemon mode and provides an experimental dbus interface.
|
||||
If no `-u` username is given, all local users will be exported as separate dbus
|
||||
objects under the same bus name.
|
||||
If no `-u` username is given, zero or more local users as specified by the
|
||||
`--number` option will be exported as separate dbus objects under the same bus name.
|
||||
If `--number` is omitted, all local users will be exported.
|
||||
|
||||
*--system*::
|
||||
Use DBus system bus instead of user bus.
|
||||
*--ignore-attachments*::
|
||||
Don’t download attachments of received messages.
|
||||
*--number* [NUMBER [NUMBER ...]]::
|
||||
List of zero or more numbers for anonymous daemon to listen to (default=all)
|
||||
|
||||
== Examples
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue