ezeio2:apiref:subscribe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
ezeio2:apiref:subscribe [2021-01-27 19:02] andrehezeio2:apiref:subscribe [2021-01-27 22:22] andreh
Line 1: Line 1:
 ==== subscribe ==== ==== subscribe ====
  
-Request a websocket data stream, and commands to manage the data stream+Request a websocket data stream, and commands to manage the data stream.
  
 === Description === === Description ===
Line 118: Line 118:
 <code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/ABC123</code> <code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/ABC123</code>
 The log updates will revert to normal (buffered) mode after 30 minutes. The log updates will revert to normal (buffered) mode after 30 minutes.
- 
-To request 10s status updates, the call is: 
-<code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/!ABC123</code> 
-The status updates will revert to normal (10 minute) updates after 5 minutes. 
  
 To cancel updates, the call is: To cancel updates, the call is:
Line 127: Line 123:
  
 Multiple requests can be sent in the same command: Multiple requests can be sent in the same command:
-<code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/-ABC123,ABC124,ABC321,!ABC322</code> +<code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/-ABC123,ABC124,ABC321,-ABC322</code> 
 +Up to 50 devices can be included in the same command
  
 === Example code (PHP) === === Example code (PHP) ===
  • ezeio2/apiref/subscribe.txt
  • Last modified: 2021-01-28 23:49
  • by andreh