lib/api/modules/devices.js
function (deviceIdentifier, data) {
      var path;
      if (deviceIdentifier) {
        path = this.constructPath(constants.DEVICES, deviceIdentifier, constants.IDENTIFIERS);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A device identifier and a data object are required.');
      }
    }
function (deviceIdentifier, data) {
      var path;
      if (deviceIdentifier) {
        path = this.constructPath(constants.DEVICES, deviceIdentifier, constants.IDENTIFIERS);
        return this.Core.POST(path, data);
      } else {
        return this.rejectRequest('Bad Request: A device identifier and a data object are required.');
      }
    }
function ( deviceIdentifier , data ) { var path ; if ( deviceIdentifier ) { path = this . constructPath ( constants . DEVICES , deviceIdentifier , constants . IDENTIFIERS ) ; return this . Core . POST ( path , data ) ; } else { return this . rejectRequest ( 'Bad Request: A device identifier and a data object are required.' ) ; } }
Create an identifier for a device
@param  {String|Integer} deviceIdentifier A Robin device identifier
@param  {Object}         data             A querystring object
@return {Function}                        A Promise
Create an identifier for a device