Search found 2 matches
- 02 Aug 2016 20:19
- Forum: RaZberry
- Topic: Access server-side API
- Replies: 4
- Views: 5369
Re: Access server-side API
I'd like to actually load the JS API so that I can interact with it as an object, instead of making HTTP requests to a URL. Instead of my code looking like this: $.get('localhost:8083/JS/Run/zway.devices[3].instances[0].turnOn()) I'd like it to look like this: zway.devices[3].instances[0].turnOn()
- 07 Jun 2016 20:37
- Forum: RaZberry
- Topic: Access server-side API
- Replies: 4
- Views: 5369
Access server-side API
The documentation for Z-Way development, on page 11, refers to accessing the JS API on the server side: "3. zway.devices[3].*: Server Side access using the JS and the public zway object" How can I access the JS API server-side? Is there a JS file that I can include that defines the zway ob...