How do I get a user's date/time or timezone information for an Alexa Skill?

后端 未结 1 459
隐瞒了意图╮
隐瞒了意图╮ 2021-01-13 14:52

I\'m using Lambda (Python) to develop a skill and I\'m interested in giving the user some time-related information. On the request object there is a times

相关标签:
1条回答
  • 2021-01-13 15:48

    It is now possible to get the user's timezone using the Alexa Settings API. See the related blogpost for official information about this feature's release.

    The endpoint you'll be interested in is the following:

    GET /v2/devices/{deviceId}/settings/System.timeZone
    

    You simply need to provide the user's device ID, which is part of the received intent. The response will contain a timezone name, for instance "Europe/London".

    0 讨论(0)
提交回复
热议问题