lib/api/modules/events.js
function (data) {
    var path;
    if (data) {
      path = this.constructPath(constants.EVENTS);
      return this.Places.POST(path, data);
    } else {
      return this.rejectRequest('Bad Request: A data object is required.');
    }
  }
function (data) {
    var path;
    if (data) {
      path = this.constructPath(constants.EVENTS);
      return this.Places.POST(path, data);
    } else {
      return this.rejectRequest('Bad Request: A data object is required.');
    }
  }
function ( data ) { var path ; if ( data ) { path = this . constructPath ( constants . EVENTS ) ; return this . Places . POST ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: A data object is required.' ) ; } }
Create an event
@param  {Object}   data A data object
@return {Function}      A promise
Create an event