restCall

Description

Performs a rest API call using a Rest Connector.

Input / Parameter

cookies (Object | List)

Cookies of the API call. Will contain a single object, or a list of one (1) or more objects which consist of:

attachment (Object | List)

The path to the selected file. Will contain a single object, or a list of one (1) or more objects which consist of:

Output

Object

Callback

callback

The action performed if this function runs successfully.

Object

errorCallback

The action performed if this function runs successfully.

Object

Example

In this example, we will create a connection using the restCall function.

Steps

  1. Drag a REST Connector component into the services panel in the Services page and fill the fields.

  2. Drag a button component to a page in the mobile designer.

  3. Select the event press and drag the Connector.restCall function to the event flow and fill in the parameter.

  4. Open the preview and try to press the Button, the rest api call should be visibile on the inspector network tab.

Result

The information of the API call should be returned.

Last updated