-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
656 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,14 +55,36 @@ onboardingSharedLink: // Шаг процесса онб | |
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "getState", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"identity": "<id из oauth-service>" | ||
} | ||
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "getState", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]" | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"currentState": "(firstStep|verify|setUsername|toBlockChain|registered)" | ||
"currentState": "(firstStep|verify|firstStepEmail|verifyEmail|createIdentity|setUsername|toBlockChain|registered)" | ||
} | ||
} | ||
``` | ||
|
@@ -78,7 +100,8 @@ onboardingSharedLink: // Шаг процесса онб | |
"jsonrpc": "2.0", | ||
"params": { | ||
"phone": "+380000000000", | ||
"captcha": "captcha code" | ||
"captcha": "captcha code", | ||
"captchaType": "(web|android|ios)" | ||
} | ||
} | ||
``` | ||
|
@@ -177,6 +200,117 @@ onboardingSharedLink: // Шаг процесса онб | |
| 1107 | Try later | Try later | | ||
| 1108 | Too many retries | Too many retries | | ||
|
||
### firstStepEmail | ||
|
||
=> Запрос | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "firstStepEmail", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]", | ||
"captcha": "captcha code", | ||
"captchaType": "(web|android|ios)" | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"nextEmailRetry": "2019-10-15T07:57:43.879Z", | ||
"currentState": "verifyEmail" | ||
} | ||
} | ||
``` | ||
|
||
Ошибки | ||
|
||
| Code | Message | Описание | | ||
| ----- | -------------------------- | ------------------------ | | ||
| 1101 | Account already registered | Аккаунт зарегестрирован | | ||
| 1102 | Invalid step taken | Неверный шаг регистрации | | ||
| 1103 | Recaptcha check failed | Ошибка проверки каптчи | | ||
|
||
### verifyEmail | ||
|
||
=> Запрос | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "verifyEmail", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]", | ||
"code": "<code>" | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"currentState": "setUsername" | ||
} | ||
} | ||
``` | ||
|
||
Ошибки | ||
|
||
| Code | Message | Описание | | ||
| ----- | -------------------------- | ------------------------ | | ||
| 1101 | Account already registered | Аккаунт зарегестрирован | | ||
| 1102 | Invalid step taken | Неверный шаг регистрации | | ||
| 1104 | Wrong activation code | Неверный код верификации | | ||
|
||
### resendEmailCode | ||
|
||
=> Запрос | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "resendEmailCode", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]" | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"nextEmailRetry": "2019-10-15T07:57:43.879Z", | ||
"currentState": "verifyEmail" | ||
} | ||
} | ||
``` | ||
|
||
Ошибки | ||
|
||
| Code | Message | Описание | | ||
| ----- | -------------------------- | ------------------------ | | ||
| 1101 | Account already registered | Аккаунт зарегестрирован | | ||
| 1102 | Invalid step taken | Неверный шаг регистрации | | ||
| 1107 | Try later | Try later | | ||
| 1108 | Too many retries | Too many retries | | ||
|
||
### setUsername | ||
|
||
=> Запрос | ||
|
@@ -193,6 +327,30 @@ onboardingSharedLink: // Шаг процесса онб | |
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "setUsername", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"identity": "<id из oauth-service>", | ||
"username": "some-user-name" | ||
} | ||
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "setUsername", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]", | ||
"username": "some-user-name" | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
|
@@ -233,6 +391,36 @@ onboardingSharedLink: // Шаг процесса онб | |
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "toBlockChain", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"identity": "<id из oauth-service>", | ||
"username": "some-user-name", | ||
"userId": "<userId c шага setUsername>", | ||
"publicOwnerKey": "GLS8Bb....", | ||
"publicActiveKey": "GLS35B...." | ||
} | ||
} | ||
``` | ||
|
||
```json | ||
{ | ||
"id": 1, | ||
"method": "toBlockChain", | ||
"jsonrpc": "2.0", | ||
"params": { | ||
"email": "[email protected]", | ||
"username": "some-user-name", | ||
"userId": "<userId c шага setUsername>", | ||
"publicOwnerKey": "GLS8Bb....", | ||
"publicActiveKey": "GLS35B...." | ||
} | ||
} | ||
``` | ||
|
||
<= Ответ | ||
|
||
```json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.4.0 | ||
1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.