Class's methods
Definition:
Ubidots class's can be invoked directly from the class's instance, instead of having to register a callback for a particular event as in Ubidots custom events case.
Usage:
After declaring an instance of the Ubidots class as:
You can invoke any of such methods as:
Where:
Ubidots
: is the constructor of the Ubidots classubidots
: is an instance of the Ubidots classmethod
: is any of the following methods available on Ubidots.args
: Themethod
arguments
Available methods:
Method | Arguments | Description | Usage example | Response example |
---|---|---|---|---|
| no arguments | returns a JSON object with the request headers with which an event was executed |
|
Last updated