const apiKeySid = 'SKXXXX';
const apiKeySecret = 'your_api_key_secret';
// To set up environmental variables, see http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const Twilio = require('twilio');

const client = new Twilio(apiKeySid, apiKeySecret, {accountSid: accountSid});

compositionHook = client.video.compositionHooks('HKXXXX')
  .fetch()
  .then(compositionHook =>{
    console.log('Read Composition Hook with SID=' + compositionHook.sid);
  });
