// Import MBurger SDKconstmburger=require('mburger');// Init the connectionconstinstance=mburger.createClient({ api_key:'1234567890'});// Get a specific blockinstance.getSection({ section_id:10088, locale:'it', original_media:false}).then(result =>console.log(result));
3.3 - Retrieve a single Block
3.3.1 - Sample code
// Import MBurger SDKconstmburger=require('mburger');// Init the connectionconstinstance=mburger.createClient({ api_key:'1234567890'});// Retrieve a specific blockinstance.getBlock({ block_id:884, locale:'it', original_media:false}).then(result =>console.log(result));
3.4 - Retrieve multiple Blocks
3.4.1 - Sample code
// Import MBurger SDKconstmburger=require('mburger');// Init the connectionconstinstance=mburger.createClient({ api_key:'1234567890'});// Retrieve data from the blockinstance.getBlocks({ block_ids: [884,886], locale:'it'}).then(result =>console.log(result));