Messaging Functions
HTTP REST APIs
GET Requests
//requires the resource URL as the argument
rest.get({url: ''})
rest.get({url:'https://httpbin.org/get'})
//you can also create a separate object for the argument and pass it to the API
//headers are also supported
let options = {
url: "https:https://httpbin.org/get",
headers: {
'content-type': 'application/json'
}
}
rest.get(options) POST Requests
PUT Requests
PATCH Requests
DELETE Requests
MQTT APIs
Publish
Resubscribe
Force Disconnect
Force Connect
Last updated
Was this helpful?
