mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-09-01 06:28:11 +00:00
Updated Json service (markdown)
parent
c3916d2a08
commit
1ee9c62c64
@ -21,3 +21,20 @@ From the command line:
|
||||
|
||||
You should receive the same response that the `nc` command provides.
|
||||
|
||||
|
||||
## Some example requests
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0","method":"listGroups","id":"5"}`
|
||||
REPLY: `{"jsonrpc":"2.0","result":[...],"id":"5"}`
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0","method":"send","params":{"recipient":["+YYY"],"message":"MESSAGE"},"id":4}`
|
||||
REPLY: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}`
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0","method":"updateGroup","params":{"groupId":"GROUP_ID=","name":"new group name","members":["+ZZZ"],"link":"enabledWithApproval","setPermissionEditDetails":"onlyAdmins"},"id":"someId"}`
|
||||
REPLY: `{"jsonrpc":"2.0","result":{"timestamp":9999},"id":"someId"}`
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0","method":"sendSyncRequest","id":9}`
|
||||
REPLY: `{"jsonrpc":"2.0","result":{},"id":9}`
|
||||
|
||||
ENTRY: `{"jsonrpc":"2.0"}`
|
||||
REPLY: `{"jsonrpc":"2.0","error":{"code":-32600,"message":"method field must be set","data":null},"id":null}`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user