BoyCook / TwitterJSClient

Twitter client written in JavaScript packaged as a node module
GNU General Public License v2.0
562 stars 176 forks source link

Error function missing #2

Closed rickwaugh1 closed 11 years ago

rickwaugh1 commented 11 years ago

Line 106 of Twitter.js error(err, response, body);

Getting an error that says it's not defined:

        error(err, response, body);
        ^

TypeError: undefined is not a function at /Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/lib/Twitter.js:106:13 at passBackControl (/Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/node_modules/oauth/lib/oauth.js:374:13) at IncomingMessage. (/Users/rickwaugh/Documents/svn/ESP/node_server/trunk/esp/node_modules/twitter-js-client/node_modules/oauth/lib/oauth.js:386:9) at IncomingMessage.EventEmitter.emit (events.js:117:20) at _stream_readable.js:883:14 at process._tickCallback (node.js:415:13)

rickwaugh1 commented 11 years ago

I think I see, I need to provide the function as a parameter on the call? Your documentation needs some work, but I like the module.

BoyCook commented 11 years ago

Hi @rickwaugh1. It's always a good idea to read the tests to see how the code works, but I've also added some extra documentation to show the usage.