Divooka Reference

Office Data

8 nodes

On this page 8

Format Url

Function

Puts values into a URL template: {0} becomes the first, {1} the second, each escaped for a URL.

Signature
FormatUrl -> Text
    template: Text
    first: Any
    second: Any
    third: Any
string FormatUrl(
    string template,
    object first,
    object second,
    object third)

Parameters

nametypedefaultdescription
templateText—The URL with {0}, {1}, {2} where values go.
firstAny—The value for {0}.
secondAny—The value for {1}.
thirdAny—The value for {2}.

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Http Get

Function

The text an HTTP GET to a URL answers. The document must have been allowed to reach the URL's origin.

Signature
HttpGet(URL: Text) -> Text
string HttpGet(string url)

Parameters

nametypedefaultdescription
URLText—An http or https address.

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Http Get Bytes

Function

The bytes an HTTP GET to a URL answers, for a picture. The document must have been allowed to reach the URL's origin.

Signature
HttpGetBytes(URL: Text) -> Byte Array
byte[] HttpGetBytes(string url)

Parameters

nametypedefaultdescription
URLText—An http or https address.

Returns

resultByte Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Json Number

Function

One number from JSON text, at a path such as current.temperature_2m or daily.temperature_2m_max[0].

Signature
JsonNumber(JSON: Text, path: Text) -> Number
double JsonNumber(string json, string path)

Parameters

nametypedefaultdescription
JSONText—The JSON text.
pathText—Dotted names, with [n] for an element of a list.

Returns

resultNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Json Numbers

Function

A list of numbers from JSON text, at a path such as daily.temperature_2m_max.

Signature
JsonNumbers(JSON: Text, path: Text) -> Number Array
double[] JsonNumbers(string json, string path)

Parameters

nametypedefaultdescription
JSONText—The JSON text.
pathText—Dotted names, with [n] for an element of a list.

Returns

resultNumber Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Json Text

Function

One piece of text from JSON text, at a path; a number or true/false is written as text.

Signature
JsonText(JSON: Text, path: Text) -> Text
string JsonText(string json, string path)

Parameters

nametypedefaultdescription
JSONText—The JSON text.
pathText—Dotted names, with [n] for an element of a list.

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Json Texts

Function

A list of texts from JSON text, at a path such as daily.time.

Signature
JsonTexts(JSON: Text, path: Text) -> Text Array
string[] JsonTexts(string json, string path)

Parameters

nametypedefaultdescription
JSONText—The JSON text.
pathText—Dotted names, with [n] for an element of a list.

Returns

resultText Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office

Read Text File

Function

The text of a file. The document must have been allowed to read it.

Signature
ReadTextFile(path: Text) -> Text
string ReadTextFile(string path)

Parameters

nametypedefaultdescription
pathText—The file.

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Data
Package
Methodox Office