[JS Engine] Fix function hack; [Examples] Add FbLikebox;

This commit is contained in:
2023-08-17 00:24:39 +02:00
parent 37ea0db733
commit 89f3576881
7 changed files with 83 additions and 152 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env node
const BeeWarehouse = require('../../BeeWarehouse.js');
let ExampleCom = BeeWarehouse.LoadBeesFile('./ExampleCom.xml').ExampleCom;
let Info = ExampleCom.Functions.GetInfo();
console.log(Info);

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<bees>
<bee name="ExampleCom" apiurl="https://example.com">
<function name="GetInfo">
<request method="GET" path="/" format="HTML">
<value name="Title" source="body" path="/html/body//h1[1]" key="text"/>
<value name="Description" source="body" path="/html/body//p[1]" key="text"/>
</request>
</function>
</bee>
</bees>