Get tag

Definition

Calls the specified URL. The tag works with CallFire XML variables and the PHP script to obtain data from a specified source. The resulting data string can be stored under a varname and referenced later in the script.

Value

The value for the "get" tag is the URL referencing the desired data string.

Attributes

Attribute Required ValuesDescription
name N any text a unique name for the tag
varname Y any text stores the response from the get request to this variable

Examples

Call a URL.
        <get>http://destination.com/test.php?name=${call.path}</get>

Call a URL with an ID and playback the response in a play tag

    <setvar varname="MyID">${call.lastinput}</setvar>
    <get varname="myresult">http://destination.com/test.php?type=MyText&ID=${MyID}</get>
    <play type="tts" voice="male1">${myresult}</play>

Also See