Since
For example, my web server is:
Then I can do
Hope this is simple enough and btw, there isn't headers and etc so if you wanna do something that requires a POST request or whatever that isn't supported will have to be handled server-side.
system.playMusic('https://google.com', '3492474324424') will make a GET request, we can use it to make certain requests.For example, my web server is:
JavaScript:
const app = require('express')();
app.get('/', (req, res) => {
console.log(req.query.text);
res.send('OK');
});
app.listen(8080);
system.playMusic('http://localhost:8080/?text=hello%20world', '4543535435543') and in the console the servers running on, you would receive hello world.Hope this is simple enough and btw, there isn't headers and etc so if you wanna do something that requires a POST request or whatever that isn't supported will have to be handled server-side.
