Send web request to [value] and store answer in [variable]
Last modified by Stephan Robinig on 2020/12/06 09:30
Example
Sends a web request to retrieve a random joke. The answer is extracted with the help of regular expressions.
The free joke api returns data in the following json format:
{"id":10,"type":"general","setup":"What kind of shoes does a thief
wear?","punchline":"Sneakers"}
To extract the setup phrase in case you stored the result in variable "joke", use the following regular expression:
regular expression( '"setup":"(.*?)"' , "joke" )
The result will be: What kind of shoes does a thief wear?
To extract the setup phrase, use the following regular expression:
regular expression( '"punchline":"(.*?)"' , "joke" )
The result will be: Sneakers