sms_ru icon indicating copy to clipboard operation
sms_ru copied to clipboard

Bring main callback to node.js error conventions

Open RomanMinkin opened this issue 11 years ago • 1 comments

Bring main callback to node.js error conventions instead of having both error and response data in one variable, because actual response is not an error. http://docs.nodejitsu.com/articles/errors/what-are-the-error-conventions

So the actual call would look like

sms.sms_send({
  to: '79112223344',
  text: 'Текст SMS'
}, function(error, response) {
    console.log(error, response))
})

RomanMinkin avatar Sep 04 '14 00:09 RomanMinkin

@RomanMinkin, thanks, I corrected.

Borodin avatar Sep 15 '15 19:09 Borodin