### Get Data with .NET SDK Source: https://developer.luzmo.com/api/getData This example demonstrates how to retrieve data using the .NET SDK. Ensure the LuzmoSDK package is installed and your credentials are set. ```csharp Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic find = new ExpandoObject(); find.queries = new List { new { dimensions = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } }, measures = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "bf99d517-69ff-409f-b866-c2e53a8ea37c", aggregation = new { type = "sum" } } }, where = new List { }, having = new List { }, order = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", order = "desc" } }, options = new { locale_id = "en", timezone_id = "Europe/Brussels" } } }; dynamic response = client.get("data", find); ``` -------------------------------- ### .NET SDK - Get Data Source: https://developer.luzmo.com/api/getData Example of how to fetch data using the .NET SDK. It demonstrates initializing the client and making a 'get' request with a specific query. ```APIDOC ## .NET SDK - Get Data ### Description This snippet shows how to install and use the .NET SDK to retrieve data from the Luzmo API. It includes client initialization with API credentials and an example of a `get` request. ### Installation ```bash dotnet add package LuzmoSDK ``` ### Usage ```csharp using System.Collections.Generic; using System.Dynamic; Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic find = new ExpandoObject(); find.queries = new List { new { dimensions = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } }, measures = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "bf99d517-69ff-409f-b866-c2e53a8ea37c", aggregation = new { type = "sum" } } }, where = new List { }, having = new List { }, order = new List { new { dataset_id = "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id = "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", order = "desc" } }, options = new { locale_id = "en", timezone_id = "Europe/Brussels" } } }; dynamic response = client.get("data", find); ``` ``` -------------------------------- ### Java SDK - Get Data Source: https://developer.luzmo.com/api/getData Example of how to fetch data using the Java SDK. It demonstrates initializing the client and making a 'get' request with a specific query. ```APIDOC ## Java SDK - Get Data ### Description This snippet shows how to install and use the Java SDK to retrieve data from the Luzmo API. It includes client initialization with API credentials and an example of a `get` request. ### Installation ```bash // Add the following dependency to your pom.xml: // // com.luzmo // sdk // ... // ``` ### Usage ```java import com.luzmo.Luzmo; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableList; import org.json.JSONObject; Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); JSONObject response = client.get("data", ImmutableMap.of( "queries" , ImmutableList.of( ImmutableMap.of( "dimensions" , ImmutableList.of( ImmutableMap.of( "dataset_id" , "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id" , "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" ) ), "measures" , ImmutableList.of( ImmutableMap.of( "dataset_id" , "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id" , "bf99d517-69ff-409f-b866-c2e53a8ea37c", "aggregation" , ImmutableMap.of( "type" , "sum" ) ) ), "where" , ImmutableList.of( ), "having" , ImmutableList.of( ), "order" , ImmutableList.of( ImmutableMap.of( "dataset_id" , "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id" , "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", "order" , "desc" ) ), "options" , ImmutableMap.of( "locale_id" , "en", "timezone_id" , "Europe/Brussels" ) ) ) ) ); ``` ``` -------------------------------- ### Search SSOConfig using Node.js SDK Source: https://developer.luzmo.com/api/searchSSOConfig This Node.js example demonstrates how to initialize the Luzmo client and search for an SSO configuration by its ID. Install the SDK using 'npm install @luzmo/nodejs-sdk'. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('ssoconfig', { where: { id: "< ssoconfig ID >" } } ); ``` -------------------------------- ### Python SDK - Get Data Source: https://developer.luzmo.com/api/getData Example of how to fetch data using the Python SDK. It demonstrates initializing the client and making a 'get' request with a specific query. ```APIDOC ## Python SDK - Get Data ### Description This snippet shows how to install and use the Python SDK to retrieve data from the Luzmo API. It includes client initialization with API credentials and an example of a `get` request. ### Installation ```bash pip install luzmo-sdk ``` ### Usage ```python from luzmo.luzmo import Luzmo client = Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.get("data", { "queries": [ { "dimensions": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } ], "measures": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "bf99d517-69ff-409f-b866-c2e53a8ea37c", "aggregation": { "type": "sum" } } ], "where": [], "having": [], "order": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", "order": "desc" } ], "options": { "locale_id": "en", "timezone_id": "Europe/Brussels" } } ] } ) ``` ``` -------------------------------- ### Create Account using .NET SDK Source: https://developer.luzmo.com/api/createAccount This .NET example illustrates creating an account using the Luzmo SDK. Install the SDK via 'dotnet add package LuzmoSDK'. The client is initialized with API credentials and host, and the create method is called with dynamic properties for the new account. ```csharp Luzmo client = new Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic properties = new ExpandoObject(); properties.provider = "demodataplugin"; properties.name = "Demo data connection"; properties.description = new { en = "Connection to the demo data plugin" }; dynamic response = client.create("account", properties); ``` -------------------------------- ### Get Hierarchy with Node.js SDK Source: https://developer.luzmo.com/api/getHierarchy Example of fetching hierarchy data using the Luzmo Node.js SDK. Install the SDK using 'npm install @luzmo/nodejs-sdk'. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('hierarchy', { where: { securable_id: "", column_id: "" } } ); ``` -------------------------------- ### .NET SDK Example Source: https://developer.luzmo.com/api/createAccount Example of how to create an account using the .NET SDK. ```APIDOC ## .NET SDK ### Description This example shows how to create an account using the Luzmo .NET SDK. ### Installation `dotnet add package LuzmoSDK` ### Code ```csharp Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic properties = new ExpandoObject(); properties.provider = "demodataplugin"; properties.name = "Demo data connection"; properties.description = new { en = "Connection to the demo data plugin" }; dynamic response = client.create("account", properties); ``` ``` -------------------------------- ### Get Hierarchy with .NET SDK Source: https://developer.luzmo.com/api/getHierarchy Example usage of the Luzmo .NET SDK to fetch hierarchy data. Install the SDK via 'dotnet add package LuzmoSDK'. ```csharp Luzmo client = new Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic find = new ExpandoObject(); find.where = new { securable_id = "", column_id = "" }; dynamic response = client.get("hierarchy", find); ``` -------------------------------- ### Java SDK Example Source: https://developer.luzmo.com/api/createAccount Example of how to create an account using the Java SDK. ```APIDOC ## Java SDK ### Description This example demonstrates how to create an account using the Luzmo Java SDK. ### Installation `pkg:maven/com.luzmo/sdk` ### Code ```java Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); JSONObject response = client.create("account", ImmutableMap.of( "provider" , "demodataplugin", "name" , "Demo data connection", "description" , ImmutableMap.of( "en" , "Connection to the demo data plugin" ) ) ); ``` ``` -------------------------------- ### Search IQConversation using Node.js SDK Source: https://developer.luzmo.com/api/searchIQConversation This Node.js example demonstrates how to initialize the Luzmo SDK and perform a search for IQ conversations. Pass the resource name and a filter object to the `get` method. Install the SDK using `npm install @luzmo/nodejs-sdk`. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('iqconversation', { where: { id: "1ee074a1-c68f-4722-8641-2a8c4d92da44" } } ); ``` -------------------------------- ### Create Account using Node.js SDK Source: https://developer.luzmo.com/api/createAccount This Node.js example demonstrates creating an account using the official Luzmo SDK. Install the SDK using 'npm install @luzmo/nodejs-sdk'. The client is initialized with API credentials and host, and the create method is used to add a new account. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.create('account', { provider: "demodataplugin", name: "Demo data connection", description: { en: "Connection to the demo data plugin" } } ); ``` -------------------------------- ### Search Plugins with .NET SDK Source: https://developer.luzmo.com/api/searchPlugin This C# example illustrates searching for plugins and including organization data with the Luzmo .NET SDK. Remember to substitute the placeholder credentials and host. ```csharp Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic find = new ExpandoObject(); find.include = new List { new { model = "Organization", where = new { id = "< your organization id >" }, jointype = "inner" } }; dynamic response = client.get("plugin", find); ``` -------------------------------- ### Get Hierarchy with Python SDK Source: https://developer.luzmo.com/api/getHierarchy Shows how to get hierarchy information using the Luzmo Python SDK. Install it with 'pip install luzmo-sdk'. ```python from luzmo.luzmo import Luzmo client = Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.get("hierarchy", { "where": { "securable_id": "", "column_id": "" } } ) ``` -------------------------------- ### Node SDK Example Source: https://developer.luzmo.com/api/createAccount Example of how to create an account using the Node.js SDK. ```APIDOC ## Node SDK ### Description This example shows how to create an account using the official Luzmo Node.js SDK. ### Installation `npm install @luzmo/nodejs-sdk` ### Code ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.create('account', { provider: "demodataplugin", name: "Demo data connection", description: { en: "Connection to the demo data plugin" } } ); ``` ``` -------------------------------- ### Get Data API Request Example Source: https://developer.luzmo.com/api/getData This example demonstrates how to make a GET request to the Luzmo data API using cURL. It includes a sample JSON payload for specifying dimensions, measures, ordering, and options. ```bash curl https://api.luzmo.com/0.1.0/data -H "Content-Type: application/json" -d @- << EOF { "action": "get", "version": "0.1.0", "key": "", "token": "", "find": { "queries": [ { "dimensions": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } ], "measures": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "bf99d517-69ff-409f-b866-c2e53a8ea37c", "aggregation": { "type": "sum" } } ], "where": [], "having": [], "order": [ { "dataset_id": "a4fbb816-8339-4e22-8ff0-ea48255ce048", "column_id": "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", "order": "desc" } ], "options": { "locale_id": "en", "timezone_id": "Europe/Brussels" } } ] } } EOF ``` -------------------------------- ### Search IQConversation using .NET SDK Source: https://developer.luzmo.com/api/searchIQConversation This C# example demonstrates searching for IQ conversations with the Luzmo .NET SDK. After initializing the client, construct a dynamic object for the search parameters, including the `where` clause, and pass it to the `get` method. Install the SDK via `dotnet add package LuzmoSDK`. ```csharp Luzmo client = new Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic find = new ExpandoObject(); find.where = new { id = "1ee074a1-c68f-4722-8641-2a8c4d92da44" }; dynamic response = client.get("iqconversation", find); ``` -------------------------------- ### Create Schedule with .NET SDK Source: https://developer.luzmo.com/api/createSchedule This C# example demonstrates creating a schedule using the Luzmo .NET SDK. Install the SDK via NuGet with 'dotnet add package LuzmoSDK'. It shows how to define schedule properties using dynamic objects. ```csharp Luzmo client = new Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic properties = new ExpandoObject(); properties.type = "screenshot"; properties.subtype = "export"; properties.started_at = "2017-08-30T14:30:15Z"; properties.frequency = 1440; properties.task = new { type = "png", locale_id = "en", screenmode = "desktop", emails = new List { "test-user@documentation.com" } }; properties.active = true; dynamic response = client.create("schedule", properties); ``` -------------------------------- ### Java SDK Example Source: https://developer.luzmo.com/api/createDataprovider Example of how to create a dataprovider using the Luzmo Java SDK, specifying tables from a PostgreSQL provider. ```APIDOC ## Java SDK ### Request Example ```java Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); JSONObject response = client.create("dataprovider", ImmutableMap.of( "provider" , "postgresql", "account_id" , "", "tables" , ImmutableList.of( ImmutableMap.of( "table" , "burritos", "schema" , "public" ), ImmutableMap.of( "table" , "burrito_shops", "schema" , "public" ) ) ) ); ``` ``` -------------------------------- ### Search IQConversation using PHP SDK Source: https://developer.luzmo.com/api/searchIQConversation This PHP example demonstrates how to search for IQ conversations using the Luzmo SDK. Initialize the client using `Luzmo::initialize` with your API key, token, and host. Then, use the `get` method, passing the resource and an array for the search parameters. Install the SDK with `composer require luzmo/luzmo-sdk-php`. ```php ', '', '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' ); $response = $client->get("iqconversation", array ( 'where' => array ( 'id' => "1ee074a1-c68f-4722-8641-2a8c4d92da44" ) ) ); ?> ``` -------------------------------- ### Create Acceleration with Node.js SDK Source: https://developer.luzmo.com/api/createAcceleration This Node.js SDK example demonstrates creating an acceleration. It requires installing the SDK and initializing the client with your API credentials and host. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.create('acceleration', { load_type: "full", schedule: { frequency_unit: "day", frequency_quantity: 1 } } ); ``` -------------------------------- ### Delete IQConversation using Python SDK Source: https://developer.luzmo.com/api/deleteIQConversation Python example for deleting an IQ conversation. Ensure you have the SDK installed with 'pip install luzmo-sdk'. ```python from luzmo.luzmo import Luzmo client = Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.delete("iqconversation", "1ee074a1-c68f-4722-8641-2a8c4d92da44" ) ``` -------------------------------- ### Create Account using Java SDK Source: https://developer.luzmo.com/api/createAccount This Java example shows how to create an account with the Luzmo SDK. Add the SDK dependency using 'pkg:maven/com.luzmo/sdk'. The client is initialized with API credentials and host, and the create method is used with a map of account properties. ```java Luzmo client = new Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); JSONObject response = client.create("account", ImmutableMap.of( "provider" , "demodataplugin", "name" , "Demo data connection", "description" , ImmutableMap.of( "en" , "Connection to the demo data plugin" ) ) ); ``` -------------------------------- ### Delete Column using Python SDK Source: https://developer.luzmo.com/api/deleteColumn This Python SDK example shows how to delete a column. Install the SDK using 'pip install luzmo-sdk'. ```python from luzmo.luzmo import Luzmo client = Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.delete("column", "" ) ``` -------------------------------- ### Search SSOConfig using PHP SDK Source: https://developer.luzmo.com/api/searchSSOConfig This PHP example shows how to initialize the Luzmo SDK and search for an SSO configuration by ID. Use Composer to install the SDK: 'composer require luzmo/luzmo-sdk-php'. ```php ', '', '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' ); $response = $client->get("ssoconfig", array ( 'where' => array ( 'id' => "< ssoconfig ID >" ) ) ); ?> ``` -------------------------------- ### Delete Column using Node.js SDK Source: https://developer.luzmo.com/api/deleteColumn This Node.js SDK example demonstrates how to delete a column. Install the SDK using 'npm install @luzmo/nodejs-sdk'. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); await client.delete('column', ''); ``` -------------------------------- ### Initialize and Get Data with PHP SDK Source: https://developer.luzmo.com/api/getData Initializes the Luzmo client and makes a GET request for data. Ensure you have the SDK installed via composer. ```php ', '', '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' ); $response = $client->get("data", array ( 'queries' => array ( array ( 'dimensions' => array ( array ( 'dataset_id' => "a4fbb816-8339-4e22-8ff0-ea48255ce048", 'column_id' => "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" ) ), 'measures' => array ( array ( 'dataset_id' => "a4fbb816-8339-4e22-8ff0-ea48255ce048", 'column_id' => "bf99d517-69ff-409f-b866-c2e53a8ea37c", 'aggregation' => array ( 'type' => "sum" ) ) ), 'where' => array (), 'having' => array (), 'order' => array ( array ( 'dataset_id' => "a4fbb816-8339-4e22-8ff0-ea48255ce048", 'column_id' => "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", 'order' => "desc" ) ), 'options' => array ( 'locale_id' => "en", 'timezone_id' => "Europe/Brussels" ) ) ) ) ); ?> ``` -------------------------------- ### Node.js SDK Example Source: https://developer.luzmo.com/api/createDataprovider Example of how to create a dataprovider using the Luzmo Node.js SDK, specifying tables from a PostgreSQL provider. ```APIDOC ## Node SDK ### Request Example ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.create('dataprovider', { provider: "postgresql", account_id: "", tables: [ { table: "burritos", schema: "public" }, { table: "burrito_shops", schema: "public" } ] } ); ``` ``` -------------------------------- ### Dissociate Column using Python SDK Source: https://developer.luzmo.com/api/dissociateColumn A Python example for dissociating a column from a hierarchy level using the Luzmo SDK. Install it with `pip install luzmo-sdk`. ```python from luzmo.luzmo import Luzmo client = Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.dissociate("column", "", "HierarchyLevels", "" {} ) ``` -------------------------------- ### Create Full Load Acceleration with PHP SDK Source: https://developer.luzmo.com/api/createAcceleration Set up a full load acceleration using the PHP SDK. Install the SDK via Composer. ```php ', '', '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' ); $response = $client->create("acceleration", array ( 'load_type' => "full", 'schedule' => array ( 'frequency_unit' => "day", 'frequency_quantity' => 1 ) ) ); ?> ``` -------------------------------- ### Delete Organization using Python SDK Source: https://developer.luzmo.com/api/deleteOrganization This Python example shows how to delete an organization using the Luzmo SDK. Install the SDK with 'pip install luzmo-sdk'. ```python from luzmo.luzmo import Luzmo client = Luzmo( "", "", "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ) response = client.delete("organization", "" ) ``` -------------------------------- ### Initialize PHP SDK and Create Theme Source: https://developer.luzmo.com/api/createTheme Use this snippet to initialize the Luzmo PHP SDK client and create a new theme. Ensure you replace placeholder values with your actual API key, token, and API endpoint. ```php ', '', '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' ); $response = $client->create("theme", array ( 'name' => array ( 'en' => "Ecstasy" ), 'theme' => array ( 'font' => array ( 'fontSize' => 17, 'fontFamily' => "Carrois Gothic" ), 'type' => "custom", 'title' => array ( 'bold' => false, 'align' => "left", 'border' => false, 'italic' => false, 'underline' => false ), 'colors' => array ( "rgb(89,116,153)", "rgb(131,144,170)", "rgb(99,106,121)", "rgb(194,198,206", "rgb(218,230,245)", "rgb(157,186,245)", "rgb(89,134,227)", "rgb(9,66,184)", "rgb(1,20,59)", "rgb(202,218,252)", "#95E88C", "#C1F3B7", "#685AC2", "#958FD3", "#B4B6E4", "#D7D7EF", "#636363", "#969696", "#BDBDBD", "#D9D9D9" ), 'borders' => array ( 'border-color' => "rgb(185,204,229)", 'border-style' => "solid", 'border-radius' => "10px", 'border-top-width' => "1px", 'border-left-width' => "1px", 'border-right-width' => "1px", 'border-bottom-width' => "1px" ), 'margins' => array ( 10, 10 ), 'boxShadow' => array ( 'size' => "none", 'color' => "rgb(0,0,0)" ), 'mainColor' => "rgb(89,116,153)", 'background' => "rgb(220,203,196)", 'editBackground' => "rgb(205, 189, 183)", 'editDarkOrLight' => "light-edit", 'itemsBackground' => "rgba(255,255,255,0.54)" ) ) ); ?> ``` -------------------------------- ### Create Integration with Node.js SDK Source: https://developer.luzmo.com/api/createIntegration This Node.js example demonstrates creating an integration using the Luzmo SDK. Install the SDK using 'npm install @luzmo/nodejs-sdk'. The 'create' method takes the resource type ('integration') and properties as arguments. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.create('integration', { name: { en: "< integration name in English ›", fr: "< integration name in French >" }, login_provider_url: null } ); ``` -------------------------------- ### Node.js SDK - Get Data Source: https://developer.luzmo.com/api/getData Example of how to fetch data using the Node.js SDK. It demonstrates initializing the client and making a 'get' request with a specific query. ```APIDOC ## Node.js SDK - Get Data ### Description This snippet shows how to install and use the Node.js SDK to retrieve data from the Luzmo API. It includes client initialization with API credentials and an example of a `get` request. ### Installation ```bash npm install @luzmo/nodejs-sdk ``` ### Usage ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('data', { queries: [ { dimensions: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } ], measures: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "bf99d517-69ff-409f-b866-c2e53a8ea37c", aggregation: { type: "sum" } } ], where: [], having: [], order: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", order: "desc" } ], options: { locale_id: "en", timezone_id: "Europe/Brussels" } } ] }); ``` ``` -------------------------------- ### Create Full Load Acceleration with .NET SDK Source: https://developer.luzmo.com/api/createAcceleration Utilize the .NET SDK to set up a full load acceleration. Install the SDK using the dotnet CLI. ```csharp Luzmo client = new Luzmo( "', "', "< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >" ); dynamic properties = new ExpandoObject(); properties.load_type = "full"; properties.schedule = new { frequency_unit = "day", frequency_quantity = 1 }; dynamic response = client.create("acceleration", properties); ``` -------------------------------- ### Get Data with Node.js SDK Source: https://developer.luzmo.com/api/getData Use the Node.js SDK to make a GET request for data. Ensure you have installed the SDK and configured your API credentials and host. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('data', { queries: [ { dimensions: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c" } ], measures: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "bf99d517-69ff-409f-b866-c2e53a8ea37c", aggregation: { type: "sum" } } ], where: [ ], having: [ ], order: [ { dataset_id: "a4fbb816-8339-4e22-8ff0-ea48255ce048", column_id: "1de5f517-8ff0-d09f-c8cc-c4825a8ea37c", order: "desc" } ], options: { locale_id: "en", timezone_id: "Europe/Brussels" } } ] } ); ``` -------------------------------- ### Shell / cURL Example Source: https://developer.luzmo.com/api/createAccount Example of how to create an account using cURL. ```APIDOC ## Shell / cURL ### Description This example demonstrates how to create an account using a cURL command. ### Code ```bash curl https://api.luzmo.com/0.1.0/account -H "Content-Type: application/json" -d @- << EOF { "action": "create", "version": "0.1.0", "key": "", "token": "", "properties": { "provider": "demodataplugin", "name": "Demo data connection", "description": { "en": "Connection to the demo data plugin" } } } EOF ``` ``` -------------------------------- ### Install Luzmo Web Component via npm Source: https://developer.luzmo.com/guide/dashboard-embedding--embed-into-application Install the Luzmo web component using npm. This is the recommended method to ensure you get the latest version. ```bash npm i @luzmo/embed ``` -------------------------------- ### Search Dashboard with Node.js SDK Source: https://developer.luzmo.com/api/searchDashboard This Node.js example demonstrates how to search for a dashboard using its ID with the Luzmo SDK. Install the SDK using `npm install @luzmo/nodejs-sdk`. ```javascript import Luzmo from '@luzmo/nodejs-sdk'; const client = new Luzmo({ api_key: '', api_token: '', host: '< https://api.luzmo.com (default) or https://api.us.luzmo.com or your VPC-specific address >' }); const response = await client.get('securable', { where: { id: "< your dashboard ID >" } } ); ```