Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • deprecated

    Use variable.fromJSON instead.

    Parameters

    Returns void

  • jsonToVariableStructure(jsonStr: string, variable: Variable): void
  • Parse the given JSON and fill the content of the variable with it.

    deprecated

    Use variable.fromJSON instead.

    Parameters

    • jsonStr: string

      The JSON string

    • variable: Variable

      The variable where to put the parsed JSON

    Returns void

    true if JSON was properly parsed

  • deprecated

    Use JSON.stringify(variable.toJSObject()) instead.

    Parameters

    Returns string

  • sendAsyncRequest(url: string, body: string, method: string, contentType: string, responseVar: Variable, errorVar: Variable): void
  • Send an asynchronous request to the specified URL, with the specified (text) body, method and contentType (defaults to application/x-www-form-urlencoded). The result is stored in the specified response variable. Any error is stored in the specified error variable.

    Parameters

    • url: string

      The URL to send the request to.

    • body: string

      The content to be sent.

    • method: string

      The method to use ("GET", "POST", "PUT", "HEAD", "DELETE", "PATCH", "OPTIONS")

    • contentType: string

      The content type. Defaults to application/x-www-form-urlencoded if empty.

    • responseVar: Variable

      The variable where to store the response text.

    • errorVar: Variable

      The variable where to store the error message or status code (if status >= 400).

    Returns void

  • sendAwaitableAsyncRequest(url: string, body: string, method: string, contentType: string, responseVar: Variable, errorVar: Variable): PromiseTask
  • sendDeprecatedSynchronousRequest(host: any, uri: any, body: any, method: any, contentType: any, responseVar: any): void
  • deprecated

    Parameters

    • host: any
    • uri: any
    • body: any
    • method: any
    • contentType: any
    • responseVar: any

    Returns void

  • variableStructureToJSON(variable: Variable): string
  • Convert a variable to JSON.

    deprecated

    Use JSON.stringify(variable.toJSObject()) instead.

    Parameters

    • variable: Variable

      The variable to convert to JSON

    Returns string

    The JSON string representing the variable

Generated using TypeDoc