Get confirmation code
Gets the confirmation code and the address of the page where it needs to be entered
- Parameters
- Advanced call ?
Function GetConfirmationCode(Val ClientId) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| ClientId | --id | String | ✔ | Client id |
Returns
Map Of KeyAndValue - serialized JSON response from Yandex
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
ClientID = "cc2ce9d60deb4975be58866d32dbe7aa";
Result = OPI_YandexDisk.GetConfirmationCode(ClientID);
- Bash
- CMD/Bat
oint yadisk GetConfirmationCode \
--id "cc2ce9d60deb4975be58866d32dbe7aa"
oint yadisk GetConfirmationCode ^
--id "cc2ce9d60deb4975be58866d32dbe7aa"
Result
{
"device_code": "33ad1575a70a4fdc8f014d7586e67e7b",
"expires_in": 300,
"interval": 5,
"user_code": "23shsepo",
"verification_url": "https://ya.ru/device"
}