ntwitter icon indicating copy to clipboard operation
ntwitter copied to clipboard

Added skip_status parameter to verifyCredentials

Open NachoSoto opened this issue 13 years ago • 4 comments

Explained here: https://dev.twitter.com/docs/api/1/GET/account/verify_credentials

NachoSoto avatar Sep 25 '12 20:09 NachoSoto

The callback should be the last argument in the function. This is standard node async function design.

fent avatar Sep 25 '12 20:09 fent

I wanted to keep backwards compatibility, but you are right. Should I change it?

NachoSoto avatar Sep 25 '12 20:09 NachoSoto

You could make skip_status argument optional.

if (typeof skip_status === 'function') {
  callback = skip_status;
  skip_status = false;
}

fent avatar Sep 25 '12 20:09 fent

Of course :-) thanks.

NachoSoto avatar Sep 25 '12 21:09 NachoSoto