Integrate Today
Bloom Rest API
Send simple HTTP requests or use native libraries for your language of choice. You decide.
curl --location 'https://app.bloom-engine.cloud/api/v3.0' \
--header 'x-api-key: api-key' \
--header 'Content-Type: application/json' \
--data '{
"inputs": {
"Sheet1!B2": 12,
"Sheet1!B3": 250000,
"Sheet1!B12": "Manitoba",
"Sheet1!B4": 0.3
},
"outputs": [
"Sheet2!B5",
"Sheet2!B6",
"Sheet2!B7",
"Sheet3!B8",
"Sheet3!B9",
"Sheet1!B29:D30"
]
}'
// npm i bloom-engine
const BloomClient = require('bloom-engine');
(async () => {
const apiVersion = 'v3.0';
const clientKey = 'client-key';
const clientSecret = 'client-secret';
const bloomClient = new BloomClient(apiVersion, clientKey, clientSecret)
const results = await bloomClient
.inputs({
"Sheet1!A2": 10,
"Sheet1!A3": 300000,
})
.outputs([
"Sheet2!B5:B7",
"Sheet2!B12",
])
.calculate();
console.log(results)
console.log('Output1', results.get("Sheet2!B5:B7"));
console.log('Output2:', results.get("Sheet2!B12"));
})();
# pip install bloom-client
from bloom_client import BloomClient
version = 'v3.0'
key = 'your-key'
secret = 'your-secret'
client = BloomClient(version, key, secret)
client.set_inputs({
"Sheet1!B2": 10,
"Sheet1!B3": 300000
}).set_outputs([
"Sheet2!B5",
"Sheet2!B6"
])
client.add_input("Sheet1!B12", "Manitoba")
client.add_output("Sheet3!B7")
results = client.calculate()
output_value = results.get("Sheet3!B57")
print(output_value)
{
"statusCode":0,
"message":"Success",
"data":
{
"Sheet2!B5":"$ 1,072,000.00",
"Sheet2!B6":"$ 3,397,367.14",
"Sheet2!B7":"3.44%",
"Sheet3!B8":"$ 8",
"Sheet3!B9":"$ 7.95",
"Sheet1!B29:D30":["$ 412,622.51","$ 438,055.72"]
}
}