create an app to get the ID's.
Specify this address as Callback URI in the app settings: #URL#
In the Yandex.Passport API section, select all permissions in the Permissions area.

For full integration with Bitrix24.Drive, select these permissions in the Yandex.Disk REST API section: Specify this address as Callback URI to authenticate mailboxes: #MAIL_URL#,
and select these permissions in the Yandex.Mail section: "; ?>