Step 1: Install API Connector Plugin
- Log into Bubble.io and open your project.
- Navigate to Plugins > Add Plugin > Search for API Connector > Install.
Step 2: Configure the SpreadsheetWeb API
- Open API Connector > Add another API.
- Name it (e.g., “SSWeb API”).
- Set Authentication to None or self-handled.
API Call Configuration:
- Name:
CalculateSimple - Method:
POST - API Endpoint:
https://api.spreadsheetweb.com/calculations/calculatesinglesimple
- Headers:
Content-Type: application/json Authorization: Bearer <your-token> (if using token-based authentication)
- Body:
{
"workspaceId": "<workspaceId>",
"applicationId": "<applicationId>",
"inputs": {
"Input1": "<Input1>",
"Input2": "<Input2>",
"Table1": "<Table1>"
},
"outputs": ["Output1", "Output2", "Table2"]
}
Step 3: Design the User Interface
- Input Fields:
- Add Text Input fields for Input1 and Input2.
- Add a Multiline Input for Table1 (if table input is required).
- Output Fields:
- Add Text elements for Output1 and Output2.
- Use a Repeating Group for Table2 to display tabular data dynamically.
- Submit Button:
- Add a button to trigger the API call.
Step 4: Configure the Workflow
- Go to the Workflows tab.
- Create a new workflow triggered by the Submit Button.
- Add the API Call:
- Map inputs dynamically:
Input1→ Value of Input1 FieldInput2→ Value of Input2 FieldTable1→ Value of Table1 Field
- Map inputs dynamically:
- Display Results:
- Set Output1 to
Result of API call → response → Output1. - Set Output2 to
Result of API call → response → Output2. - Use a Repeating Group to display
Table2data.
- Set Output1 to
Step 5: Test the Integration
- Go to Preview Mode.
- Enter test values in
Input1,Input2, andTable1. - Click Submit and confirm that the outputs display correctly.