Network functions

Functions for calling external APIs and sites.

get­Remo­te­Ip

Use this to get the user's IP address from the current request.

down­load­Fro­mUr­l(url)

Downloads text from specified URL.

down­load­Fro­mUrl6­4(url)

Downloads text from specified URL and BASE64 encodes it.

http­Get(url, headers)

Calls specified web service and expects JSON. Parses JSON to object.

http­Put(url, data, headers)

Calls specified web service with method PUT. Expects JSON. Parses JSON to object.

http­Pos­t(url, data, headers)

Calls specified web service and expects JSON. Parses JSON to object.

http­Form­P­os­t(url, data, headers)

Same as HttpPost but with values posted in a form setup.

ge­tUp­load­B­ase6­4(filename)

Returns a file by name from the uploaded form as an base64 encoded string.

ge­tUp­load­s

Returns a an array of uploaded files. Use this function to support uploading files through your custom Docly pure JS API's.