question

Fernando Schuab avatar image
Fernando Schuab asked

I need way to make queries to an external api every 30 seconds in the api, this constantly while the skill is active.

Hello.

I'm developing a radio skill, which updates APL screen info every 30 seconds getting from an external API.

I'm having big problems, since the dev version works, but the live one doesn't.

_I was using a handleTick with a SendEvent to do this. But handleTick is fast-mode and SendEvent can generate incompatibilities.

_Try a SendEvent onMount, with a hander that caught such event and checked the api and then returned a responsebuilder with Alexa.Presentation.APL.ExecuteCommands directive to execute the command again and feed back. It doesn't work either


IN BRIEF, I NEED:

_ A way to make queries to an external api every 30 seconds in the api, this constantly while the skill is active.

How can I do this?

api
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers