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": "799c30cc29b44c52bcaafe3735e9787b",
"expires_in": 300,
"interval": 5,
"user_code": "nquvsq2y",
"verification_url": "https://ya.ru/device"
}