Adobe Live Stream Connector
A NodeJS wrapper for connecting to the Adobe Live Stream API.
Based on the code example Adobe LiveStream NodeJS Starter by Brian Sanderson.
Prerequisites
You will need to have the an Adobe ID and have it linked to your Analytics account. You'll also have needed to have created an application to use the Live Stream.
This module currently only works for the Client Credential authentication.
Installation
npm install adobe-live-stream-connector
Usage
var AdobeLiveStreamConnector = ; var connector = config callback;connector;
The config
param is an Object of configration options:
var config = clientId: '' // Your Adobe client ID clientSecret: '' // Your Adobe client secret loopInterval: 1000 // The number of milliseconds to check connection is still alive maxConnections: 1 // The maximum connections you want to make to the Live Stream API streamUrl: '' // The URL to your Live Stream data tokenApiHost: 'api.omniture.com' // The Adobe Authentication URL tokenCacheFile: 'adobeAuth.token' // The name of the file to store the access token in trustAllSSLCerts: true // Specify whether to trust
The callback
param is a method that takes 2 parameters:
{ iferror // Do something with the error console; // Do something with the response console;}
Tests
Currently there are no tests! This needs to rectified.
License
MIT license
Contributing
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally