With Pusher integration you can receive realtime notifications from our API events.
Pusher Integration Configuration
- Go to Admin > Integrations > Pusher
- Get API keys from Pusher.com
- Paste to form your app_id, app_key, app_secret
- Set status as enabled
- 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 ); });
Comments