lib/push.js
function getPushSettings(opts) {
    assert.ok(opts, 'opts is undefined');

    var headers = {
      'X-Project-Id': opts.widget,
      'X-App-Id': opts.instance
    };

    fhutils.addAppApiKeyHeader(headers, opts.appapikey);

    return {
      url: 'https://' + opts.millicore + ':' + opts.port + '/box/api/unifiedpush/mbaas/',
      applicationId: "fake", // we have to use fake ID, it will be added by supercore
      masterSecret: "fake", // we have to use fake secret, it will be added by supercore
      headers: headers
    };
  }
function getPushSettings(opts) {
    assert.ok(opts, 'opts is undefined');

    var headers = {
      'X-Project-Id': opts.widget,
      'X-App-Id': opts.instance
    };

    fhutils.addAppApiKeyHeader(headers, opts.appapikey);

    return {
      url: 'https://' + opts.millicore + ':' + opts.port + '/box/api/unifiedpush/mbaas/',
      applicationId: "fake", // we have to use fake ID, it will be added by supercore
      masterSecret: "fake", // we have to use fake secret, it will be added by supercore
      headers: headers
    };
  }
function getPushSettings ( opts ) { assert . ok ( opts , 'opts is undefined' ) ; var headers = { 'X-Project-Id' : opts . widget , 'X-App-Id' : opts . instance } ; fhutils . addAppApiKeyHeader ( headers , opts . appapikey ) ; return { url : 'https://' + opts . millicore + ':' + opts . port + '/box/api/unifiedpush/mbaas/' , applicationId : "fake" , // we have to use fake ID, it will be added by supercore masterSecret : "fake" , // we have to use fake secret, it will be added by supercore headers : headers } ; }
Generates settings to the used when creating an AeroGear.sender.
@param  {Object} opts [description]
@return {Object}
Generates settings to the used when creating an AeroGear . sender .