Pusher Integration

With Pusher integration you can receive realtime notifications from our API events.

 

Pusher Integration Configuration

  1. Go to Admin > Integrations > Pusher
  2. Get API keys from Pusher.com
  3. Paste to form your app_id, app_key, app_secret
  4. Set status as enabled 
  5. Save

 

 

Active Channels

1) smart-cargo

Event Types

  • JOB.SMARTCARGO.QUEUE
  • JOB.SMARTCARGO.RUNNING
  • JOB.SMARTCARGO.TERMINATED
  • JOB.SMARTCARGO.FAILED

 

 How to receive pusher notifications in your webpage

 

// Include Pusher Js
// https://js.pusher.com/3.1/pusher.min.js"

// Enable pusher logging - don't include this in production
Pusher.logToConsole = true;

var pusher = new Pusher('%pusher.key*', {
    encrypted: true
});

var channel = pusher.subscribe('smart-cargo');

channel.bind('JOB.SMARTCARGO.TERMINATED', function(data) {
    alert( data.description );
});

Have more questions? Submit a request

Comments

Powered by Zendesk