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 00:10] andrehezeio2:apiref:subscribe [2021-01-27 00:32] andreh
Line 115: Line 115:
 With an open websocket and while receiving data from the ezeio system, you can call the subscribe API to request immediate updates or to cancel updates from a certain ezeio. With an open websocket and while receiving data from the ezeio system, you can call the subscribe API to request immediate updates or to cancel updates from a certain ezeio.
  
-To request fast updates, the call is:+To request unbuffered log updates, the call is: 
 +<code>https://api.eze.io/v1/subscribe/wstktXXXXXXXXXXXXXXXXXXXXXXX/.ABC123</code> 
 +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> <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 135: Line 140:
  
     // Using the textalk/websocket client     // Using the textalk/websocket client
 +    // https://github.com/Textalk/websocket-php
     require('vendor/autoload.php');     require('vendor/autoload.php');
     use WebSocket\Client;     use WebSocket\Client;
  
-    // Request a websocket key using cURL+    // Request a websocket key and metadata using cURL
     $ch = curl_init();     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, APIURI);     curl_setopt($ch, CURLOPT_URL, APIURI);
  • ezeio2/apiref/subscribe.txt
  • Last modified: 2021-01-28 23:49
  • by andreh