mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-05-30 15:14:14 +00:00
Update jsonrpc man page
This commit is contained in:
parent
fb92bc3894
commit
7a82283762
@ -140,18 +140,32 @@ REQUEST: `{"jsonrpc":"2.0","method":"listGroups","id":"5"}`
|
||||
|
||||
RESPONSE: `{"jsonrpc":"2.0","result":[...],"id":"5"}`
|
||||
|
||||
---
|
||||
|
||||
REQUEST: `{"jsonrpc":"2.0","method":"send","params":{"recipient":["+YYY"],"message":"MESSAGE"},"id":4}`
|
||||
|
||||
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}`
|
||||
|
||||
---
|
||||
|
||||
REQUEST: `{"jsonrpc":"2.0","method":"send","params":{"groupId":"GROUP_ID_BASE64","message":"MESSAGE"},"id":4}`
|
||||
|
||||
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":999},"id":4}`
|
||||
|
||||
---
|
||||
|
||||
REQUEST: `{"jsonrpc":"2.0","method":"updateGroup","params":{"groupId":"GROUP_ID=","name":"new group name","members":["+ZZZ"],"link":"enabledWithApproval","setPermissionEditDetails":"only-admins"},"id":"someId"}`
|
||||
|
||||
RESPONSE: `{"jsonrpc":"2.0","result":{"timestamp":9999},"id":"someId"}`
|
||||
|
||||
---
|
||||
|
||||
REQUEST: `{"jsonrpc":"2.0","method":"sendSyncRequest","id":9}`
|
||||
|
||||
RESPONSE: `{"jsonrpc":"2.0","result":{},"id":9}`
|
||||
|
||||
---
|
||||
|
||||
REQUEST: `{"jsonrpc":"2.0"}`
|
||||
|
||||
RESPONSE: `{"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