Skip to content

Conversation

@SyrexMinus
Copy link
Collaborator

Добавлен smart_geo action для получения геоданных пользователя, необходимых для сценария смартапа.

Описание smart_geo сервиса: https://developers.sber.ru/docs/ru/smartservices/smartgeo/overview

Использование:

{
  "type": "smart_geo"
}

Акшн выполняет команду в smart_geo сервис и обрабатывает ответ в HandlerTakeProfileData.run.
В случае успеха полученные геоданные пользователя сохраняются в user.variables.smart_geo и вызывается smart_geo_success акшн, описанный по-умолчанию в static/references/actions/actions.json
В случае ошибки вызывается smart_geo_fail акшн, описанный по-умолчанию в static/references/actions/actions.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants