mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 07:34:23 +01:00
Merge branch 'master' of https://github.com/bbernhard/signal-cli-rest-api
This commit is contained in:
@@ -30,6 +30,7 @@ services:
|
||||
Sample REST API calls:
|
||||
|
||||
* Register a number (with SMS verification)
|
||||
|
||||
```curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/<number>'```
|
||||
|
||||
e.g:
|
||||
|
||||
@@ -35,6 +35,7 @@ In order to send signal messages to other users, you first need to register your
|
||||
e.g:
|
||||
|
||||
This registers the number `+431212131491291` to the Signal network.
|
||||
|
||||
```curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/+431212131491291'```
|
||||
|
||||
After you've sent the registration request, you will receive a token via SMS for verfication. In order to complete the registration process you need to send the verification token back via the following REST request:
|
||||
@@ -42,4 +43,5 @@ After you've sent the registration request, you will receive a token via SMS for
|
||||
```curl -X POST -H "Content-Type: application/json" 'http://<ip>:<port>/v1/register/<number>/verify/<verification code>'```
|
||||
|
||||
e.g:
|
||||
|
||||
```curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/+431212131491291/verify/123-456'```
|
||||
|
||||
Reference in New Issue
Block a user