create
Create a new LAML bin containing a cXML/LaML script.
Create a new LAML bin containing a cXML/LaML script.
1 import { RestClient } from "@signalwire/sdk"; 2 3 const client = new RestClient({ 4 project: "your-project-id", 5 token: "your-api-token", 6 host: "your-space.signalwire.com", 7 }); 8 9 const lamlBin = await client.compat.lamlBins.create({ 10 Name: "Greeting", 11 Contents: 12 '<?xml version="1.0" encoding="UTF-8"?>' + 13 "<Response><Say>Hello!</Say></Response>", 14 });