getUrl [DEPRECATED]

DEPRECATED: Use the BotTalk HTTP Plugin to make GET, POST, PUT, PATCH and DELETE requests against the RESTful API from your Alexa Skills and Google Actions.

This action fetches content of url, and puts it into a Context Variable. Argument url indicates, what url to fetch. Url is parsed as a TWIG-template. By default, action saves response into urlResponse variable, but optional parameter save_as can change the name of variable. Later the result can be used as twig variable. If action receives JSON as a response, it is converted into multidimensional array, and can be accessed as an array in TWIG.

Example:

actions:
  - getUrl:
      url: 'https://test.com/?apikey='
      save_as: 'my_api_response'

Written by Andrey Esaulov on 12 March 2019

Updated on 12 March 2019